changeset 208:de7118d299e9

Aliases for states: context or mode
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 13 May 2026 15:56:58 +0200
parents 76053daf813e
children f20177032d21
files docs/lexer-algpseudocode.rst
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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``