Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Stop the HTML formatter from emitting empty whitespace spans. | Matthäus G. Chajdas | 2022-12-11 | 128 | -384/+384 | |
| | ||||||
* | Improve whitespace handling in Python. | Matthäus G. Chajdas | 2022-12-11 | 224 | -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. Chajdas | 2022-12-11 | 1 | -2/+2 | |
| | ||||||
* | Improve whitespace handling in PraatLexer. | Matthäus G. Chajdas | 2022-12-11 | 3 | -120/+151 | |
| | ||||||
* | Add support for PortugolLexer (#2300) | Lorhan Sohaky | 2022-12-10 | 2 | -0/+1379 | |
| | ||||||
* | Remove the lxml dependency. | Matthäus G. Chajdas | 2022-12-07 | 1 | -11/+31 | |
| | | | | Replace lxml with html.parser for the structural-diff. | |||||
* | Improve whitespace handling in PraatLexer. | Matthäus G. Chajdas | 2022-12-04 | 15 | -898/+898 | |
| | ||||||
* | Improve whitespace handling in TealLexer. | Matthäus G. Chajdas | 2022-12-04 | 4 | -17/+17 | |
| | ||||||
* | Improve whitespace handling in XmlLexer. | Matthäus G. Chajdas | 2022-12-04 | 12 | -5362/+7350 | |
| | ||||||
* | Improve whitespace handling in PythonTracebackLexer. | Matthäus G. Chajdas | 2022-12-04 | 12 | -147/+147 | |
| | ||||||
* | Improve whitespace handling in Make/BashLexer. | Matthäus G. Chajdas | 2022-12-04 | 5 | -549/+549 | |
| | ||||||
* | Improve whitespace handling in CMake/RegexLexer. | Matthäus G. Chajdas | 2022-12-04 | 86 | -7678/+7678 | |
| | ||||||
* | Improve whitespace handling in the PascalLexer. | Matthäus G. Chajdas | 2022-12-04 | 2 | -9095/+9095 | |
| | ||||||
* | Improve whitespace handling in the BashLexer. | Matthäus G. Chajdas | 2022-12-04 | 29 | -8461/+8461 | |
| | ||||||
* | Improve whitespace handling in Markdown. | Matthäus G. Chajdas | 2022-12-04 | 8 | -24/+24 | |
| | ||||||
* | Fix whitespace handling in Ruby. | Matthäus G. Chajdas | 2022-12-04 | 20 | -7748/+7748 | |
| | ||||||
* | fix solidity lexer not picking up many of the language operators | Michael Rodler | 2022-12-03 | 2 | -47/+536 | |
| | ||||||
* | NixLexer: fix "1 token per char" | Jean Abou Samra | 2022-12-03 | 1 | -113/+9 | |
| | ||||||
* | nix: allow single quotes inside single-quoted strings (#2289) | Naïm Favier | 2022-12-03 | 2 | -1/+7 | |
| | ||||||
* | Add support for Wren language (#2271) | PureFox48 | 2022-11-29 | 3 | -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-29 | 8 | -0/+4019 | |
| | | | | (#2276) | |||||
* | LilyPond: slightly improve lexing (#2283) | Werner Lemberg | 2022-11-27 | 2 | -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-pick | Hillel | 2022-11-19 | 2 | -48/+48 | |
| | ||||||
* | Accept colon(s) in YAML key names | Greg Dubicki | 2022-11-14 | 3 | -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 ↵ | Ayowel | 2022-11-06 | 1 | -1/+9 | |
| | | | | fix line endings insertion | |||||
* | shell session: allow continuation without marker for PowerShell | Georg Brandl | 2022-10-28 | 1 | -0/+124 | |
| | | | | Fixes #2262 | |||||
* | all: style fixes | Georg Brandl | 2022-10-27 | 1 | -6/+2 | |
| | ||||||
* | Add support for Arturo language (#2259) | RickBarretto | 2022-10-26 | 2 | -0/+3021 | |
| | ||||||
* | C#: recognize Operators as such, fix split-up numeric literals | Georg Brandl | 2022-10-22 | 2 | -96/+84 | |
| | | | | Fixes #2256 | |||||
* | Add fift language (#2249) | Dan Volkov | 2022-09-29 | 2 | -0/+479 | |
| | ||||||
* | Add tl-b lexer (#2247) | Dan Volkov | 2022-09-26 | 2 | -0/+10163 | |
| | ||||||
* | Fix: Issues with .properties format using whitespace delimited key (#2241) | jmzambon | 2022-09-25 | 5 | -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. Chajdas | 2022-09-25 | 2 | -103/+5 | |
| | | | Merge consecutive tokens together where possible. | |||||
* | Updates from review. | Aaron Bentley | 2022-09-25 | 1 | -35/+35 | |
| | ||||||
* | Add Jsonnet support | Aaron Bentley | 2022-09-25 | 2 | -0/+771 | |
| | ||||||
* | Update nimrod.py lexer (#1970) | matkuki | 2022-09-24 | 3 | -2657/+2644 | |
| | | | Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr> | |||||
* | Add World of Warcraft TOC file lexer (#2244) | Tim Martin | 2022-09-21 | 8 | -0/+651 | |
| | | | Also fix a broken link and decode as UTF8 in count_token_references.py. | |||||
* | Adding MIPS Lexer (#2228) | davisrichard437 | 2022-09-21 | 5 | -0/+812 | |
| | ||||||
* | Add func lexer (#2232) | Dan Volkov | 2022-09-18 | 3 | -0/+525 | |
| | ||||||
* | Fix syntax highlighting of INI language (#2217) | jmzambon | 2022-09-15 | 2 | -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 Lomax | 2022-09-15 | 2 | -0/+691 | |
| | ||||||
* | [Spice] Add new keywords and fix bugs (#2227) | Marc Auberer | 2022-09-13 | 2 | -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 Corbett | 2022-08-22 | 2 | -1/+26 | |
| | ||||||
* | Improve NASM lexer (#2212) | Fanael Linithien | 2022-08-19 | 2 | -0/+115 | |
| | | | | Adds support for SSE/AVX/AVX-512 registers and 'rel' and 'abs' address operators. | |||||
* | Add GAP console session mode (#2211) | Max Horn | 2022-08-19 | 6 | -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) | amitkummer | 2022-08-18 | 2 | -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-Samra | 2022-08-15 | 2 | -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 backtracking | Jean Abou Samra | 2022-08-15 | 1 | -0/+112 | |
| | | | | \\\\|\\. is like \\. but causes catastrophic backtracking inside (...)* . | |||||
* | Update goldens for previous commit | Jean Abou Samra | 2022-08-15 | 1 | -3/+3 | |
| | | | | Very sorry about this! | |||||
* | Disable highlighting of some escape codes for python bytes literals (#2204) | LaurenceWarne | 2022-08-15 | 2 | -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. |