Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison docs/conf.py @ 119:9be446a43b81
Wording in comment
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 06 May 2026 15:16:48 +0200 |
| parents | a861ac4d11fc |
| children | a3ed7d8231d7 |
comparison
equal
deleted
inserted
replaced
| 118:a861ac4d11fc | 119:9be446a43b81 |
|---|---|
| 61 | 61 |
| 62 | 62 |
| 63 def setup(app): | 63 def setup(app): |
| 64 # | 64 # |
| 65 # Add a custom lexer: AlgPseudocodeLexer with custom init option "no_end" | 65 # Add a custom lexer: AlgPseudocodeLexer with custom init option "no_end" |
| 66 # Given lexer must be callable: also use an indirection with "partial" | 66 # Given lexer must be callable: so use an indirection with "partial" |
| 67 # | 67 # |
| 68 app.add_lexer("NoEndAlgPseudocode", | 68 app.add_lexer("NoEndAlgPseudocode", |
| 69 functools.partial(AlgPseudocodeLexer, no_end=True)) | 69 functools.partial(AlgPseudocodeLexer, no_end=True)) |
