# HG changeset patch # User Franz Glasner # Date 1779290902 -7200 # Node ID 90946f87d77d7965ae1c628ed9821ea783fab39c # Parent ee512932d60346435b3edf42c2d11cc796c08dee Rename RE group "character" -> "characters" diff -r ee512932d603 -r 90946f87d77d pygments_lexer_pseudocode2/lexers/algpseudocode.py --- a/pygments_lexer_pseudocode2/lexers/algpseudocode.py Wed May 20 17:23:41 2026 +0200 +++ b/pygments_lexer_pseudocode2/lexers/algpseudocode.py Wed May 20 17:28:22 2026 +0200 @@ -226,7 +226,7 @@ val = match.group() _logger.warning("Unhandled explicit token type: %s", val) else: - val = match.group("character") + val = match.group("characters") yield match.start(), toktype, val if ctx: ctx.pos = match.end() @@ -493,19 +493,19 @@ # Multiple characters possible, but no escaping! (r"""\\ttx\-(?P[a-zA-Z0-9_-]+?)""" r"""(?P[/?.,:;%|=*+!\\$~"'#@_-])""" - r"""(?P(.|\n)+?)(?P=sep)""", + r"""(?P(.|\n)+?)(?P=sep)""", op_explicit_tokentype), - (r"\\ttx\-(?P[a-zA-Z0-9_-]+?)\{(?P[^}]+?)\}", + (r"\\ttx\-(?P[a-zA-Z0-9_-]+?)\{(?P[^}]+?)\}", op_explicit_tokentype), - (r"\\ttx\-(?P[a-zA-Z0-9_-]+?)\((?P[^)]+?)\)", + (r"\\ttx\-(?P[a-zA-Z0-9_-]+?)\((?P[^)]+?)\)", op_explicit_tokentype), - (r"\\ttx\-(?P[a-zA-Z0-9_-]+?)<(?P[^>]+?)>", + (r"\\ttx\-(?P[a-zA-Z0-9_-]+?)<(?P[^>]+?)>", op_explicit_tokentype), - (r"\\ttx\-(?P[a-zA-Z0-9_-]+?)\[(?P[^\]]+?)\]", + (r"\\ttx\-(?P[a-zA-Z0-9_-]+?)\[(?P[^\]]+?)\]", op_explicit_tokentype), # Every character is possible: no escaping needed! - (r"\\tt-(?P[^/]+?)/(?P(?:.|\n))", + (r"\\tt-(?P[^/]+?)/(?P(?:.|\n))", op_explicit_tokentype), ], }