summaryrefslogtreecommitdiff
path: root/tests/snippets
Commit message (Collapse)AuthorAgeFilesLines
...
* | Update golen test files.Matthäus G. Chajdas2022-02-203-56/+56
| |
* | Merge branch 'master' of github.com:pygments/pygments; branch 'lexers_ijkl' ↵Matthäus G. Chajdas2022-02-2045-493/+577
|\ \ | | | | | | | | | of https://github.com/blu-base/pygments into blu-base-lexers_ijkl
| * | Whitespace token for kotlin lexerSebastian Engel2022-01-068-36/+36
| | |
| * | Whitespace token for scala lexerSebastian Engel2022-01-0617-54/+54
| | |
| * | Whitespace token for jvm lexerSebastian Engel2022-01-064-47/+47
| | |
| * | Whitespace token for julia lexerSebastian Engel2022-01-0610-347/+359
| | |
| * | Whitespace token j lexerSebastian Engel2022-01-062-2/+2
| | |
| * | Ws token coffee lexerSebastian Engel2022-01-062-2/+2
| | |
| * | Modernize Whitespace token in lexer javascriptSebastian Engel2022-01-062-5/+77
| |/
* | Add support for non-idiomatic single line comments in terraform (#2066)Charles Bouchard-Légaré2022-02-091-0/+3
| |
* | 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: autogenerate lists of builtinsJean Abou Samra2022-02-081-4/+4
| | | | | | | | | | | | | | 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-081-0/+169
| | | | | | | | | | Many number literals were not recognized previously, such as fractions, infinities, hex and complex literals.
* | Scheme: highlight string escapesJean Abou Samra2022-02-081-0/+85
| | | | | | | | | | Move string parsing to a dedicated state so it can recognize string escapes. Add support for various kinds of escapes.
* | tests: fix pytest 8 deprecationGeorg Brandl2022-02-081-1/+2
| |
* | Elpi: fix catastrophic backtracking (#2061)Jean Abou-Samra2022-02-031-0/+6
| |
* | Happy new year.Georg Brandl2022-01-251-1/+1
|/
* 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
* Merge branch 'master' of github.com:pygments/pygments; branch 'lexers_gh' of ↵Matthäus G. Chajdas2021-12-2915-270/+230
|\ | | | | | | https://github.com/blu-base/pygments into blu-base-lexers_gh
| * Modernize Whitespace token in lexer: hdlSebastian Engel2021-12-034-216/+176
| |
| * Modernize Whitespace token in lexer: haskellSebastian Engel2021-12-033-20/+20
| |
| * Modernize Whitespace token in lexer: gdscriptSebastian Engel2021-11-218-34/+34
| |
* | Lexer for new language Elpi (#1894)Enrico Tassi2021-12-125-0/+309
| | | | | | | | | | | | | | | | | | * lexers: add Elpi * test: elpi * Fix copyright * address code review
* | Merge branch 'lexers_ef' of https://github.com/blu-base/pygments into ↵Matthäus G. Chajdas2021-12-062-32/+33
|\ \ | |/ |/| | | blu-base-lexers_ef
| * Modernize Whitespace token in lexer: ezhilSebastian Engel2021-11-142-32/+33
| |
* | Merge branch 'lexers_de' of https://github.com/blu-base/pygments into ↵Matthäus G. Chajdas2021-11-213-17/+17
|\ \ | | | | | | | | | blu-base-lexers_de
| * | Modernize Whitespace token: data lexer(json,yaml)Sebastian Engel2021-10-233-17/+17
| | |
* | | Regenerate golden test files.Matthäus G. Chajdas2021-11-211-1/+1
| | |
* | | Asm lex bugfix #1895: register re check for boundary (#1961)Sebastian Engel2021-11-171-0/+32
| |/ |/|
* | Squashed commit of the following:Matthäus G. Chajdas2021-11-062-0/+56
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Whitespace token modernization - a* lexers - regarding #1905 (#1914)Sebastian Engel2021-10-233-14/+14
| | | | | | | | | | | | | | | * 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-2373-675/+667
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Update test files.Matthäus G. Chajdas2021-10-151-2/+2
|
* Refactor identifiers regex to match unicode characters (#1848)amitkummer2021-10-151-0/+146
|
* Fix #1237 cpp whitespace token usage expanded (#1904)Sebastian Engel2021-10-021-1/+1
| | | | | * 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-0/+15
|
* Java: do not lex whitespace as Label, do not lex "default" as LabelGeorg Brandl2021-07-312-1/+38
| | | | Fixes #1851
* Add support for JSLT (#1821)João Abecasis2021-07-181-0/+83
| | | | | | | | | | * Add support for JSLT JSLT is an open-source JSON query and transformation language, inspired by jq, XPath, and XQuery: https://github.com/schibsted/jslt. * fixup! Add support for JSLT * fixup! Add support for JSLT
* Improved Rust attributes (#1813)kaivol2021-06-251-0/+12
|
* Use Whitespace for whitespace in Tcl.Matthäus G. Chajdas2021-06-201-38/+38
|
* tcl lexer: no error for @ or , (#1834)Akuli2021-06-201-0/+131
| | | | | | | * tcl lexer: no error for @ or , * examplefiles --> snippets * rename test file to convention
* Use the correct whitespace token for the C family.Matthäus G. Chajdas2021-06-2021-106/+106
| | | | The CFamilyLexer was matching whitespace as Text instead of Whitespace.
* Fix CFamilyLexer preprocessor tokenization errors (#1830)Henrik Lievonen2021-06-203-0/+50
| | | | | | | | | | | | CFamilyLexer failed to tokenize preprocessor macros when they were preceded by line break surrounded by spaces. This was the case because prerpocessor regex rule expected to start at the beginning of the line, but the space regex rule matched also the whitespace after the line break. Now the space rule has been refined not to match the line break. Because of this, the preprocessor regex rule correctly matches prerpocessor tokens even when they are preceded by white spaces, at the cost of adding some more tokens in the token stream in some cases. This change preserves the behavior of invalid preprocessor usage failing to tokenize.
* Rust: fix lexing of "break" and "continue"Georg Brandl2021-06-201-0/+39
| | | | fixes #1843
* Correctly highlight multiline console input, even without PS2 prompt (#1833)Jesse Tan2021-06-044-0/+32
|
* Support Terraform 0.14 syntax (#1756)Leonardo Giordani2021-05-029-0/+673
| | | | | * Support Terraform 0.14 syntax * Use \S instead of [^\s]
* Support for OMG IDL (#1595)Fred Hornsey2021-05-024-0/+61
| | | | | | | | | | | | | | | | | | * Support for OMG IDL Lexer for [Object Management Group Interface Definition Language](https://www.omg.org/spec/IDL/About-IDL/). * Allow Whitespace Before include in C Preprocessor It wasn't highlighting the included filename the same as if there was no space before the include, but now it is. * Update omg-idl Tests to Latest Requirements * Update omg-idl versionadded to 2.9 Since I just realized this missed the 2.8 release. * Add Missing Operators to omg-idl
* Improve PromQL lexer with new test cases (#1783)Pablo Seminario2021-04-242-0/+51
| | | | | | | | | * Fix PromQL lexer to support values enclosed within single quotes Values for labels could now be enclosed within single or double quotes. * Fix a typo into the lables regex for PromQL lexer The correct label matching operator is `!~` instead of `~!`.
* Rust: fix raw string tokenGeorg Brandl2021-04-121-0/+117
| | | | Fixes #1771
* Fix python lexer parsing floats incorrectly (#1768)Liam Stevens2021-04-101-0/+75
| | | | | | | | | * lexers: python: add test cases for floats * lexers: python: fix float lexing * lexer:python:fixed test syntax Co-authored-by: Aidan Do <giahuydo99@gmail.com>