Pygments 2.6.1 has been released. Pygments is a Python library and command line utility for source code highlighting. Pygments is used by, for example, Wikipedia, BitBucket and Progopedia. The output is the following formats: HTML, LaTeX, RTF, highlighting through ANSI sequences (in the console).
In the new version (changes for version 2.6 are indicated, problems with packaging are fixed in 2.6.1):
- Removed support for Python 2. Completely. Now only Python 3 is supported. Code highlighting in Python 2 has been preserved.
- Added backlight support
- Linux kernel logs;
- LLVM MIR;
- Miniscript;
- Mosel;
- Parsing Expression Grammar;
- ReasonML;
- ride;
- Sieve;
- USD;
- WebIDL;
- Updated highlight formatting
- Apache2;
- Chapel;
- CSound;
- D;
- Idris;
- Perl6/Raku;
- Python3;
- Rust (covers more builtins (mostly macros) and other new syntax)
- SQL (added temporary keyword support);
- 256-color and truecolor terminals now have italic support;
- Added support for HTTP 2/3 headers;
- Added support for the absence of a reason in the HTTP header;
- Added support for line continuations and triggers for Boogie/Silver, moved abbreviated keywords to a separate category;
- Added support for C-style comments for GAS;
- Fixed names in the S lexer;
- Fixed numeric literals for Ada language;
- .mjs files are now defined as Javascript;
- .eex files are now defined as Elixir;
- Fixed use of re.MULTILINE;
- Pipenv and poetry now define dependencies and local files;
- Improved font search on Windows;
- Removed unused script blocks
Source: linux.org.ru