summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
| | | | |
| * | | | Add example file for ritaSarunas Navickas2020-09-081-0/+8
| |/ / /
| * | | Initial versionSarunas Navickas2020-09-081-0/+35
| | | |
* | | | Update CHANGES, contrast for friendly grayscale.Matthäus G. Chajdas2021-12-281-0/+1
| | | |
* | | | Update CHANGES, add test for #1981.Matthäus G. Chajdas2021-12-282-0/+144
| |/ / |/| |
* | | Lexer for new language Elpi (#1894)Enrico Tassi2021-12-125-0/+309
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lexers: add Elpi * test: elpi * Fix copyright * address code review
* | | Update HTML tests.Matthäus G. Chajdas2021-12-06131-739/+281
| | | | | | | | | | | | | | | This includes a new structural diff which is more robust, as it handles changes like different attribute order.
* | | Fix whitespace handling, update CHANGES.Matthäus G. Chajdas2021-12-061-73/+73
| | |
* | | Merge branch 'master' of https://github.com/chillibits/pygments into ↵Matthäus G. Chajdas2021-12-062-0/+231
|\ \ \ | | | | | | | | | | | | chillibits-master
| * | | Finish lexer implementation for SpiceMarc Auberer2021-12-052-0/+231
| | | |
* | | | Merge branch 'lexers_ef' of https://github.com/blu-base/pygments into ↵Matthäus G. Chajdas2021-12-0618-8739/+5724
|\ \ \ \ | |/ / / |/| | | | | | | blu-base-lexers_ef
| * | | Modernize Whitespace token in lexer: forthSebastian Engel2021-11-141-17/+17
| | | |
| * | | Modernize Whitespace token in lexer: floscriptSebastian Engel2021-11-141-191/+117
| | | |
| * | | Modernize Whitespace token in lexer: felixSebastian Engel2021-11-141-250/+185
| | | |
| * | | Modernize Whitespace token in lexer: fantomSebastian Engel2021-11-141-5092/+1987
| | | |
| * | | Modernize Whitespace token in lexer: factorSebastian Engel2021-11-141-1262/+1391
| | | |
| * | | Modernize Whitespace token in lexer: ezhilSebastian Engel2021-11-143-228/+252
| | | |
| * | | Modernize Whitespace token in lexer: esotericSebastian Engel2021-11-143-223/+237
| | | |
| * | | Modernize Whitespace token in lexer: erlangSebastian Engel2021-11-145-1005/+1047
| | | |
| * | | Modernize Whitespace token in lexer: elmSebastian Engel2021-11-141-178/+194
| | | |
| * | | Modernize Whitespace token in lexer: eiffelSebastian Engel2021-11-141-293/+297
| | | |
* | | | New lexer for Sophia contracts (#1974)Hans Svensson2021-11-282-0/+1622
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * New lexer for Sophia contracts * Whitespacee should be Text.Whitespace * Update golden files
* | | | Add support for BDD features / stories (#1803)xuan2021-11-272-0/+375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create BDD.py Initialize the lexer file of BDD Add keywords of BDD * Update the 'RegexLexer' * Edit and test * Update BDD.py * Update BDD.py * Update the BddLexer file * Update the BddLexer of root tokens * edit bdd Add regular expression for tokens * edit bdd Add regular expression for tokens * add .gitignore * updata bdd.lexer * Delete bdd.py * Update the Keywords, Numbers, Punctuation token * bdd.py Assign different colors to keywords, punctuation, numbers, and variables. * Update the BddLexer file * Update bdd.py Fix the file name. * Add the detection for '@' Co-Authored-By: OMGJL <8707895+OMGJL@users.noreply.github.com> * Update bdd.py Add detection of double quotes. Co-Authored-By: OMGJL <8707895+OMGJL@users.noreply.github.com> * Fix the double quotes * fix the quote recognition * add comments * update the root dir * add bdd test cases * Delete .DS_Store * Delete .DS_Store * Delete .DS_Store * remove DS file * restore the gitignore file * update the bdd lexer * update the bdd lexer * update the whitespace highlight * update the whitespace highlight * refactor the bdd.py * update the punctuation * update the punctuation * update bdd token Change "." to the "\S+", Which reduce the test output file size. Co-Authored-By: OMGJL <8707895+OMGJL@users.noreply.github.com> * Update bdd.py Reduce the new token for each space Co-authored-by: Hongyuan Yan <hongyuan.yan@student.adelaide.edu.au> Co-authored-by: OMGJL <lzhsjunkmail@gmail.com> Co-authored-by: Hongyuan Yan <54675432+kirito330824@users.noreply.github.com> Co-authored-by: Jessie2110 <71688609+Jessie2110@users.noreply.github.com> Co-authored-by: Jessie2110 <wuqiong2110@gmail.com> Co-authored-by: OMGJL <8707895+OMGJL@users.noreply.github.com>
* | | | Various small cleanups.Matthäus G. Chajdas2021-11-211-1/+2
| | | |
* | | | Add lexer and style for LilyPond (#1845)Jean-Abou-Samra2021-11-212-0/+716
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add lexer and style for LilyPond GNU LilyPond is a text-based music typesetter. Because its concepts are completely different from programming languages, this adds a special-purpose to highlight the special tokens. The SchemeLexer is expanded to gain the ability of detecting when one expression stops. LilyPondLexer subclasses SchemeLexer. Builtins (the most important part) are generated with a script put in external/ (as was already done for Lasso). As part of this change, the CPSALexer is made no longer to inherit from SchemeLexer. The inheritance was unused anyway. * Fixup: translators names have underscores * Fixup: avoid duplicate builtins * Fixup: update goldens * Fixup: typo * Fixup: add missing tokens to style * Fixup: update lexer comments * Fixup: Tentative style adjustments * Fixup: move test file to examplefiles/ * Fixup: miscellaneous fixes (to be finished) * Fixup: escape all braces * Fixup: use Text, not Whitespace * Fixup: fixes for lexing and style * Fixup: update goldens! * Fixup: also test alist assignments * Fixup: recognize escape sequences in strings * Fixup: use Comment.Single * Fixup: Whitespace, not Text! * Fixup: fix pitch parsing * Fixup: update comment * Fixup: remove redundant re.UNICODE
* | | | add a lexer for .SRCINFO files (#1951)Jendrik2021-11-218-0/+3602
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * add a lexer for .SRCINFO files * add an example file that tests architecture dependent keys * fix module name underline