summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add support for GraphQL (#2428)mazza2023-05-1429-0/+1609
| | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* Update uxntal lexer to reflect current runes (#2424)Dave VanEe2023-05-082-2159/+2137
|
* [elpi] handle quotations (#2419)Enrico Tassi2023-04-301-0/+33
| | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* Updates C and C++ lexers (#2422)Christopher Di Bella2023-04-262-0/+30
| | | | | | | | | | | * replaces `restrict` with `__restrict` in C++ `restrict` isn't a C++ keyword, but `__restrict` is recognised by Clang, GCC, and MSVC as a language extension. * adds `_BitInt` and `__int128` as C and C++ types * `_BitInt` is a new C type and an extended integral type for C++. * `__int128` is an extended integral type on both Clang and GCC.
* adds C++ alternative tokens as keywords (#2421)Christopher Di Bella2023-04-261-0/+46
|
* lean: correctly parse expressions nested within attributes (#1817)Eric Wieser2023-04-202-0/+29
|
* Improve Java properties lexer (#2404)Jean Abou-Samra2023-04-174-20/+111
| | | | | | Use special lexer rules for escapes; fixes catastrophic backtracking, and highlights them too. Fixes #2356
* Refactor PythonConsoleLexer as a DelegatingLexer (#2412)Jean Abou-Samra2023-04-175-34/+70
| | | | | This is simpler and more reliable than hand-coding the state machine. Fixes #2411
* Python console: do not require output that looks like a traceback to be ↵Georg Brandl2023-04-121-0/+108
| | | | valid (#2410)
* Add lexer for MediaWiki Wikitext (#2373)diskdance2023-04-0520-0/+120652
|
* Add PostgreSQL Explain lexer (#2398)Adrien nayrat2023-04-042-0/+2875
| | | | | | | | | | This lexer add support for PostgreSQL Explain plan : https://www.postgresql.org/docs/current/sql-explain.html This was heavily inspired by Maxence Ahlouche work, thanks to him : https://github.com/maahl/pg_explain_lexer Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* Lexer for the WebGPU Shading Language (#2386)David Neto2023-03-3015-0/+2376
| | | | | | | | | | See https://w3.org/TR/WGSL Further work is needed to refine it: - treat context-dependent names specially - treat template start and template end tokens specially, perhaps Fixes: #2388
* Update copyright year to 2023.Matthäus G. Chajdas2023-03-2927-27/+27
|
* Move more tests to tests/snippets instead of .py files (#2344)Jean Abou-Samra2023-03-2924-372/+999
| | | | These are easier to update in tests/snippets/ (just run with --update-goldens).
* Merge pull request #2383 from pygments/2382-fixMatthäus G. Chajdas2023-03-251-0/+51
|\ | | | | css: fix lexing numbers inside function calls
| * css: fix lexing numbers inside function calls2382-fixGeorg Brandl2023-03-191-0/+51
| | | | | | | | Fixes #2382
* | bash/tcsh: move "break" to keywords (#2377)Georg Brandl2023-03-151-6/+6
|/ | | Fixes #2374
* Improve Gnuplot lexer.Matthäus G. Chajdas2023-03-111-901/+28
| | | | | * Merge comment tokens. * Improve whitespace matching accuracy.
* Improve number regex and add lexer guess for carbon syntax (#2370)Amr Hesham2023-03-071-0/+16
|
* Add more keywords to Carbon lexer (#2369)Amr Hesham2023-03-031-2/+2
|
* Add support for impl and constraint declaration in Carbon lexer (#2368)Amr Hesham2023-03-022-1/+52
|
* Fix order of minus and arrow operators in Carbon lexer (#2367)Amr Hesham2023-03-022-10/+5
|
* Add support for more declarations and access modifiers in Carbon lexer (#2366)Amr Hesham2023-03-022-0/+278
|
* Fix Carbon example typo in function declaration (#2365)Amr Hesham2023-03-022-2/+2
|
* Add support for Carbon Programming Language (#2362)Amr Hesham2023-03-012-0/+238
|
* Improve lexing PHP attributes (#2360)Richard van Velzen2023-03-013-23/+38
|
* Fix lexing PHP anonymous classes with no parameters (#2359)Richard van Velzen2023-03-011-0/+28
|
* Improve lexing PHP's variable variable syntax (#2358)Richard van Velzen2023-03-011-0/+45
|
* Fix GLSL and HLSL preprocessor directive startbitsawer2023-02-266-0/+42
|
* Improve bash math expansion lexing (#2353)Richard van Velzen2023-02-242-1/+673
|
* Don't require script headers in Rebol and Red codes. (#2349)Oldes Huhuman2023-02-244-27/+7
| | | | | | | | | | * Don't require script headers in Rebol and Red codes. Resolves: https://github.com/pygments/pygments/issues/2348 * Not modifying the copyright * Updated tests for Rebol and Red * Rebol: removed the unneeded code instead of commenting.
* Implement CMake bracket comment syntax (#2354)Richard van Velzen2023-02-242-0/+25
|
* More tests moved to snippets/ (#2351)Jean Abou-Samra2023-02-2331-635/+1429
|
* Fix GLSL and HLSL preprocessor line continuation (#2350)bitsawer2023-02-236-2/+43
|
* Support PHP attributes (#2347)Richard van Velzen2023-02-212-0/+22
|
* groff: Sort color definitions for reproducibility (#2343)Jean Abou-Samra2023-02-151-5/+45
|
* Add X++ support (#2339)Andrew Schmidt2023-02-142-0/+657
| | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* Add new lexer for DAX (#2335)Greg de Lima2023-02-132-0/+56
| | | Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
* Python console: make traceback handling more robustGeorg Brandl2023-02-031-0/+97
| | | | | Fixes #2329 Fixes #2226
* Fix some pyflakes lints in tests/ and scripts/ (#2333)Jean Abou-Samra2023-02-016-6/+3
|
* Fix lots of missing encoding="utf-8" parametersJean Abou Samra2023-01-313-5/+6
| | | | | Some of these are probably unnecessary (ASCII-only content), but it's easier not to think about it.
* Extend the AMDGPU lexer. (#2327)Thomas Symalla2023-01-312-1/+40
| | | | | Add support for scratch_ instructions, the attr*.* argument as well as the off modifier. Without support for attr*.*, multiple v_interp instructions are previously rendered incorrectly.
* Upgrading APDL lexer (#2314)German2023-01-303-66/+44
| | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* Add support for normal diff syntax (#2321)CosmicHorror2023-01-292-0/+82
|
* Native: fix contrast ratio to meet WCAG AA guidelinesHugo van Kemenade2023-01-291-1/+1
|
* Improve the Smithy metadata matcher.Matthäus G. Chajdas2022-12-312-0/+64
| | | | | | Previously, metadata foo bar baz = 23 was accepted, but according to the definition https://smithy.io/2.0/spec/idl.html#grammar-token-smithy-MetadataSection it should be "metadata"<whitespace>Identifier/String<optional whitespace>.
* Improve whitespace handling in MesonLexer/PerlLexer.Matthäus G. Chajdas2022-12-116-1798/+1807
|
* Improve whitespace handling in XQueryLexer.Matthäus G. Chajdas2022-12-113-181/+181
|
* Improve whitespace handling in VarnishLexer.Matthäus G. Chajdas2022-12-111-407/+407
|
* Improve whitespace handling in SLexer.Matthäus G. Chajdas2022-12-1110-374/+374
|