Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison tests/_tsetup.py @ 34:1f741934205e
Begin a new Pseudocode lexer using numbers and strings from Python
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 21 Apr 2026 19:40:08 +0200 |
| parents | de1f67eff9d5 |
| children | 39151225fb84 |
comparison
equal
deleted
inserted
replaced
| 33:db1bc740a201 | 34:1f741934205e |
|---|---|
| 6 | 6 |
| 7 Side-effects of import configure the test environment! | 7 Side-effects of import configure the test environment! |
| 8 | 8 |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 __all__ = [ | |
| 12 "PROJECTDIR", | |
| 13 "LEXERCLASS", | |
| 14 "FRLEXERCLASS", | |
| 15 "LEXERFILENAME", | |
| 16 "FRLEXERFILENAME", | |
| 17 "TESTSNIPPETSDIR", | |
| 18 ] | |
| 19 | |
| 20 | |
| 11 import logging | 21 import logging |
| 12 import os | 22 import os |
| 13 import sys | 23 import sys |
| 14 | 24 |
| 15 | 25 |
| 16 PROJECTDIR = os.path.abspath( | 26 PROJECTDIR = os.path.abspath( |
| 17 os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))) | 27 os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))) |
| 18 sys.path.insert(0, PROJECTDIR) | 28 sys.path.insert(0, PROJECTDIR) |
| 19 FRLEXERFILENAME = os.path.join(PROJECTDIR, | 29 FRLEXERFILENAME = os.path.join(PROJECTDIR, |
| 20 "pygments_lexer_pseudocode2/fr_pseudocode.py") | 30 "pygments_lexer_pseudocode2", |
| 31 "fr_pseudocode.py") | |
| 21 FRLEXERCLASS = "FrPseudocodeLexer" | 32 FRLEXERCLASS = "FrPseudocodeLexer" |
| 33 LEXERFILENAME = os.path.join(PROJECTDIR, | |
| 34 "pygments_lexer_pseudocode2", | |
| 35 "pseudocode.py") | |
| 36 LEXERCLASS = "PseudocodeLexer" | |
| 22 TESTSNIPPETSDIR = os.path.join( | 37 TESTSNIPPETSDIR = os.path.join( |
| 23 os.path.abspath(os.path.dirname(__file__)), | 38 os.path.abspath(os.path.dirname(__file__)), |
| 24 "snippets") | 39 "snippets") |
| 25 | 40 |
| 26 | 41 |
