Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
changeset 82:36a0ef76a6d7
Implement "\WITH"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 30 Apr 2026 12:29:08 +0200 |
| parents | 6d8b813fb296 |
| children | cd79d2c76347 |
| files | pygments_lexer_pseudocode2/algpseudocode.py |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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({
