Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison pygments_lexer_pseudocode2/algpseudocode.py @ 149:380d2607d5c7
Implement the "\NAME" command.
Implemented just as \CALL it is better named for just highlighting entity names
properly. \CALL suggests a function or procedure call.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 07 May 2026 15:49:13 +0200 |
| parents | f916251d5647 |
| children | 4ee0b1536ea6 |
comparison
equal
deleted
inserted
replaced
| 148:b4688f6cc7b1 | 149:380d2607d5c7 |
|---|---|
| 359 include("ascii-punctuation"), | 359 include("ascii-punctuation"), |
| 360 include("unicode-punctuation"), | 360 include("unicode-punctuation"), |
| 361 include("escaped-string-start"), | 361 include("escaped-string-start"), |
| 362 include("py-strings"), | 362 include("py-strings"), |
| 363 include("py-numbers"), | 363 include("py-numbers"), |
| 364 (r"(?i)\\call[ \t]*(\{)", LexBase.op_ignore, "entity-name"), | 364 (r"(?i)\\(call|name)[ \t]*(\{)", LexBase.op_ignore, "entity-name"), |
| 365 (r"(?i)\\gets\b", op_gets), | 365 (r"(?i)\\gets\b", op_gets), |
| 366 (r"(?i)\\text[ \t]*\{", LexBase.op_ignore, "text-in-expr"), | 366 (r"(?i)\\text[ \t]*\{", LexBase.op_ignore, "text-in-expr"), |
| 367 include("explicit-tokentype"), | 367 include("explicit-tokentype"), |
| 368 include("remark"), | 368 include("remark"), |
| 369 include("keyword-constants"), | 369 include("keyword-constants"), |
| 376 include("ascii-punctuation-in-braces"), | 376 include("ascii-punctuation-in-braces"), |
| 377 include("unicode-punctuation"), | 377 include("unicode-punctuation"), |
| 378 include("escaped-string-start"), | 378 include("escaped-string-start"), |
| 379 include("py-strings"), | 379 include("py-strings"), |
| 380 include("py-numbers"), | 380 include("py-numbers"), |
| 381 (r"(?i)\\call[ \t]*(\{)", LexBase.op_ignore, "entity-name"), | 381 (r"(?i)\\(call|name)[ \t]*(\{)", LexBase.op_ignore, "entity-name"), |
| 382 (r"(?i)\\gets\b", op_gets), | 382 (r"(?i)\\gets\b", op_gets), |
| 383 (r"(?i)\\text[ \t]*\{", LexBase.op_ignore, "text-in-expr"), | 383 (r"(?i)\\text[ \t]*\{", LexBase.op_ignore, "text-in-expr"), |
| 384 include("explicit-tokentype"), | 384 include("explicit-tokentype"), |
| 385 include("remark"), | 385 include("remark"), |
| 386 include("keyword-constants"), | 386 include("keyword-constants"), |
