comparison pygments_lexer_pseudocode2/algpseudocode.py @ 92:3f37832c405d

FIX: Wrong state for \TEXT command
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 03 May 2026 13:59:16 +0200
parents feb41c8d72d2
children 84c0f761c836
comparison
equal deleted inserted replaced
91:feb41c8d72d2 92:3f37832c405d
299 "text-in-expr": [ 299 "text-in-expr": [
300 (r"[^\\}\n]+", Text), 300 (r"[^\\}\n]+", Text),
301 (r"\}", LexBase.op_ignore, "#pop"), 301 (r"\}", LexBase.op_ignore, "#pop"),
302 (r"\n", Whitespace), 302 (r"\n", Whitespace),
303 (r"\\\}", LexBase.op_fixed(Text, "}")), 303 (r"\\\}", LexBase.op_fixed(Text, "}")),
304 (r"(?:i)\\(expr(?:ession)?)[ \t]*(\{)", 304 (r"(?i)\\expr(?:ession)?[ \t]*\{",
305 bygroups(LexBase.op_ignore, LexBase.op_ignore), 305 LexBase.op_ignore,
306 "expr-in-braces"), 306 "block-expr"),
307 include("explicit-tokentype"), 307 include("explicit-tokentype"),
308 (r"\\\\", LexBase.op_fixed(Text, "\\")), 308 (r"\\\\", LexBase.op_fixed(Text, "\\")),
309 (r"\\", LexBase.op_fixed(Text, "\\")), 309 (r"\\", LexBase.op_fixed(Text, "\\")),
310 ], 310 ],
311 "math-builtins": [ 311 "math-builtins": [