comparison docs/lexer-algpseudocode.rst @ 212:18553f595b34

Allow nested \TEXT and \EXPR commands. \TEXT within \TEXT and \EXPR within \EXPR is allowed!
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 14 May 2026 07:30:38 +0200
parents f20177032d21
children d470250f8451
comparison
equal deleted inserted replaced
211:33a722c8ae17 212:18553f595b34
57 highlighting. 57 highlighting.
58 58
59 A closing curly brace can be quoted with ``\}`` to not end the 59 A closing curly brace can be quoted with ``\}`` to not end the
60 text mode prematurely. 60 text mode prematurely.
61 61
62 - ``\EXPR`` or ``\EXPRESSION`` as nested construct
63
62 - ``\NAME``, ``\CALL`` and ``\GETS`` 64 - ``\NAME``, ``\CALL`` and ``\GETS``
63 65
64 - ``\REM`` and ``\REMARK`` for remarks (aka comments) 66 - ``\REM`` and ``\REMARK`` for remarks (aka comments)
65 67
66 - Names (`Name.Entity`) 68 - Names (`Name.Entity`)
78 To switch to expression-mode. 80 To switch to expression-mode.
79 81
80 A closing curly brace can be quoted with ``\}`` to not end the expression 82 A closing curly brace can be quoted with ``\}`` to not end the expression
81 mode prematurely. 83 mode prematurely.
82 84
85 - ``\TEXT`` as nested construct
86
83 - ``\REM`` and ``\REMARK`` for remarks (aka comments) 87 - ``\REM`` and ``\REMARK`` for remarks (aka comments)
84 88
85 - :ref:`explicit-token-types` 89 - :ref:`explicit-token-types`
86 90
87 91
111 115
112 .. describe:: gets 116 .. describe:: gets
113 117
114 **Type:** :py:class:`str` or :py:obj:`None` 118 **Type:** :py:class:`str` or :py:obj:`None`
115 119
116 **Default:** :py:obj:`None` (yields ``←``) 120 **Default:** :py:obj:`None` (yields ``⟵``)
117 121
118 The operator symbol to be printed by the command ``\GETS``. 122 The operator symbol to be printed by the command ``\GETS``.
119 123
120 An often used alternative is ``:=``. 124 An often used alternative is ``:=``.
121 125