summaryrefslogtreecommitdiff
path: root/pygments
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | lexer for the cplint language https://cplint.euFabrizio Riguzzi2022-01-221-0/+43
|/ / /
* | | Fix typos (#2030)Kian-Meng Ang2022-01-1827-35/+35
| | |
* | | Add .tpp as a c++ lexer file extension (#2031)HampusMat2022-01-112-2/+2
|/ /
* | Prepare 2.11.2 release.2.11.2Matthäus G. Chajdas2022-01-061-1/+1
| |
* | CFamily: improve label detection (#2022)amitkummer2022-01-061-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Fix #1986.Matthäus G. Chajdas2022-01-062-2/+2
| | | | | | | | | | Some formatters did not backtrack to parent token types correctly when trying to find a matching style.
* | Fix #2020.Matthäus G. Chajdas2022-01-051-1/+1
| |
* | Merge branch 'patch-1' of https://github.com/Kwpolska/pygments into ↵Matthäus G. Chajdas2022-01-031-1/+1
|\ \ | | | | | | | | | Kwpolska-patch-1
| * | Generate valid links if lineanchors but no linenos set (#2013)Chris Warrick2021-12-311-1/+1
| | |
* | | Java: fix lexing of 'record' soft keyword (#2018)amitkummer2022-01-031-2/+4
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Prepare 2.11.1 release.2.11.1Matthäus G. Chajdas2021-12-311-1/+1
| |
* | Improve fix for #2010.Matthäus G. Chajdas2021-12-311-1/+7
| |
* | Fix #2010.Matthäus G. Chajdas2021-12-301-1/+1
| |
* | Update Spice lexer (#2009)Marc Auberer2021-12-301-4/+4
| |
* | CFamily: improve function detection (#2008)amitkummer2021-12-301-2/+3
| | | | | | | | Detect function with return types of more than a single word length (like `unsigned int` or `long long`).
* | Bump version number.Matthäus G. Chajdas2021-12-301-1/+1
| |
* | GSQL lexer syntax changes (#2006)Gregory Grubbs2021-12-301-5/+4
| | | | | | | | | | | | | | | | | | * 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
* | Use words in Cypher lexer.Matthäus G. Chajdas2021-12-291-6/+7
| |
* | Merge branch 'master' of github.com:pygments/pygments; branch 'lexers_gh' of ↵Matthäus G. Chajdas2021-12-299-152/+169
|\ \ | | | | | | | | | https://github.com/blu-base/pygments into blu-base-lexers_gh
| * | Modernize Whitespace token in lexer: hexdumpSebastian Engel2021-12-031-2/+2
| | |
| * | Modernize Whitespace token in lexer: hdlSebastian Engel2021-12-031-33/+30
| | |
| * | Modernize Whitespace token in lexer: haxeSebastian Engel2021-12-031-7/+7
| | |
| * | Modernize Whitespace token in lexer: haskellSebastian Engel2021-12-031-51/+51
| | |
| * | Modernize Whitespace token in lexer: graphSebastian Engel2021-11-211-10/+30
| | |
| * | Modernize Whitespace token in lexer: graphicsSebastian Engel2021-11-211-23/+23
| | |
| * | Modernize Whitespace token in lexer: grammer_notationSebastian Engel2021-11-211-11/+11
| | |
| * | Modernize Whitespace token in lexer: goSebastian Engel2021-11-211-5/+5
| | |
| * | Modernize Whitespace token in lexer: gdscriptSebastian Engel2021-11-211-10/+10
| | |
* | | Add f90 as an alias for fortran (closes #2000.)Matthäus G. Chajdas2021-12-292-2/+2
| | |
* | | Merge pull request #1994 from amitkummer/python-pattern-matchingMatthäus G. Chajdas2021-12-291-1/+17
|\ \ \ | | | | | | | | Python: lex soft keywords
| * | | Python: lex soft keywordsamitkummer2021-12-201-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-291-1/+1
| | | | | | | | | | | | | | | | 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-281-14/+14
| | | | | | | | | | | | | | | | | | | | * 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-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-57/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
* | | | Fix rita.py header (#2003)Jean-Abou-Samra2021-12-281-4/+2
| | | |
* | | | Various small fixups for the Rita lexer.Matthäus G. Chajdas2021-12-281-3/+1
| | | |
* | | | Merge branch 'master' of github.com:pygments/pygments; branch 'master' of ↵Matthäus G. Chajdas2021-12-282-0/+49
|\ \ \ \ | | | | | | | | | | | | | | | https://github.com/zaibacu/pygments into zaibacu-master
| * | | | Fix regex crashŠarūnas Navickas2020-09-261-2/+2
| | | | |
| * | | | Use `Whitespace` instead of `Text`Sarunas Navickas2020-09-141-3/+3
| | | | |
| * | | | Allow digits in variable namesSarunas Navickas2020-09-091-1/+1
| | | | |
| * | | | Modify rulesSarunas Navickas2020-09-091-1/+3
| | | | |
| * | | | Missing operatorŠarūnas Navickas2020-09-081-1/+1
| | | | |
| * | | | Some commentsŠarūnas Navickas2020-09-081-1/+5
| | | | |
| * | | | Fix mappingŠarūnas Navickas2020-09-081-1/+1
| | | | |
| * | | | Initial versionSarunas Navickas2020-09-082-0/+43
| | | | |
* | | | | Update mappings, CHANGES.Matthäus G. Chajdas2021-12-281-1/+1
| | | | |
* | | | | feat(lexers): add more man page filename globs (#1801)Ville Skyttä2021-12-281-1/+1
| | | | | | | | | | | | | | | Numbered ones go up to 9, Perl ones may have 1p or 3pm suffixes.
* | | | | feat(lexers): associate XBM and XPM with C code (#1802)Ville Skyttä2021-12-282-3/+3
| | | | |
* | | | | Update CHANGES, contrast for friendly grayscale.Matthäus G. Chajdas2021-12-281-2/+3
| | | | |