Subject: CVS commit: pkgsrc/textproc/py-pygments
From: Adam Ciarcinski
Date: 2021-04-06 17:27:30
Message id: 20210406152730.23118FA95@cvs.NetBSD.org

Log Message:
py-pygments: updated to 2.8.1

Version 2.8.1
-------------
(released March 7, 2021)

- Fix issue with LaTeX formatter and ``minted``

Version 2.8.0
-------------
(released February 14, 2021)

- Added lexers:

  * AMDGPU
  * CDDL
  * Futhark
  * Graphviz/DOT

- Updated lexers:

  * AutoIt: Support single quoted strings
  * C/C++ & related: Fix mishandling '*/'
  * Cocoa: Add builtin types
  * Console
  * Eiffel: Fix performance issues
  * Fortran: Improve combined keyword detection
  * J: Fix operator ``?`` lexing
  * JavaScript/TypeScript: Fix escapes in backtick strings
  * Kotlin: Improve string interpolation, modifier keyword handling, and various \ 
small issues
  * LESS: Support single-line comments
  * Matlab:

    - Add support for class properties
    - Update builtin functions
    - Various cleanups

  * Python: Improve handling of raw f-strings
  * Ruby: Better method name handling
  * Stata: Updated keywords

- Added styles:

  * Material
  * Zenburn

- The `pygmentize` script now uses `argparse`, all options should work
  as before

- Add `pygmentize -C` option to guess a lexer from content

- With this release, Pygments moves to a new internal testing system
  See ``Contributing.md`` for details. The main advantage of this new change
  is a much better test coverage of all existing example lexers. It also makes
  it much easier to add new test snippets.
- Make guessing prefer Python 3 lexer
- Do not guess MIME or SQL without reason
- Changed setuptools to use a declarative config through ``setup.cfg``.
  Building Pygments now requires setuptools 39.2+.
- Add markdown to MarkdownLexer aliases
- Change line number handling

  * In ``<table>`` based output, the ``td.linenos`` element will have either a
    ``normal`` or ``special`` class attached. Previously, only ``special`` line
    numbers got a class. This prevents styles from getting applied twice -
    once via ``<pre>``, once via ``<span \ 
class="special">``. This also means
    that ``td.linenos pre`` is no longer styled, instead, use
    ``td.linenos .normal`` and ``td.linenos .special``.
  * In the "inline" style, the DOM element order was changed. The line \ 
number
    is added first, then the line is wrapped is wrapped by the highlighter.
    This fixes lines not being fully highlighted.
  * The visual output for inline and non-inline line numbers & highlighting,
    as well as class-based and inline styling is now consistent.
  * Line number styles are set to ``background-color: transparent`` and
    ``color: inherit`` by default. This works much better with dark styles
    which don't have colors set for line numbers.

- Remove "raw" alias from RawTokenLexer, so that it cannot be
  selected by alias.
- Fix RawTokenLexer to work in Python 3 and handle exceptions.
- Add prompt colors to the Solarized theme
- Image formatter supports background colors now
- Add support for anchors in conjunction with inline line numbers
- Modernize the codebase using ``pyupgrade``
- Add support for line numbers to the ``terminal256`` formatter
- Improve ``analyze_text`` logic for ``ECL``
- Improve ``analyze_text`` logic for ``CBM Basic V2``
- Improve LaTeX formatter

Version 2.7.4
-------------
(released January 12, 2021)

- Updated lexers:

  - Apache configurations: Improve handling of malformed tags
  - CSS: Add support for variables
  - Crystal
  - Coq
  - Fortran: Add missing keywords
  - Ini
  - JavaScript and variants
  - Markdown
  - Shell

    - Lex trailing whitespace as part of the prompt
    - Add missing ``in`` keyword

  - SQL - Fix keywords
  - Typescript: Fix incorrect punctuation handling

- Fix infinite loop in SML lexer
- Fix backtracking string regexes in JavaScript/TypeScript, Modula2
  and many other lexers
- Limit recursion with nesting Ruby heredocs
- Fix a few inefficient regexes for guessing lexers
- Fix the raw token lexer handling of Unicode
- Revert a private API change in the HTML formatter
  please note that private APIs remain subject to change!
