summaryrefslogtreecommitdiff
path: root/pygments
Commit message (Collapse)AuthorAgeFilesLines
* all: convert "re" to "regex"regexGeorg Brandl2022-10-2796-98/+107
|
* all: move often-used "line_re" to pygments.lexerGeorg Brandl2022-10-2716-49/+15
|
* all: style fixesGeorg Brandl2022-10-27106-925/+705
|
* sphinxext: style fixupsGeorg Brandl2022-10-261-5/+6
|
* Arturo: add to changelog, style fixupsGeorg Brandl2022-10-261-72/+58
|
* Add support for Arturo language (#2259)RickBarretto2022-10-262-0/+265
|
* Rename aliases -> short names for consistency.Matthäus G. Chajdas2022-10-241-2/+2
|
* Improve the languages list.Matthäus G. Chajdas2022-10-241-0/+61
| | | | | | * Move the generation into sphinext, similar to other overviews we have. * Generate a table instead of the plain list. This table contains links to the lexer class now.
* C#: recognize Operators as such, fix split-up numeric literalsGeorg Brandl2022-10-221-2/+9
| | | | Fixes #2256
* dotnet: code style fixupGeorg Brandl2022-10-221-16/+17
|
* add local: to powershell keywords (#2254)grzyb0w2022-10-161-1/+1
| | | Co-authored-by: chsh <chuanshu@sheasecurity.com>
* Add fift language (#2249)Dan Volkov2022-09-292-0/+69
|
* Fix Sphinx warnings in doc buildJean Abou Samra2022-09-282-0/+4
|
* Add tl-b lexer (#2247)Dan Volkov2022-09-262-0/+58
|
* Fix: Issues with .properties format using whitespace delimited key (#2241)jmzambon2022-09-251-8/+20
| | | | | | | | | 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-3/+3
| | | Merge consecutive tokens together where possible.
* Fix regexlint warnings caused by limitations of regexlintJean Abou Samra2022-09-251-5/+5
|
* Updates from review.Aaron Bentley2022-09-251-2/+5
|
* Switch to \wAaron Bentley2022-09-251-2/+1
|
* Use include instead of plus sign.Aaron Bentley2022-09-251-46/+57
|
* Use words() with suffix inline.Aaron Bentley2022-09-251-7/+4
|
* Copyright and tweaks.Aaron Bentley2022-09-251-13/+19
|
* Combine regexesAaron Bentley2022-09-251-2/+1
| | | Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
* Use words()Aaron Bentley2022-09-251-3/+6
|
* Add Jsonnet supportAaron Bentley2022-09-252-0/+161
|
* Update nimrod.py lexer (#1970)matkuki2022-09-241-13/+52
| | | Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
* Fix minor documentation around WoWToCLexer (#2245)Tim Martin2022-09-221-2/+4
|
* Add World of Warcraft TOC file lexer (#2244)Tim Martin2022-09-212-0/+115
| | | Also fix a broken link and decode as UTF8 in count_token_references.py.
* HTTP: add CONNECT keyword (#2242)cmedrala2022-09-211-2/+2
|
* Adding MIPS Lexer (#2228)davisrichard4372022-09-212-0/+127
|
* Add func lexer (#2232)Dan Volkov2022-09-182-0/+109
|
* Fix syntax highlighting of INI language (#2217)jmzambon2022-09-151-2/+11
| | | | | 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/+365
|
* Objective-J: fix catastrophic backtracking in comment regex (#2225)Jean Abou-Samra2022-09-151-1/+1
| | | | | | This use of *? was both incorrect and catastrophically backtracking when embedding this regex into a larger regex with a trailing pattern, since it could match much more than intended and try exponentially many positions in that process.
* Add `.pyi` file to `python` lexer filenames (#2231)Nikita Sobolev2022-09-152-1/+3
|
* Add { and } to punctuation for GNU Assembly lexer (#2230)Nils Husung2022-09-141-1/+1
| | | | | This allows lexing instructions like: vpscatterqd %ymm0, 0x404050(,%zmm2,4) {%k1}
* [Spice] Add new keywords and fix bugs (#2227)Marc Auberer2022-09-131-8/+8
| | | | | | | | | | | | | * 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-221-5/+7
|
* Improve NASM lexer (#2212)Fanael Linithien2022-08-191-3/+4
| | | | Adds support for SSE/AVX/AVX-512 registers and 'rel' and 'abs' address operators.
* Add GAP console session mode (#2211)Max Horn2022-08-195-5/+75
| | | | | | | | | | * 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-181-8/+8
| | | | | | | | | | | | | | 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.
* Prepare for 2.13.0 release.Matthäus G. Chajdas2022-08-151-1/+1
|
* Replace uses of `import *`.Matthäus G. Chajdas2022-08-152-2/+4
|
* Merge branch 'master' into pillow92Matthäus G. Chajdas2022-08-156-102/+203
|\
| * CFamilyLexer: refuse quotes between parentheses for function definitions and ↵Jean Abou-Samra2022-08-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Fix glitch found by regexlintJean Abou Samra2022-08-151-2/+2
| |
| * Fortran: fix catastrophic backtrackingJean Abou Samra2022-08-151-2/+2
| | | | | | | | \\\\|\\. is like \\. but causes catastrophic backtracking inside (...)* .
| * LilyPond: add 6 missing builtinsJean Abou Samra2022-08-151-72/+155
| | | | | | | | | | | | | | Fix problem reported at https://lists.gnu.org/archive/html/lilypond-user-fr/2022-04/msg00075.html Then update the autogenerated result.
| * Disable highlighting of some escape codes for python bytes literals (#2204)LaurenceWarne2022-08-151-7/+20
| | | | | | | | | | | | | | | | 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-121-17/+19
| |