summaryrefslogtreecommitdiff
path: root/tests/examplefiles/cpp
diff options
context:
space:
mode:
authorRobert Dodier <robert.dodier@gmail.com>2021-09-04 07:18:28 -0700
committerGitHub <noreply@github.com>2021-09-04 16:18:28 +0200
commit27553980170fcaa02bcd87a02a1954b0ec09242b (patch)
tree8b8100d3bf1cf9e1305de40c0a2edf290370e7ea /tests/examplefiles/cpp
parent1df7fd71dad01c939da89d70947d2d606d7c21fa (diff)
downloadpygments-git-27553980170fcaa02bcd87a02a1954b0ec09242b.tar.gz
Lexer for new language Maxima (#1885)
* New lexer for Maxima computer algebra system * New lexer class MaximaLexer * Update _mapping.py to include Maxima lexer * New test input file maxima/foo.mac I find that the commands $ python3 -m pygments -O full -f html -o /tmp/foo.html tests/examplefiles/maxima/foo.mac $ python3 -m pygments -x -l pygments/lexers/maxima.py:MaximaLexer tests/examplefiles/maxima/foo.mac both produce expected output. * Commit output from pytest --update-goldens for Maxima example file Commit output from pytest tests/examplefiles/maxima --update-goldens as obtained by Cameron Smith. * Rename output file for test of Maxima lexer. * In Maxima lexer, capture content of comment all at once, instead of capturing each character separately. Update expected output for example input file, as produce by: $ pytest tests/examplefiles/maxima --update-goldens * In lexer for Maxima language, identify whitespace characters as such instead of just calling them Text. * In lexer for Maxima language, identify comma, semicolon, and dollar sign as Punctuation instead of Text. * In lexer for Maxima language, cut encoding comment, and put in license statement. * In lexer for Maxima language, identify keywords and other fixed strings such as operators via the words function, instead of a long regex with alternation. Incidentally update the example output, for which one symbol (namely "done") has changed classification. * In lexer for Maxima language, include additional test input and update output accordingly. * In lexer for Maxima language, relax pattern for integers, so integers are more accurately identified. Update test example output accordingly. * In lexer for Maxima language, adjust pattern for float numbers. Include additional test input for floats and update expected output. * In lexer for Maxima language, define analyse_text function. * In lexer for Maxima language, correct errors identified by make check (1) adjust package name underline (2) put in copyright notice Co-authored-by: Robert Dodier <robert_dodier@users.sourceforge.net>
Diffstat (limited to 'tests/examplefiles/cpp')
0 files changed, 0 insertions, 0 deletions