- Fix several exponential/cubic-complexity regexes found by
  Ben Caller/Doyensec
- Fix incorrect MATLAB example

Thanks to Google's OSS-Fuzz project for finding many of these bugs.

Version 2.7.3
-------------
(released December 6, 2020)

- Updated lexers:

  * Ada
  * HTML
  * Java
  * JavaScript
  * JSON
  * Lean
  * LLVM
  * Mason
  * MySQL
  * Rust
  * Turtle

- Deprecated JsonBareObjectLexer, which is now identical to JsonLexer
- The ``ImgFormatter`` now calculates the exact character width, which fixes \ 
some issues with overlapping text
- Documentation fixes
- Fixed duplicated Juttle language alias
- Added support for Kotlin scripts
- Removed CSS rule which forced margin to 0

Version 2.7.2
-------------
(released October 24, 2020)

- Updated lexers:

  * Latex
  * LLVM
  * SPARQL

- Fix Python console/traceback lexer problems with custom exceptions without messages
- Allow loading ttc fonts on Mac/image formatter
- Improve ``analyze_text`` across a variety of lexers
- Remove CSS rule which forced the vertical padding to 0 for line numbers
- Fix ``TNTLexer`` crashing on unexpected EOL
- ``regexlint`` can be now run locally as part of ``tox`` tests
- Fix typos
- Add Python 3.9 as a supported version

Version 2.7.1
-------------
(released September 16, 2020)

- Fixed a regression in the JSON lexer

Version 2.7.0
-------------
(released September 12, 2020)

- Added lexers:

  * Arrow
  * BARE
  * Devicetree
  * F*
  * GDScript
  * Pointless
  * PromQL
  * PsySH
  * Singularity
  * TiddlyWiki5
  * TNT
  * YANG

- Updated lexers:

  * APL
  * C++
  * Chapel
  * CMake
  * CSound
  * Cython
  * Dart
  * Fennel
  * Fortran
  * GAS
  * HTTP
  * Inform 6
  * Javascript
  * JSON
  * Lean
  * Matlab
  * Markdown
  * MySQL
  * NASM
  * Nim
  * PostgreSQL
  * PowerShell
  * Protobuf
  * Robot
  * SQL
  * SystemVerilog
  * TeraTerm
  * XML

- Added a new filter for math symbols
- The Kconfig lexer will match Kconfig derivative names now
- Improved HTML formatter output
- ``.markdown`` is now recognized as an extension for Markdown files
- Fixed line number colors for Solarized
- Improvements to exception handling
- Improvements to tests
- Various code cleanups

Version 2.6.1
-------------
(released March 8, 2020)

- This release fixes a packaging issue. No functional changes.

Version 2.6
-----------
(released March 8, 2020)

- Running Pygments on Python 2.x is no longer supported.
  (The Python 2 lexer still exists.)

- Added lexers:

  * Linux kernel logs
  * LLVM MIR
  * MiniScript
  * Mosel
  * Parsing Expression Grammar
  * ReasonML
  * Ride
  * Sieve
  * USD
  * WebIDL

- Updated lexers:

  * Apache2
  * Chapel
  * CSound
  * D
  * Haskell
  * Idris
  * Perl6/Raku lexer
  * Python3
  * Rust: Updated lexer to cover more builtins (mostly macros) and miscellaneous
    new syntax
  * SQL: Add temporal support keywords

- The 256-color/true-color terminal formatters now support the italic attribute
  in styles
- Support HTTP 2/3 header
- Support missing reason in HTTP header
- Boogie/Silver: support line continuations and triggers, move contract keywords
  to separate category
- GAS: support C-style comments
- Fix names in S lexer
- Fix numeric literals in Ada
- Recognize ``.mjs`` files as Javascript
- Recognize ``.eex`` files as Elixir
- Fix ``re.MULTILINE`` usage
- Recognize ``pipenv`` and ``poetry`` dependency & lock files
- Improve font search on Windows
- Remove unused script block

Files:
RevisionActionfile
1.33modifypkgsrc/textproc/py-pygments/Makefile
1.17modifypkgsrc/textproc/py-pygments/PLIST
1.19modifypkgsrc/textproc/py-pygments/distinfo