summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* all: convert "re" to "regex"regexGeorg Brandl2022-10-277-10/+15
|
* all: style fixesGeorg Brandl2022-10-271-6/+2
|
* Add support for Arturo language (#2259)RickBarretto2022-10-262-0/+3021
|
* C#: recognize Operators as such, fix split-up numeric literalsGeorg Brandl2022-10-222-96/+84
| | | | Fixes #2256
* Add fift language (#2249)Dan Volkov2022-09-292-0/+479
|
* Add tl-b lexer (#2247)Dan Volkov2022-09-262-0/+10163
|
* Fix: Issues with .properties format using whitespace delimited key (#2241)jmzambon2022-09-255-41/+94
| | | | | | | | | Added: - support for space delimitor in every case, included multiline value - check for odd number of backslash escapes - "!" as comment start - support for escape of spaces and separators Dropped: - undocumented ";" and "//" comment start
* Improve Clay, Autohotkey lexers. (#2248)Matthäus G. Chajdas2022-09-252-103/+5
| | | Merge consecutive tokens together where possible.
* Updates from review.Aaron Bentley2022-09-251-35/+35
|
* Add Jsonnet supportAaron Bentley2022-09-252-0/+771
|
* Update nimrod.py lexer (#1970)matkuki2022-09-243-2657/+2644
| | | Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
* Add World of Warcraft TOC file lexer (#2244)Tim Martin2022-09-218-0/+651
| | | Also fix a broken link and decode as UTF8 in count_token_references.py.
* Adding MIPS Lexer (#2228)davisrichard4372022-09-215-0/+812
|
* Add func lexer (#2232)Dan Volkov2022-09-183-0/+525
|
* Fix syntax highlighting of INI language (#2217)jmzambon2022-09-152-4/+41
| | | | | Make it parse comments that are not their own line. Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
* Add Phix (#2222)Pete Lomax2022-09-152-0/+691
|
* [Spice] Add new keywords and fix bugs (#2227)Marc Auberer2022-09-132-0/+109
| | | | | | | | | | | | | * Cleanup * Add scope access operator * Add enum keyword * Update test ref * Fix bug for tokenizing number formats * Add pr to CHANGES
* Fix the lexing of Inform 6 properties and doubles (#2214)David Corbett2022-08-222-1/+26
|
* Improve NASM lexer (#2212)Fanael Linithien2022-08-192-0/+115
| | | | Adds support for SSE/AVX/AVX-512 registers and 'rel' and 'abs' address operators.
* Add GAP console session mode (#2211)Max Horn2022-08-196-0/+1768
| | | | | | | | | | * Add GAP console session mode This is also appropriate for GAP .tst files. Add `analyse_text` methods for `ScilabLexer` and `GAPConsoleLexer` to distinguish Scilab and GAP .tst files * Use explicit name for 'keepends' argument to splitlines
* CFamilyLexer: Fix matching of function parameters (#2210)amitkummer2022-08-182-1/+90
| | | | | | | | | | | | | | This fixes an issue where in code like this: ``` int foo(float bar) // hello() {} ``` The lexer would match `(float bar) // hello()` as the parameters of the function `foo`, instead of just `(float bar)`. In addition, a similar test case to what was originally reported in #2208 is added.
* CFamilyLexer: refuse quotes between parentheses for function definitions and ↵Jean Abou-Samra2022-08-152-1/+42
| | | | | | | | | | | | | | | | | | | | | | | | declarations (#2208) Something like id id2("){ ... }"); is no longer wrongly recognized as a "function" id id2(") { ... } "); As the difference in the tests shows, this has the unfortunate side effect that we no longer highlight something like int f(param="default"); as a function declaration, but it is hard to imagine another way to fix this (cf. “most vexing parse” problem). Fixes #2207
* Fortran: fix catastrophic backtrackingJean Abou Samra2022-08-151-0/+112
| | | | \\\\|\\. is like \\. but causes catastrophic backtracking inside (...)* .
* Update goldens for previous commitJean Abou Samra2022-08-151-3/+3
| | | | Very sorry about this!
* Disable highlighting of some escape codes for python bytes literals (#2204)LaurenceWarne2022-08-152-0/+44
| | | | | | | | Disable highlighting of unicode escape codes in python bytes literals, as described in https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals. So escape codes of the form "\N{name}", "\uxxxx" and "\Uxxxxxxxx" will no longer be highlighted within bytes literals. Add tests for escape code highlighting in string and bytes literals.
* Update Spice lexer (#2206)Marc Auberer2022-08-124-5/+998
|
* Add GitHub's Dark Style (#2192)Aniket Teredesai2022-07-271-2/+4
|
* Fix some cases in JMESPath lexer (#2182)Álvaro Mondéjar2022-07-202-6/+72
|
* Update `Inform6Lexer` to Inform 6.40 (#2190)David Corbett2022-07-163-9/+56
|
* Nord theme (#2189)Mateus Furquim2022-07-151-2/+4
| | | | Co-authored-by: andy <andy.yu2k@gmail.com> Co-authored-by: Jean-Abou-Samra <jean@abou-samra.fr>
* Added COMAL-80 language highlight. (#2180)Marc Rintsch2022-07-152-0/+696
| | | | | * Added COMAL-80 language highlight. Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* Add lexer for JMESPath (#2175)Álvaro Mondéjar2022-07-052-0/+208
| | | | Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
* PHP: fix `\"$var\"` inside strings (fixes #2105)Georg Brandl2022-06-301-0/+28
|
* Added cartouche handling for Isabelle lexer (#2159)Dacit2022-06-286-6182/+18405
| | | Co-authored-by: Fabian Huch <huch@in.tum.de>
* Add 1.18 generics support for go lexer (#2167)Shengyu Zhang2022-06-252-0/+194
| | | | | | - Add new predeclared identifiers: `any` and `comparable` - Add new operator for type parameters: `~` and `|` Ref: https://go.dev/ref/spec
* Matlab session: fix traceback when a line continuation ellipsis appears in ↵Georg Brandl2022-06-231-0/+18
| | | | | | the output Fixes #2166
* add missing change for lilypond testsGeorg Brandl2022-06-211-192/+192
|
* Update the Tera Term golden fileKurt McKee2022-06-212-295/+79
|
* Update tests.Matthäus G. Chajdas2022-06-192-57/+5
|
* terraform: accept leading whitespace for << heredoc delimGeorg Brandl2022-06-171-0/+33
| | | | Fixes #2162
* agda: allow ticks in module namesGeorg Brandl2022-06-172-2/+2
| | | | Fixes #2163
* Ada: fixing highlighting for Ada aspects (#2125)Gustavo A. Hoffmann2022-06-164-14/+542
|
* coq: Add some common keywords and improve recognition of Set and qualified ↵Xia Li-yao2022-06-113-20/+152
| | | | | | | | | identifiers (#2158) . is not an operator in Coq: in this specific usage, it is only meant to build a qualified name, so this rule really corresponds to a proper lexical rule in Coq Unlike most languages, Coq has a large set of special words that are not reserved: they may still be used as identifiers. For example Prop is a special word, which currently gets highlighted as such in Equations.Prop.Equations, but it should be recognized as a regular name there. Because of how flexible the syntax of Coq is, it's not straightforward to disambiguate things with just a bunch of regexes, so we have to rely on heuristics. Skipping qualified names from being recognized as keywords is an easy win.
* feat: add a new SqlJinjaLexer (#2148)Edgar R. M2022-06-053-1/+174
|
* tcl: accept variables in ${name} syntaxGeorg Brandl2022-06-041-0/+17
| | | | Fixes #2145
* Fix comments within function declarations in C (#1891) (#2140)lambda-karlculus2022-05-301-0/+409
| | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* nim: types shouldn't be highlighted as keywords (#2136)Miran2022-05-123-54/+127
| | | Use `Name.Builtin`.
* Improve heuristic to warn about passing lexer/formatter class (#2123)Jean Abou-Samra2022-05-121-0/+22
| | | | Don't rely on the error message since 'missing 1 required positional argument' can give false positives. Instead, use issubclass().
* java multiline highlighting based on issue 1858 (#2132)VishalN72022-05-102-0/+231
| | | Co-authored-by: Chung Tai <chungtai456@gmail.com>
* Ada 2022: introducing support for new syntactic additions (#2121)Gustavo A. Hoffmann2022-04-292-0/+213
| | | | | * Ada 2022: adding support for at sign * Ada 2022: adding support for square brackets * Ada 2022: introducing test for new syntactic additions