# HG changeset patch # User Franz Glasner # Date 1777544948 -7200 # Node ID 36a0ef76a6d7648746cc310e596df2bd193e0001 # Parent 6d8b813fb296ef854d4f53faf7ae445744890f0d Implement "\WITH" diff -r 6d8b813fb296 -r 36a0ef76a6d7 pygments_lexer_pseudocode2/algpseudocode.py --- a/pygments_lexer_pseudocode2/algpseudocode.py Thu Apr 30 11:41:21 2026 +0200 +++ b/pygments_lexer_pseudocode2/algpseudocode.py Thu Apr 30 12:29:08 2026 +0200 @@ -55,6 +55,7 @@ "FN": "FUNCTION", "CLASS": "CLASS", "IS": "IS", + "WITH": "WITH", } END_TRANSLATIONS = { "PROG": "END OF PROGRAM", @@ -194,6 +195,7 @@ # Keywords (r"(?i)\\(" r"(?:is)" + r"|(?:with)" r")\b", bygroups(op_translate(Keyword))), include("expr"), @@ -328,6 +330,7 @@ "FN": "FUNKTION", "CLASS": "KLASSE", "IS": "IST", + "WITH": "MIT", }) END_TRANSLATIONS = AlgPseudocodeLexer.END_TRANSLATIONS.copy() END_TRANSLATIONS.update({ @@ -365,6 +368,7 @@ "FN": "FONCTION", "CLASS": "CLASSE", "IS": "EST", + "WITH": "AVEC", }) END_TRANSLATIONS = AlgPseudocodeLexer.END_TRANSLATIONS.copy() END_TRANSLATIONS.update({