Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
changeset 102:d8368294413a
"min" and "max" as automatic mathematical operators
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 04 May 2026 16:19:53 +0200 |
| parents | aae16e3624e2 |
| children | af97692501ea |
| files | pygments_lexer_pseudocode2/algpseudocode.py |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pygments_lexer_pseudocode2/algpseudocode.py Mon May 04 16:12:44 2026 +0200 +++ b/pygments_lexer_pseudocode2/algpseudocode.py Mon May 04 16:19:53 2026 +0200 @@ -378,7 +378,8 @@ ], "math-builtins": [ (words(("sqrt", "pow", "cos", "sin", "tan", "arcos", "arcsin", - "arctan", "arctan2", "mod", "exp", "ln", "log"), + "arctan", "arctan2", "mod", "exp", "ln", "log", + "min", "max"), prefix=r"(?<!\.)", suffix=r"\b"), Name.Builtin),
