comparison pygments_lexer_pseudocode2/lexers/algpseudocode.py @ 275:f365d9d2c0ad

FIX: explicit token types: backslash as separator now correctly handled
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 20 May 2026 10:16:58 +0200
parents 18553f595b34
children 397ed930a5ba
comparison
equal deleted inserted replaced
274:77cfab93a60e 275:f365d9d2c0ad
489 ], 489 ],
490 "explicit-tokentype": [ 490 "explicit-tokentype": [
491 # All these REs are CASE-SENSITIVE! 491 # All these REs are CASE-SENSITIVE!
492 492
493 # Multiple characters possible, but no escaping! 493 # Multiple characters possible, but no escaping!
494 (r"\\ttx\-(?P<type>[a-zA-Z0-9_-]+?)(?P<sep>[/:|=*+!\$~])" 494 (r"\\ttx\-(?P<type>[a-zA-Z0-9_-]+?)(?P<sep>[/:|=*+!\\$~])"
495 r"(?P<character>(.|\n)+?)(?P=sep)", 495 r"(?P<character>(.|\n)+?)(?P=sep)",
496 op_explicit_tokentype), 496 op_explicit_tokentype),
497 (r"\\ttx\-(?P<type>[a-zA-Z0-9_-]+?)\{(?P<character>[^}]+?)\}", 497 (r"\\ttx\-(?P<type>[a-zA-Z0-9_-]+?)\{(?P<character>[^}]+?)\}",
498 op_explicit_tokentype), 498 op_explicit_tokentype),
499 (r"\\ttx\-(?P<type>[a-zA-Z0-9_-]+?)\((?P<character>[^)]+?)\)", 499 (r"\\ttx\-(?P<type>[a-zA-Z0-9_-]+?)\((?P<character>[^)]+?)\)",