Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add support for GraphQL (#2428) | mazza | 2023-05-14 | 29 | -0/+1609 |
| | | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr> | ||||
* | Update uxntal lexer to reflect current runes (#2424) | Dave VanEe | 2023-05-08 | 2 | -2159/+2137 |
| | |||||
* | [elpi] handle quotations (#2419) | Enrico Tassi | 2023-04-30 | 1 | -0/+33 |
| | | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr> | ||||
* | Updates C and C++ lexers (#2422) | Christopher Di Bella | 2023-04-26 | 2 | -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 Bella | 2023-04-26 | 1 | -0/+46 |
| | |||||
* | lean: correctly parse expressions nested within attributes (#1817) | Eric Wieser | 2023-04-20 | 2 | -0/+29 |
| | |||||
* | Improve Java properties lexer (#2404) | Jean Abou-Samra | 2023-04-17 | 4 | -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-Samra | 2023-04-17 | 5 | -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 Brandl | 2023-04-12 | 1 | -0/+108 |
| | | | | valid (#2410) | ||||
* | Add lexer for MediaWiki Wikitext (#2373) | diskdance | 2023-04-05 | 20 | -0/+120652 |
| | |||||
* | Add PostgreSQL Explain lexer (#2398) | Adrien nayrat | 2023-04-04 | 2 | -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 Neto | 2023-03-30 | 15 | -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. Chajdas | 2023-03-29 | 27 | -27/+27 |
| | |||||
* | Move more tests to tests/snippets instead of .py files (#2344) | Jean Abou-Samra | 2023-03-29 | 24 | -372/+999 |
| | | | | These are easier to update in tests/snippets/ (just run with --update-goldens). | ||||
* | Merge pull request #2383 from pygments/2382-fix | Matthäus G. Chajdas | 2023-03-25 | 1 | -0/+51 |
|\ | | | | | css: fix lexing numbers inside function calls | ||||
| * | css: fix lexing numbers inside function calls2382-fix | Georg Brandl | 2023-03-19 | 1 | -0/+51 |
| | | | | | | | | Fixes #2382 | ||||
* | | bash/tcsh: move "break" to keywords (#2377) | Georg Brandl | 2023-03-15 | 1 | -6/+6 |
|/ | | | Fixes #2374 | ||||
* | Improve Gnuplot lexer. | Matthäus G. Chajdas | 2023-03-11 | 1 | -901/+28 |
| | | | | | * Merge comment tokens. * Improve whitespace matching accuracy. | ||||
* | Improve number regex and add lexer guess for carbon syntax (#2370) | Amr Hesham | 2023-03-07 | 1 | -0/+16 |
| | |||||
* | Add more keywords to Carbon lexer (#2369) | Amr Hesham | 2023-03-03 | 1 | -2/+2 |
| | |||||
* | Add support for impl and constraint declaration in Carbon lexer (#2368) | Amr Hesham | 2023-03-02 | 2 | -1/+52 |
| | |||||
* | Fix order of minus and arrow operators in Carbon lexer (#2367) | Amr Hesham | 2023-03-02 | 2 | -10/+5 |
| | |||||
* | Add support for more declarations and access modifiers in Carbon lexer (#2366) | Amr Hesham | 2023-03-02 | 2 | -0/+278 |
| | |||||
* | Fix Carbon example typo in function declaration (#2365) | Amr Hesham | 2023-03-02 | 2 | -2/+2 |
| | |||||
* | Add support for Carbon Programming Language (#2362) | Amr Hesham | 2023-03-01 | 2 | -0/+238 |
| | |||||
* | Improve lexing PHP attributes (#2360) | Richard van Velzen | 2023-03-01 | 3 | -23/+38 |
| | |||||
* | Fix lexing PHP anonymous classes with no parameters (#2359) | Richard van Velzen | 2023-03-01 | 1 | -0/+28 |
| | |||||
* | Improve lexing PHP's variable variable syntax (#2358) | Richard van Velzen | 2023-03-01 | 1 | -0/+45 |
| | |||||
* | Fix GLSL and HLSL preprocessor directive start | bitsawer | 2023-02-26 | 6 | -0/+42 |
| | |||||
* | Improve bash math expansion lexing (#2353) | Richard van Velzen | 2023-02-24 | 2 | -1/+673 |
| | |||||
* | Don't require script headers in Rebol and Red codes. (#2349) | Oldes Huhuman | 2023-02-24 | 4 | -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 Velzen | 2023-02-24 | 2 | -0/+25 |
| | |||||
* | More tests moved to snippets/ (#2351) | Jean Abou-Samra | 2023-02-23 | 31 | -635/+1429 |
| | |||||
* | Fix GLSL and HLSL preprocessor line continuation (#2350) | bitsawer | 2023-02-23 | 6 | -2/+43 |
| | |||||
* | Support PHP attributes (#2347) | Richard van Velzen | 2023-02-21 | 2 | -0/+22 |
| | |||||
* | groff: Sort color definitions for reproducibility (#2343) | Jean Abou-Samra | 2023-02-15 | 1 | -5/+45 |
| | |||||
* | Add X++ support (#2339) | Andrew Schmidt | 2023-02-14 | 2 | -0/+657 |
| | | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr> | ||||
* | Add new lexer for DAX (#2335) | Greg de Lima | 2023-02-13 | 2 | -0/+56 |
| | | | Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr> | ||||
* | Python console: make traceback handling more robust | Georg Brandl | 2023-02-03 | 1 | -0/+97 |
| | | | | | Fixes #2329 Fixes #2226 | ||||
* | Fix some pyflakes lints in tests/ and scripts/ (#2333) | Jean Abou-Samra | 2023-02-01 | 6 | -6/+3 |
| | |||||
* | Fix lots of missing encoding="utf-8" parameters | Jean Abou Samra | 2023-01-31 | 3 | -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 Symalla | 2023-01-31 | 2 | -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) | German | 2023-01-30 | 3 | -66/+44 |
| | | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr> | ||||
* | Add support for normal diff syntax (#2321) | CosmicHorror | 2023-01-29 | 2 | -0/+82 |
| | |||||
* | Native: fix contrast ratio to meet WCAG AA guidelines | Hugo van Kemenade | 2023-01-29 | 1 | -1/+1 |
| | |||||
* | Improve the Smithy metadata matcher. | Matthäus G. Chajdas | 2022-12-31 | 2 | -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. Chajdas | 2022-12-11 | 6 | -1798/+1807 |
| | |||||
* | Improve whitespace handling in XQueryLexer. | Matthäus G. Chajdas | 2022-12-11 | 3 | -181/+181 |
| | |||||
* | Improve whitespace handling in VarnishLexer. | Matthäus G. Chajdas | 2022-12-11 | 1 | -407/+407 |
| | |||||
* | Improve whitespace handling in SLexer. | Matthäus G. Chajdas | 2022-12-11 | 10 | -374/+374 |
| |