diff pygments_lexer_pseudocode2/algpseudocode.py @ 114:be50fe0687d6

The \CALL command
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 06 May 2026 01:10:11 +0200
parents 9aea2fd5f037
children e1663ac707b0
line wrap: on
line diff
--- a/pygments_lexer_pseudocode2/algpseudocode.py	Tue May 05 20:51:20 2026 +0200
+++ b/pygments_lexer_pseudocode2/algpseudocode.py	Wed May 06 01:10:11 2026 +0200
@@ -349,6 +349,7 @@
             include("escaped-string-start"),
             include("py-strings"),
             include("py-numbers"),
+            (r"(?i)\\call[ \t]*(\{)", LexBase.op_ignore, "entity-name"),
             (r"(?i)\\gets\b", op_gets),
             (r"(?i)\\text[ \t]*\{", LexBase.op_ignore, "text-in-expr"),
             include("explicit-tokentype"),
@@ -365,6 +366,7 @@
             include("escaped-string-start"),
             include("py-strings"),
             include("py-numbers"),
+            (r"(?i)\\call[ \t]*(\{)", LexBase.op_ignore, "entity-name"),
             (r"(?i)\\gets\b", op_gets),
             (r"(?i)\\text[ \t]*\{", LexBase.op_ignore, "text-in-expr"),
             include("explicit-tokentype"),