2.17.0
-
New lexers:
-
Updated lexers:
- Cypher: fix comment matching, add missing keywords (#2504)
- Fortran: add
elseif
keyword (#2528) - Lean: make it available as
lean3
, in preparation for a possible switch tolean
highlighting 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
and
keyword, removevalue
from keywords (#2521) - Python: add
starlark
andbazel
aliases (#2517, #2516) - Snowball: Treat
len
likesize
(#2508) - Spice: add
panic
keyword 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_filter
in the documentation (#2519) -
Add a
Lean3Lexer
alias (#2546) -
The
pygments.styles
module contains a newSTYLES
variable with a dictionary of built-in styles. The oldSTYLE_MAP
variable, 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:cmdline
for more details. (#2505) -
Support more file types in
autopygmentize
script (#2513) -
Change color of numbers in
rrt
style (#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 havepygments
in 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)