Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison pygments_lexer_pseudocode2/algpseudocode.py @ 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 | 7cfad325d3bb |
| children | af97692501ea |
comparison
equal
deleted
inserted
replaced
| 101:aae16e3624e2 | 102:d8368294413a |
|---|---|
| 376 (r"\\", LexBase.op_fixed(Text, "\\")), | 376 (r"\\", LexBase.op_fixed(Text, "\\")), |
| 377 (r".", Generic.Error), # tolerance for errors | 377 (r".", Generic.Error), # tolerance for errors |
| 378 ], | 378 ], |
| 379 "math-builtins": [ | 379 "math-builtins": [ |
| 380 (words(("sqrt", "pow", "cos", "sin", "tan", "arcos", "arcsin", | 380 (words(("sqrt", "pow", "cos", "sin", "tan", "arcos", "arcsin", |
| 381 "arctan", "arctan2", "mod", "exp", "ln", "log"), | 381 "arctan", "arctan2", "mod", "exp", "ln", "log", |
| 382 "min", "max"), | |
| 382 prefix=r"(?<!\.)", | 383 prefix=r"(?<!\.)", |
| 383 suffix=r"\b"), | 384 suffix=r"\b"), |
| 384 Name.Builtin), | 385 Name.Builtin), |
| 385 ], | 386 ], |
| 386 "word-operators": [ | 387 "word-operators": [ |
