summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Stop the HTML formatter from emitting empty whitespace spans.Matthäus G. Chajdas2022-12-11128-384/+384
|
* Improve whitespace handling in Python.Matthäus G. Chajdas2022-12-11224-761/+761
| | | | | | | | | This triggers a new case in the HtmlFormatter, which emits an empty span at the end of the line for a new line, as those are removed by the split-by-parts code. This requires separate post-processing. Doesn't fix all whitespace issues with Python either, but we're done to 360 failing examples with that, from previously >400.
* Fix golden test output.Matthäus G. Chajdas2022-12-111-2/+2
|
* Improve whitespace handling in PraatLexer.Matthäus G. Chajdas2022-12-113-120/+151
|
* Add support for PortugolLexer (#2300)Lorhan Sohaky2022-12-102-0/+1379
|
* Remove the lxml dependency.Matthäus G. Chajdas2022-12-071-11/+31
| | | | Replace lxml with html.parser for the structural-diff.
* Improve whitespace handling in PraatLexer.Matthäus G. Chajdas2022-12-0415-898/+898
|
* Improve whitespace handling in TealLexer.Matthäus G. Chajdas2022-12-044-17/+17
|
* Improve whitespace handling in XmlLexer.Matthäus G. Chajdas2022-12-0412-5362/+7350
|
* Improve whitespace handling in PythonTracebackLexer.Matthäus G. Chajdas2022-12-0412-147/+147
|
* Improve whitespace handling in Make/BashLexer.Matthäus G. Chajdas2022-12-045-549/+549
|
* Improve whitespace handling in CMake/RegexLexer.Matthäus G. Chajdas2022-12-0486-7678/+7678
|
* Improve whitespace handling in the PascalLexer.Matthäus G. Chajdas2022-12-042-9095/+9095
|
* Improve whitespace handling in the BashLexer.Matthäus G. Chajdas2022-12-0429-8461/+8461
|
* Improve whitespace handling in Markdown.Matthäus G. Chajdas2022-12-048-24/+24
|
* Fix whitespace handling in Ruby.Matthäus G. Chajdas2022-12-0420-7748/+7748
|
* fix solidity lexer not picking up many of the language operatorsMichael Rodler2022-12-032-47/+536
|
* NixLexer: fix "1 token per char"Jean Abou Samra2022-12-031-113/+9
|
* nix: allow single quotes inside single-quoted strings (#2289)Naïm Favier2022-12-032-1/+7
|
* Add support for Wren language (#2271)PureFox482022-11-293-0/+1057
| | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* Add a lexer for Schemas for Minecraft Add-ons and 4 examples, merging lexers ↵方法放寒假2022-11-298-0/+4019
| | | | (#2276)
* LilyPond: slightly improve lexing (#2283)Werner Lemberg2022-11-272-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle `--` and `__` as `Token.Punctuation` only if preceded by whitespace: ``` <whitespace> -- ==> hyphen (in lyrics mode) <whitespace> __ ==> extender line (in lyrics mode) -- ==> tenuto, neutral attachment (in music mode) __ ==> portato, down attachment (in music mode) ``` * Handle `-` followed by a number as `Token.Number` only if preceded by whitespace. This is purely heuristic, derived from the coding style shown in the LilyPond manuals. ``` <whitespace> -3 ==> integer (e.g., as a function argument) -3 ==> fingering instruction ``` * Add forgotten `\maxima` note duration. * Some legibility improvements by using verbose mode for regular expressions. * Some comment additions and fixes. * Update tests.
* Update Alloy for Alloy 6 (PR #1963) manual cherry-pickHillel2022-11-192-48/+48
|
* Accept colon(s) in YAML key namesGreg Dubicki2022-11-143-0/+33
| | | | | as it's ok according to the YAML specs and is widely used in the real world, f.e. in Puppet's Hiera (https://puppet.com/docs/puppet/7/hiera_quick.html#values_common_data)
* Remove unneeded _format_unencoded_with_lineno function from IRCFormatter and ↵Ayowel2022-11-061-1/+9
| | | | fix line endings insertion
* shell session: allow continuation without marker for PowerShellGeorg Brandl2022-10-281-0/+124
| | | | Fixes #2262
* 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.