diff docs/lexer-algpseudocode.rst @ 276:397ed930a5ba

Allow more separator characters for explicit token types. Extensive tests including a special test when using the backslash.
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 20 May 2026 12:10:01 +0200
parents 77cfab93a60e
children a5c96fdd1cb3
line wrap: on
line diff
--- a/docs/lexer-algpseudocode.rst	Wed May 20 10:16:58 2026 +0200
+++ b/docs/lexer-algpseudocode.rst	Wed May 20 12:10:01 2026 +0200
@@ -477,7 +477,7 @@
 
   No escaping possible! There are enough alternatives available!
 
-  `SEP` is one of ``/:|=*+!\$~``.
+  `SEP` is exactly one character of ``/?.,:;%|=*+!\$~"'_-#@``.
 
 
 Examples:
@@ -502,10 +502,19 @@
       */
    \text{• \\ttx-nd[∈_∌](p1, p2)}                \ttx-nd[∈_∌](p1, p2)
      /*
-      * This is a non-existing token type: you get some generic error marking
+      * Normal emphasis ("strong")
+      */
+   \text{• \\ttx-gs$this is strong$}             \ttx-gs$this is strong$
+     /*
+      * A strong emphasis.
+      * Note that the backslash is a valid delimiter!
+      */
+   \text{• \\ttx-ges\\strong emphasis!\\}          \ttx-ges\strong emphasis!\
+     /*
+      * This is a non-existing token type: you get some generic error markup
       * with a Generic.Error token and no expansion.
       */
-   \text{• \\ttx-NON-EXISTING[∈_∌](p1, p2)}      \ttx-NON_EXISTING[∈_∌](p1, p2)
+   \text{• \\ttx-NON-EXISTING?∈_∌?(p1, p2)}      \ttx-NON_EXISTING?∈_∌?(p1, p2)
 
 .. note:: Explicit token types are **case-sensitive**.