summaryrefslogtreecommitdiff
path: root/pygments/lexers
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | Modernize Whitespace token: dotnet lexerSebastian Engel2021-11-021-58/+70
| | | | | | | |
| * | | | | | | Modernize Whitespace token: diff lexerSebastian Engel2021-10-231-14/+14
| | | | | | | |
| * | | | | | | Modernize Whitespace token: devicetree lexerSebastian Engel2021-10-231-3/+3
| | | | | | | |
| * | | | | | | Modernize Whitespace token: data lexer(json,yaml)Sebastian Engel2021-10-231-36/+36
| | | | | | | |
| * | | | | | | Modernize Whitespace token: dalvik lexerSebastian Engel2021-10-231-9/+9
| | | | | | | |
* | | | | | | | Merge pull request #1948 from Morphclue/patch-1Matthäus G. Chajdas2021-11-211-0/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | GDScript: Add void datatype
| * | | | | | | | fix: void datatypeJulian Holfeld2021-11-081-1/+1
| | | | | | | | |
| * | | | | | | | refactor: add void keywordJulian Holfeld2021-11-081-0/+1
| | |/ / / / / / | |/| | | | | |
* | | | | | | | Devicetree: recognize hexadecimal addresses for nodesGeorg Brandl2021-11-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #1949
* | | | | | | | Asm lex bugfix #1895: register re check for boundary (#1961)Sebastian Engel2021-11-171-6/+6
| | | | | | | |
* | | | | | | | CSharp: add "cs" aliasGeorg Brandl2021-11-172-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #1962
* | | | | | | | Improve CddlLexer performance (#1959)Sebastian Engel2021-11-161-2/+3
| |_|_|/ / / / |/| | | | | |
* | | | | | | Fix #1479.Matthäus G. Chajdas2021-11-131-1/+1
| | | | | | |
* | | | | | | Fix #1896.Matthäus G. Chajdas2021-11-131-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a simpler expression to match comments in HTML/XML.
* | | | | | | Improve HexdumpLexer.Matthäus G. Chajdas2021-11-131-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Correctly identify whitespace.
* | | | | | | Improve NSIS lexer.Matthäus G. Chajdas2021-11-131-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Correctly identify whitespace. * Merge consecutive tokens where possible. * Consistently use String.Double for the opening and closing quotation marks
* | | | | | | Debian control: more regex simplificationGeorg Brandl2021-11-091-14/+14
| | | | | | |
* | | | | | | Update debian control (#1946)sblondon2021-11-091-4/+9
|/ / / / / /
* | | | | | Fix Bibtex comment/commentary keyword difference (#1899)Sebastian Engel2021-11-061-1/+1
| | | | | |
* | | | | | Squashed commit of the following:Matthäus G. Chajdas2021-11-061-4/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit c339afa51bac82515e90da90df3d2a428c612e20 Author: Matthäus G. Chajdas <dev@anteru.net> Date: Sat Nov 6 22:10:22 2021 +0100 Update tests. commit b60cf209ad93bc9176581f4a77ece58da4e1212a Merge: 7f000b4e cf7a978a Author: Matthäus G. Chajdas <Anteru@users.noreply.github.com> Date: Sat Nov 6 17:35:34 2021 +0100 Merge branch 'master' into feature-terraform-heredoc commit 7f000b4ef8930817f4c1249c242d95a9c191f4eb Author: Chris Rose <offline@offby1.net> Date: Mon Oct 11 07:47:36 2021 -0700 Eliminate pathological regex case I updated the terraform lexer to use the ExtendedRegexLexer and to handle heredocs with a callback, instead of with a regexp for the whole shebang. commit 0a1fa1b139b9249f210cd9450dafa8a1ee1715f8 Author: Chris Rose <offline@offby1.net> Date: Sat Oct 9 20:16:51 2021 -0700 Add support for the `set` type in HCL commit 18ad21300bb890fc9014a66c7ba2c195429b4d16 Author: Chris Rose <offline@offby1.net> Date: Sat Oct 9 19:14:27 2021 -0700 Support HCL's heredoc syntax Fixes #1909
* | | | | | Improve Dylan lexer.Matthäus G. Chajdas2021-11-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Correctly tag whitespace. * Merge comment tokens.
* | | | | | Improve MoonScript lexer.Matthäus G. Chajdas2021-11-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Correctly tag whitespace. * Merge literal string tokens
* | | | | | Improve Cirru lexer.Matthäus G. Chajdas2021-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Merge string literal tokens.
* | | | | | Improve Rexx lexer.Matthäus G. Chajdas2021-11-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Merge whitespace tokens * Merge string literals
* | | | | | Improve XQuery lexer.Matthäus G. Chajdas2021-11-061-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Merge comment tokens. * Correctly tag whitespace.
* | | | | | Improve SgfLexer.Matthäus G. Chajdas2021-11-061-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Correctly tag whitespace. * Merge punctuation tokens.
* | | | | | Improve MuPAD lexer.Matthäus G. Chajdas2021-11-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Correctly tag whitespace * Merge multiple whitespace tokens * Merge tokens in comments.
* | | | | | Improve SciLab lexer.Matthäus G. Chajdas2021-11-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Correctly tag whitespace * Merge multiple whitespace tokens * Merge multiple punctuation characters into one token
* | | | | | yield keyword in Java (#1941)xtay22021-11-031-1/+1
| |/ / / / |/| | | | | | | | | | | | | | Added the yield keyword from Java 13. https://docs.oracle.com/javase/specs/jls/se13/preview/switch-expressions.html
* | | | | Add .editorconfig to IniLexer (#1932)Jawira Portugal2021-10-282-2/+2
| | | | |
* | | | | robotframework: fix empty braces being thrown away after list or dict… (#1921)Leistungsabfall2021-10-241-1/+1
|/ / / / | | | | | | | | | | | | | | | | * robotframework: fix empty braces being thrown away after list or dict variable * robotframework: add test cases to ensure correct behaviour
* | | | Whitespace token modernization - a* lexers - regarding #1905 (#1914)Sebastian Engel2021-10-237-84/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Whitespace token modernization - ambient lexer * Whitespace token modernization - ampl lexer * Whitespace token modernization - apdlexer lexer * Whitespace token modernization - apl lexer * Whitespace token modernization - adl lexer * Whitespace token modernization - arrow lexer * Whitespace token modernization - asm lexer
* | | | Whitespace token modernization - [bc] lexers - regarding #1905 (#1923)Sebastian Engel2021-10-2312-198/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Modernize Whitespace token: basic lexer * Modernize Whitespace token: bibtex lexer * Modernize Whitespace token: boa lexer * Modernize Whitespace token: capnproto lexer + new example * Modernize Whitespace token: cddl lexer * Modernize Whitespace token: chapel lexer * Modernize Whitespace token: c_like lexer * Modernize Whitespace token: configs lexer * Modernize Whitespace token: console lexer * Modernize Whitespace token: crystal lexer * Modernize Whitespace token: csound lexer * Modernize Whitespace token: css lexer * Revert a change in basic lexer
* | | | Python: add "breakpoint" builtin.Georg Brandl2021-10-171-1/+1
| | | | | | | | | | | | | | | | Fixes #1918
* | | | Refactor identifiers regex to match unicode characters (#1848)amitkummer2021-10-151-2/+2
| | | |
* | | | Modernize Whitespace token - regarding #1905 (#1911)Sebastian Engel2021-10-095-46/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Diff lexer - match whitespace * Make lexer - whitespace token set * Actionscript lexer - whitespace token * Bare lexer - whitespace token * Business(cobol) lexers - whitespace token
* | | | Un in unexport keyword of Makefile correctly lexed (#1898)Sebastian Engel2021-10-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As pointed out by Issue #1860 the keyword unexport was not correctly matched. Only the part `export' had been matched. This commit adds an optional group to the regex of the `export` keyword to match `unexport` as well.
* | | | lexer SQL to use whitespace token - regarding #1905 (#1908)Sebastian Engel2021-10-061-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * SQL whitespaces - regarding #1905 * Sqlite prompt ungrouped from trailing space * sqlite prompt with Explicit trailing whitespace token * Fix insertion of sqlite trail space token
* | | | Improve whitespace handling in Fortran.Matthäus G. Chajdas2021-10-021-5/+5
| | | |
* | | | Fortran: Change whitespace to Text until Whitespace is used consistently.Matthäus G. Chajdas2021-10-021-2/+2
| | | |
* | | | Fix "do concurrent" and "go to" keywords in the Fortran lexer. (#1877)ecasglez2021-10-021-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix "do concurrent" and "go to" keywords in the Fortran lexer. * "Go to" statement was only highlighted if there was no space between "go" and "to". * "Concurrent" keyword in the "Do Concurrent" statement was never highlighted because of a typo. It has been fixed. In addition, it now highlights them only if "Concurrent" is right after the "Do" keyword. * I had to put the "do concurrent" changes before the already available list of keywords. Otherwise it won't highlight "Concurrent" because it finds first the "Do" keyword in the other list and stops searching for more keywords. * Fix a bug while parsing Fortran files with go to and do concurrent statements causing wrong highlighting. * For example, in the variable name "gotoErr", "goto" was highlighted but it shouldn't. * Update Fortran tests to the changes for the "go to statements" * Use Text.Whitespace to distinguish Fortran multiword keywords Co-authored-by: ecasglez <ecasglez@protonmail.com>
* | | | Fix #1237 cpp whitespace token usage expanded (#1904)Sebastian Engel2021-10-021-4/+4
| | | | | | | | | | | | | | | | | | | | * Fix #1237 cpp whitespace token usage expanded * Adapt tests change to 3eff56f5
* | | | Add new Java syntax: sealed classes and record types. (#1902)Benjamin Peterson2021-09-291-2/+2
| | | |
* | | | Update CHANGES.Matthäus G. Chajdas2021-09-041-0/+2
| | | |
* | | | Lexer for new language Maxima (#1885)Robert Dodier2021-09-042-0/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* | | | Clean-up unused imports (#1887)Mickaël Schoentgen2021-08-2311-19/+9
| | | |
* | | | Improve checks. (#1884)Matthäus G. Chajdas2021-08-1711-13/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve checks. * Fix lots of small errors. * Remove the line length check. * Add an option to skip lexers with no alias * Run checks in make check * Add a new CI target.
* | | | Fix a few make check failures.Matthäus G. Chajdas2021-08-153-3/+3
| | | |
* | | | Update mapfiles & CHANGES.Matthäus G. Chajdas2021-08-151-2/+2
| | | |
* | | | Add `pwsh` alias for “PowerShell” lexers (#1876)ExE Boss2021-08-151-2/+2
| | | |