summaryrefslogtreecommitdiff
path: root/pygments/lexers
Commit message (Collapse)AuthorAgeFilesLines
* GraphQL: add URLHEADmasterJean Abou Samra2023-05-141-0/+1
|
* Add support for GraphQL (#2428)mazza2023-05-142-0/+177
| | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* Update uxntal lexer to reflect current runes (#2424)Dave VanEe2023-05-081-6/+9
|
* [elpi] handle quotations (#2419)Enrico Tassi2023-04-301-1/+9
| | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* Updates C and C++ lexers (#2422)Christopher Di Bella2023-04-261-2/+3
| | | | | | | | | | | * 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-1/+2
|
* lean: correctly parse expressions nested within attributes (#1817)Eric Wieser2023-04-201-23/+32
|
* Add Pre-sorted Group keyword (#2417)Adrien nayrat2023-04-201-1/+1
|
* Improve Java properties lexer (#2404)Jean Abou-Samra2023-04-171-18/+34
| | | | | | 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-171-62/+55
| | | | | 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-1/+2
| | | | valid (#2410)
* PythonTracebackLexer: minor tweak in docstringJean Abou Samra2023-04-121-1/+1
|
* Prepare for release.Matthäus G. Chajdas2023-04-106-5/+15
| | | | | | * Update CHANGES. * Fix missing `versionadded` declarations. * Fix a few linter issues.
* Change token of None after from keywordrdbende2023-04-081-1/+1
|
* Add lexer for MediaWiki Wikitext (#2373)diskdance2023-04-052-1/+737
|
* Add PostgreSQL Explain lexer (#2398)Adrien nayrat2023-04-043-3/+247
| | | | | | | | | | 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>
* Use autodoc for pygments.lexersJean Abou Samra2023-03-301-25/+42
|
* Update copyright year in wgsl.py (fixes tox -e check)Jean Abou Samra2023-03-301-2/+2
|
* Lexer for the WebGPU Shading Language (#2386)David Neto2023-03-302-0/+405
| | | | | | | | | | 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
* adds hcl alias for terraform syntax (#2375)Christopher Baklid2023-03-292-3/+3
| | | | This PR adds hcl as an option for highlighting HCL syntax as Hashicorp uses HCL for more than just Terraform, like Nomad.
* Update copyright year to 2023.Matthäus G. Chajdas2023-03-29224-224/+224
|
* add support for lexing attributes in Chapel (#2376)arezaii2023-03-291-0/+4
| | | | | | Chapel 1.30 includes support for attributes. The lexer was not able to process them without some adjustments. Co-authored-by: amitkummer <49096391+amitkummer@users.noreply.github.com>
* Merge pull request #2383 from pygments/2382-fixMatthäus G. Chajdas2023-03-251-1/+1
|\ | | | | css: fix lexing numbers inside function calls
| * css: fix lexing numbers inside function calls2382-fixGeorg Brandl2023-03-191-1/+1
| | | | | | | | Fixes #2382
* | bash/tcsh: move "break" to keywords (#2377)Georg Brandl2023-03-151-4/+4
|/ | | Fixes #2374
* Improve Gnuplot lexer.Matthäus G. Chajdas2023-03-111-3/+4
| | | | | * Merge comment tokens. * Improve whitespace matching accuracy.
* Improve number regex and add lexer guess for carbon syntax (#2370)Amr Hesham2023-03-071-4/+29
|
* 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-021-1/+1
|
* Fix order of minus and arrow operators in Carbon lexer (#2367)Amr Hesham2023-03-021-1/+1
|
* Add support for more declarations and access modifiers in Carbon lexer (#2366)Amr Hesham2023-03-021-3/+4
|
* Add support for Carbon Programming Language (#2362)Amr Hesham2023-03-012-0/+71
|
* SQL+Jinja: use a simpler regex in analyse_textJean Abou Samra2023-03-011-5/+1
| | | | | | Fixes catastrophic backtracking Fixes #2355
* Improve lexing PHP attributes (#2360)Richard van Velzen2023-03-011-1/+11
|
* Fix lexing PHP anonymous classes with no parameters (#2359)Richard van Velzen2023-03-011-0/+1
|
* Improve lexing PHP's variable variable syntax (#2358)Richard van Velzen2023-03-011-1/+5
|
* Fix GLSL and HLSL preprocessor directive startbitsawer2023-02-261-2/+2
|
* Improve bash math expansion lexing (#2353)Richard van Velzen2023-02-241-2/+4
|
* Don't require script headers in Rebol and Red codes. (#2349)Oldes Huhuman2023-02-241-11/+0
| | | | | | | | | | * 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-241-0/+1
|
* Replace Makefile with tox (#2331)Jean Abou-Samra2023-02-231-1/+1
| | | | | | | | | | | | | | | Porting notes: - tox handles Python environments automatically. Remove a bit of PYTHONPATH manipulation (that was using Python 2 code which always failed!) - No `clean` target: `git clean -xdf` should fit the bill. - No `reindent` target: the `reindent.py` script it was using does not exist (anymore?). - No equivalent of tox-test-coverage, which was an artifact of the past, using nose. Instead, the test-coverage target only is ported, which uses pytest, and works.
* Fix GLSL and HLSL preprocessor line continuation (#2350)bitsawer2023-02-231-2/+2
|
* Support PHP attributes (#2347)Richard van Velzen2023-02-211-0/+1
|
* Dax: Update list of Functions (#2345)Greg de Lima2023-02-161-47/+68
|
* Add X++ support (#2339)Andrew Schmidt2023-02-142-1/+113
| | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* Add new lexer for DAX (#2335)Greg de Lima2023-02-132-0/+114
| | | Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
* Add missing built-in functions for Python (#2334)P. Talley2023-02-121-10/+10
| | | callable and aiter.
* Python console: make traceback handling more robustGeorg Brandl2023-02-031-12/+12
| | | | | Fixes #2329 Fixes #2226
* Add new keywords to Spice lexer (#2336)Marc Auberer2023-02-021-3/+3
|
* Fix lots of missing encoding="utf-8" parametersJean Abou Samra2023-01-316-13/+13
| | | | | Some of these are probably unnecessary (ASCII-only content), but it's easier not to think about it.