-
New lexers:
- JSX (#2524, #709)
- Kusto (#2552)
- ldaprc (#2532)
- LDIF (#2489)
- PRQL (#2507, #2523, #2559)
- Visual Prolog and Visual Prolog Grammar (#2480)
- Vyper (#2531, #2579)
-
Updated lexers:
- Cypher: fix comment matching, add missing keywords (#2504)
- Fortran: add
elseifkeyword (#2528) - Lean: make it available as
lean3, in preparation for a possible switch toleanhighlighting as Lean 4 (#2546) - JSON: add MIME types and file extensions for several line-delimited JSON formats (#2490)
- Nix: many improvements (#2551, #1800)
- OCaml: Add
andkeyword, removevaluefrom keywords (#2521) - Python: add
starlarkandbazelaliases (#2517, #2516) - Snowball: Treat
lenlikesize(#2508) - Spice: add
panickeyword and->operator (#2510) - squid.conf: fix catastrophic backtracking (#2583)
- TOML: rewritten, with many fixes (#2576)
- Turtle: support blank nodes (#2581)
- Wikitext: fix erroneous highlighting of LanguageConverter markup (#2493), add missing variant languages (#2494)
- CMake: support
[=[ bracketed arguments ]=](#2549)
-
Fix ctags support and tests (#2487)
-
Include
Lexer.add_filterin the documentation (#2519) -
Add a
Lean3Lexeralias (#2546) -
The
pygments.stylesmodule contains a newSTYLESvariable with a dictionary of built-in styles. The oldSTYLE_MAPvariable, which uses a different format, is kept for backwards compatibility. -
On Windows, add a new installation extra (
windows-terminal) which pulls in dependencies for colored console output. See :doc:cmdlinefor more details. (#2505) -
Support more file types in
autopygmentizescript (#2513) -
Change color of numbers in
rrtstyle (#2526) -
Fix error when trying to look up plugin formatters by file extension of the output format (#2563)
-
Use Hatchling as a build backend instead of setuptools. This change is transparent to most users. Distribution packagers who build without build isolation need to add hatchling as a build dependency and remove setuptools. People downloading source distributions and wheels from PyPI directly should note that they now have
pygmentsin their file names instead ofPygments. (#2573) -
Improve the test framework to also check for lost tokens when processing the snippets and example files (#2582.)
-
Improve the Dracula style definition to make it easier to maintain (#2575)
pygments 2.17.0
2.17.0