Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison pygments_lexer_pseudocode2/algpseudocode.py @ 93:84c0f761c836
Renamed "text-operators" to "word-operators" and allow more case-variants
E.g. AND, And, and.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 03 May 2026 15:10:52 +0200 |
| parents | 3f37832c405d |
| children | dc17b778a52b |
comparison
equal
deleted
inserted
replaced
| 92:3f37832c405d | 93:84c0f761c836 |
|---|---|
| 257 include("py-numbers"), | 257 include("py-numbers"), |
| 258 (r"(?i)\\text[ \t]*\{", LexBase.op_ignore, "text-in-expr"), | 258 (r"(?i)\\text[ \t]*\{", LexBase.op_ignore, "text-in-expr"), |
| 259 include("explicit-tokentype"), | 259 include("explicit-tokentype"), |
| 260 include("remark"), | 260 include("remark"), |
| 261 include("keyword-constants"), | 261 include("keyword-constants"), |
| 262 include("text-operators"), | 262 include("word-operators"), |
| 263 include("math-builtins"), | 263 include("math-builtins"), |
| 264 include("py-name"), | 264 include("py-name"), |
| 265 ], | 265 ], |
| 266 "expr-in-braces": [ | 266 "expr-in-braces": [ |
| 267 include("punctuation-in-braces"), | 267 include("punctuation-in-braces"), |
| 269 include("py-numbers"), | 269 include("py-numbers"), |
| 270 (r"(?i)\\text[ \t]*\{", LexBase.op_ignore, "text-in-expr"), | 270 (r"(?i)\\text[ \t]*\{", LexBase.op_ignore, "text-in-expr"), |
| 271 include("explicit-tokentype"), | 271 include("explicit-tokentype"), |
| 272 include("remark"), | 272 include("remark"), |
| 273 include("keyword-constants"), | 273 include("keyword-constants"), |
| 274 include("text-operators"), | 274 include("word-operators"), |
| 275 include("math-builtins"), | 275 include("math-builtins"), |
| 276 include("py-name"), | 276 include("py-name"), |
| 277 ], | 277 ], |
| 278 "block-expr": [ # somewhat similar to "root" | 278 "block-expr": [ # somewhat similar to "root" |
| 279 (r"\}", LexBase.op_ignore, "#pop"), | 279 (r"\}", LexBase.op_ignore, "#pop"), |
| 313 "arctan", "arctan2", "mod", "exp", "ln", "log"), | 313 "arctan", "arctan2", "mod", "exp", "ln", "log"), |
| 314 prefix=r"(?<!\.)", | 314 prefix=r"(?<!\.)", |
| 315 suffix=r"\b"), | 315 suffix=r"\b"), |
| 316 Name.Builtin), | 316 Name.Builtin), |
| 317 ], | 317 ], |
| 318 "text-operators": [ | 318 "word-operators": [ |
| 319 (words(("in", "is", "and", "or", "xor", "not"), | 319 (words(("IN", "In", "in", |
| 320 "IS", "Is", "is", | |
| 321 "AND", "And", "and", | |
| 322 "OR", "Or", "or", | |
| 323 "XOR", "Xor", "xor", | |
| 324 "NOT", "Not", "not"), | |
| 320 prefix=r"(?<!\.)", | 325 prefix=r"(?<!\.)", |
| 321 suffix=r"\b"), | 326 suffix=r"\b"), |
| 322 Operator.Word), | 327 Operator.Word), |
| 323 ], | 328 ], |
| 324 "keyword-constants": [ | 329 "keyword-constants": [ |
