Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison tests/_tsetup.py @ 28:de1f67eff9d5
Move the original French pseudocode lexter into a sub-module.
This is to prepare for a new implementation along the lines of
CTAN's "algpseudocode" or "algpseudocodex".
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 21 Apr 2026 10:31:28 +0200 |
| parents | 859ab8abce0a |
| children | 1f741934205e |
comparison
equal
deleted
inserted
replaced
| 27:bf13850f21fb | 28:de1f67eff9d5 |
|---|---|
| 14 | 14 |
| 15 | 15 |
| 16 PROJECTDIR = os.path.abspath( | 16 PROJECTDIR = os.path.abspath( |
| 17 os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))) | 17 os.path.normpath(os.path.join(os.path.dirname(__file__), ".."))) |
| 18 sys.path.insert(0, PROJECTDIR) | 18 sys.path.insert(0, PROJECTDIR) |
| 19 LEXERFILENAME = os.path.join(PROJECTDIR, | 19 FRLEXERFILENAME = os.path.join(PROJECTDIR, |
| 20 "pygments_lexer_pseudocode2/__init__.py") | 20 "pygments_lexer_pseudocode2/fr_pseudocode.py") |
| 21 LEXERCLASS = "PseudocodeLexer2" | 21 FRLEXERCLASS = "FrPseudocodeLexer" |
| 22 TESTSNIPPETSDIR = os.path.join( | 22 TESTSNIPPETSDIR = os.path.join( |
| 23 os.path.abspath(os.path.dirname(__file__)), | 23 os.path.abspath(os.path.dirname(__file__)), |
| 24 "snippets") | 24 "snippets") |
| 25 | 25 |
| 26 | 26 |
