Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison docs/lexer-algpseudocode.rst @ 281:ee512932d603
Make "\T" and "\E" aliases for "\TEXT" and "\EXPRESSION"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 20 May 2026 17:23:41 +0200 |
| parents | 315e94bac8a7 |
| children | 1683a10eabb2 |
comparison
equal
deleted
inserted
replaced
| 280:1b0e58f60f73 | 281:ee512932d603 |
|---|---|
| 59 | 59 |
| 60 - Strings (single-quote, double-quote, triple-single-quote, | 60 - Strings (single-quote, double-quote, triple-single-quote, |
| 61 triple-double-quote, `Python`_ style) | 61 triple-double-quote, `Python`_ style) |
| 62 - Numbers (also `Python`_ style) | 62 - Numbers (also `Python`_ style) |
| 63 - (Mathematical) operators and symbols | 63 - (Mathematical) operators and symbols |
| 64 - ``\TEXT{...}`` | 64 - ``\TEXT{...}`` or ``\T{...}`` |
| 65 | 65 |
| 66 Used to switch to a text-mode that prohibits automatic expression | 66 Used to switch to a text-mode that prohibits automatic expression |
| 67 highlighting. | 67 highlighting. |
| 68 | 68 |
| 69 A closing curly brace can be quoted with ``\}`` to not end the | 69 A closing curly brace can be quoted with ``\}`` to not end the |
| 70 text mode prematurely. | 70 text mode prematurely. |
| 71 | 71 |
| 72 - ``\EXPR`` or ``\EXPRESSION`` as nested construct | 72 - ``\EXPR``, ``\EXPRESSION`` or ``\E`` as nested construct |
| 73 | 73 |
| 74 - ``\NAME``, ``\CALL`` and ``\GETS`` | 74 - ``\NAME``, ``\CALL`` and ``\GETS`` |
| 75 | 75 |
| 76 - ``\REM`` and ``\REMARK`` for remarks (aka comments) | 76 - ``\REM`` and ``\REMARK`` for remarks (aka comments) |
| 77 | 77 |
| 83 in addition to `expressions` it recognizes all sorts of single- and | 83 in addition to `expressions` it recognizes all sorts of single- and |
| 84 multi-line comments and commands that are inspired by `Algpseudocodex`_. | 84 multi-line comments and commands that are inspired by `Algpseudocodex`_. |
| 85 | 85 |
| 86 In `text` context it recognizes: | 86 In `text` context it recognizes: |
| 87 | 87 |
| 88 - ``\EXPR`` or ``\EXPRESSION`` | 88 - ``\EXPRESSION``, ``\EXPR`` or ``\E`` |
| 89 | 89 |
| 90 Use to switch to expression-mode. | 90 Use to switch to expression-mode. |
| 91 | 91 |
| 92 A closing curly brace can be quoted with ``\}`` to not end the expression | 92 A closing curly brace can be quoted with ``\}`` to not end the expression |
| 93 mode prematurely. | 93 mode prematurely. |
| 94 | 94 |
| 95 - ``\TEXT`` as nested construct | 95 - ``\TEXT`` (aka ``\T``) as nested construct |
| 96 | 96 |
| 97 - ``\REM`` and ``\REMARK`` for remarks (aka comments) | 97 - ``\REM`` and ``\REMARK`` for remarks (aka comments) |
| 98 | 98 |
| 99 - :ref:`explicit-token-types` | 99 - :ref:`explicit-token-types` |
| 100 | 100 |
