comparison pygments_lexer_pseudocode2/algpseudocode.py @ 159:4ee0b1536ea6

Handle runs of dots in expressions (., .., ..., ...., ...)
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 08 May 2026 17:13:26 +0200
parents 380d2607d5c7
children b4028838e0c8
comparison
equal deleted inserted replaced
158:f08d77b8cbf7 159:4ee0b1536ea6
459 prefix=r"(?<!\.)", 459 prefix=r"(?<!\.)",
460 suffix=r"\b"), 460 suffix=r"\b"),
461 Keyword.Constant), 461 Keyword.Constant),
462 ], 462 ],
463 "ascii-punctuation": [ 463 "ascii-punctuation": [
464 (r"\.+", Punctuation),
464 (r"[{}:(),;[\]?@]", Punctuation), 465 (r"[{}:(),;[\]?@]", Punctuation),
465 ], 466 ],
466 "ascii-punctuation-in-braces": [ 467 "ascii-punctuation-in-braces": [
467 # 468 #
468 # Like "punctuation" but needs an escaped curly brace for } because 469 # Like "punctuation" but needs an escaped curly brace for } because