summaryrefslogtreecommitdiff
path: root/pygments
Commit message (Collapse)AuthorAgeFilesLines
* Prepare 2.15 release.2.15.0Matthäus G. Chajdas2023-04-101-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>
* update fg color to match latest primer style (#2401)Aniket Teredesai2023-04-031-1/+1
|
* Use autodoc for pygments.stylesJean Abou Samra2023-03-302-17/+28
|
* Use autodoc for pygments.lexersJean Abou Samra2023-03-301-25/+42
|
* Use autodoc for pygments.utilJean Abou Samra2023-03-301-3/+25
|
* Use autodoc for Formatter classJean Abou Samra2023-03-301-10/+39
|
* Use autodoc a bit moreJean Abou Samra2023-03-302-32/+92
|
* tox -e mapfilesJean Abou Samra2023-03-301-1/+1
| | | | (sorry, I forgot that the docstrings are part of _mapping.py)
* Slightly clarify documentation of HtmlFormatter nowrap optionJean Abou Samra2023-03-301-7/+5
| | | | Fixes #2396
* 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-29299-302/+302
|
* 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-232-2/+2
| | | | | | | | | | | | | | | 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
|
* groff: Sort color definitions for reproducibility (#2343)Jean Abou-Samra2023-02-151-1/+1
|
* 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-318-19/+19
| | | | | Some of these are probably unnecessary (ASCII-only content), but it's easier not to think about it.
* Revert "Remove filename pattern caches (#2153)" (#2328)Dirk Mueller2023-01-312-8/+30
| | | | | | | | This introduced a performance regession. While it is true that fnmatch already uses functools.lru_cache, that cache is limited to 256 on python 3.10 and older and we have over 1000 matching patterns, which means the cache is evicted entirely on every iteration. This reverts commit 951c894ab23537be90fbf3973d0345591e682371.
* Extend the AMDGPU lexer. (#2327)Thomas Symalla2023-01-311-2/+3
| | | | | 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-301-17/+162
| | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>