# HG changeset patch # User Franz Glasner # Date 1778680618 -7200 # Node ID de7118d299e9068751058cd48b2f22b3b177457f # Parent 76053daf813ea2a905808b77a9f02c5ab50b77ac Aliases for states: context or mode diff -r 76053daf813e -r de7118d299e9 docs/lexer-algpseudocode.rst --- a/docs/lexer-algpseudocode.rst Wed May 13 15:18:27 2026 +0200 +++ b/docs/lexer-algpseudocode.rst Wed May 13 15:56:58 2026 +0200 @@ -42,10 +42,10 @@ ====== The AlgPseudocode lexer and its language variants AlgPseudocodeDE and -AlgPseudocodeFR basically work in three states: `default`, -`expression` and `text`. +AlgPseudocodeFR basically work in three states (aka modes or contexts): +`default`, `expression` and `text`. - In expressions it automatically recognizes: + In `expressions` it automatically recognizes: - Strings (single-quote, double-quote, triple-single-quote, triple-double-quote, `Python`_ style) @@ -67,11 +67,11 @@ - :ref:`explicit-token-types` - In the default-mode it recognizes all sorts of single- and multi-line + In the `default`-mode it recognizes all sorts of single- and multi-line comments in addition to expressions and commands that are inspired by `Algpseudocodex`_. - In texts it recognizes: + In `texts` it recognizes: - ``\EXPR`` or ``\EXPRESSION``