summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Scheme: recognize #: keywords (used for named function arguments)Jean Abou Samra2022-02-081-0/+43
| | | | | | | | | | | | | | | Highlighting as Keyword.Declaration is consistent with the RacketLexer.
| * | Scheme: support datum commented with #;Jean Abou Samra2022-02-084-9/+53
| | | | | | | | | | | | | | | | | | Previously, #; awaited an S-expression but could not cope with a simple datum like a number literal. While at it, also support R6RS brackets for S-expressions.
| * | Scheme: autogenerate lists of builtinsJean Abou Samra2022-02-084-1540/+2555
| | | | | | | | | | | | | | | | | | | | | This enriches the space of recognized builtins. Note that this also fixes the space after a builtin being included in the token.
| * | Scheme: support fancy kinds of numbersJean Abou Samra2022-02-082-15/+180
| | | | | | | | | | | | | | | Many number literals were not recognized previously, such as fractions, infinities, hex and complex literals.
| * | Scheme: highlight string escapesJean Abou Samra2022-02-082-61/+267
| | | | | | | | | | | | | | | Move string parsing to a dedicated state so it can recognize string escapes. Add support for various kinds of escapes.
| * | Update Spice lexer (#2063)Marc Auberer2022-02-082-6/+36
| | |
| * | tests: fix pytest 8 deprecationGeorg Brandl2022-02-082-2/+4
| | |
| * | Let Groff formatter inherit token styles correctly (#2024)Jean Abou-Samra2022-02-051-0/+40
| | |
| * | Elpi: fix catastrophic backtracking (#2061)Jean Abou-Samra2022-02-031-0/+6
| | |
| * | When using the HTML formatter with `linespans=foo`, `linenos=inline`, and ↵Maximilian Hils2022-01-311-0/+8
| | | | | | | | | | | | | | | `anchorlinenos=True`, (#2026) the generated anchor links should be `#foo-42` and not `#-42`.
| * | Support comments in JSON (#2049)Kurt McKee2022-01-281-13/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Support comments in JSON This deviates from the JSON specification but doesn't affect valid JSON. * Update the JSON parser and tests to reach 100% code and branch coverage * Note work on JSON lexer * Fix a roundtrip error identified by a random test input in CI * Note that comments are supported, and that no validation is performed
| * | Update `Inform6Lexer` to Inform 6.36 (#2050)David Corbett2022-01-252-5/+96
| | |
* | | added support for mpe, dtproblog, + test casesFabrizio Riguzzi2022-02-039-0/+1511
| | |
* | | Merge branch 'pygments:master' into masterFabrizio Riguzzi2022-01-2536-34/+455
|\ \ \ | |/ /
| * | Add support for .cljc clojure file extension (#2043)Danny Freeman2022-01-252-0/+421
| | |
| * | Happy new year.Georg Brandl2022-01-2534-34/+34
| |/
* | lexer for the cplint language https://cplint.euFabrizio Riguzzi2022-01-221-0/+100
|/
* CFamily: improve label detection (#2022)amitkummer2022-01-068-48/+156
| | | | | | | | | | | | | | | | * Remove unused variable This variable is unused since the first commit to this file in the commit history, so it's probably safe to remove it. * Lex identifier as label only if it's at line start * Stop matching identifiers that begin with a digit This is so we don't match numbers as labels with the new labels rule. * Add label tests * Fix existing tests
* Update tests.Matthäus G. Chajdas2022-01-031-2/+2
|
* Java: fix lexing of 'record' soft keyword (#2018)amitkummer2022-01-031-1/+53
| | | | | | | | | | | | | | | | * Java: fix lexing of 'record' soft keyword Refactor the Java lexer to treat `record` as a soft keyword. Previously, the lexer assumed record is a reserved word, even though it is a soft keyword which can be used as a variable name. This refactor lexes record as a keyword only if it appears at the beggining of the line, with some potential other keywords like public and private preceding it. * Remove repetition in capture group * Update test output
* Improve fix for #2010.Matthäus G. Chajdas2021-12-312-4/+4
|
* Add more whitespace variants to JSON test content.Matthäus G. Chajdas2021-12-312-1/+47
|
* Update CHANGES, add large JSON sample file.Matthäus G. Chajdas2021-12-312-0/+10447
|
* Fix #2010.Matthäus G. Chajdas2021-12-302-0/+9
|
* Update Spice lexer (#2009)Marc Auberer2021-12-302-12/+82
|
* CFamily: improve function detection (#2008)amitkummer2021-12-302-0/+27
| | | | Detect function with return types of more than a single word length (like `unsigned int` or `long long`).
* GSQL lexer syntax changes (#2006)Gregory Grubbs2021-12-302-29/+258
| | | | | | | | | * Add square, angle and single underscore to punct; simplify string regex * Add dollar as operator in LOAD DDL; add pipe as op for resused edge names * Add to test file to test recent lexer fixes * Added PR# to new test cases
* Merge branch 'master' of github.com:pygments/pygments; branch 'lexers_gh' of ↵Matthäus G. Chajdas2021-12-2947-14415/+14140
|\ | | | | | | https://github.com/blu-base/pygments into blu-base-lexers_gh
| * Modernize Whitespace token in lexer: hexdumpSebastian Engel2021-12-034-4/+4
| |
| * Modernize Whitespace token in lexer: hdlSebastian Engel2021-12-037-1053/+737
| |
| * Modernize Whitespace token in lexer: haxeSebastian Engel2021-12-032-1628/+1628
| |
| * Modernize Whitespace token in lexer: haskellSebastian Engel2021-12-0312-7140/+7147
| |
| * Modernize Whitespace token in lexer: graphSebastian Engel2021-11-211-2/+3
| |
| * Modernize Whitespace token in lexer: graphicsSebastian Engel2021-11-218-4198/+4222
| |
| * Modernize Whitespace token in lexer: grammer_notationSebastian Engel2021-11-213-154/+163
| |
| * Modernize Whitespace token in lexer: goSebastian Engel2021-11-211-22/+22
| |
| * Modernize Whitespace token in lexer: gdscriptSebastian Engel2021-11-219-214/+214
| |
* | Merge pull request #1994 from amitkummer/python-pattern-matchingMatthäus G. Chajdas2021-12-292-0/+219
|\ \ | | | | | | Python: lex soft keywords
| * | Python: lex soft keywordsamitkummer2021-12-202-0/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some notes: - This approach is not perfect, but it's rather simple and I can't think of an edge case. - I did not use the `words` function to create the regex matching the keywords list, because it returns a capturing group (`()`) and it needs to be non-capturing here (because of `bygroups` usage). - I chose to go to the 'soft-keywords-inner' state after both `match` and `case`, even though it's unnecessary for `match` (the inner state catches the `_` wildcard keyword which appears only after a `case`). This is mostly harmless and saves us from writing the 'soft-keywords' regex twice each for `match` and `case` with the extra inner state just for `case`. The only piece of code this will lex incorrectly is `match _:` (`_` will be lexed as keyword). I doubt though that pattern mathcing will be used like this.
* | | Update for new Python traceback locations (#2004)Jean-Abou-Samra2021-12-292-2/+2
| | | | | | | | | | | | Since https://github.com/python/cpython/pull/27037, they can include tildes in addition to the carets.
* | | Fix single and multiline comment regex for GSQL (#2002)Gregory Grubbs2021-12-282-121/+231
| | | | | | | | | | | | | | | * Fix single and multiline comment regex for GSQL * Add examples for end-of-line and multiline comments with embedded keywords
* | | Add a tooltips option to HtmlFormatter. (#1822)Walter Dörwald2021-12-281-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a tooltips option to HtmlFormmater. * Rename option tooltips to debug_token_types. * Use explicit if block. * Fix check. * Document how to use the new debug_token_types option for the HTML formatter. * Remove output redirection from example call.
* | | Some LilyPond updates (#2001)Jean-Abou-Samra2021-12-282-29/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add pitch language names to builtins. They are not highlighted specially in the default style, but can be in a custom style. - Refactor matching of builtins in order to avoid confusion between dim chord modifier and \dim dynamic command. - Support grob subproperties. - Add segno repeat type. - While at it, update builtins for latest version.
* | | Various small fixups for the Rita lexer.Matthäus G. Chajdas2021-12-283-36/+121
| | |
* | | Merge branch 'master' of github.com:pygments/pygments; branch 'master' of ↵Matthäus G. Chajdas2021-12-282-0/+48
|\ \ \ | | | | | | | | | | | | https://github.com/zaibacu/pygments into zaibacu-master
| * | | Fix testSarunas Navickas2020-09-141-3/+3
| | | |
| * | | Extra case to markSarunas Navickas2020-09-101-0/+2
| | | |
| * | | Merge branch 'master' of github.com:zaibacu/pygmentsSarunas Navickas2020-09-092-8/+11
| |\ \ \
| | * | | Style fixŠarūnas Navickas2020-09-081-0/+1
| | | | |
| | * | | Add example fileŠarūnas Navickas2020-09-081-0/+10
| | | | |