Subject: CVS commit: pkgsrc/textproc/py-pygments
From: Adam Ciarcinski
Date: 2022-08-16 16:01:19
Message id: 20220816140119.1CEC9FB1A@cvs.NetBSD.org

Log Message:
py-pygments: updated to 2.13.0

Version 2.13.0
--------------

- Added lexers:

  * COMAL-80
  * JMESPath
  * Sql+Jinja

- Updated lexers:

  * Ada: support Ada 2022
    because it disturbs lexing of aspects
  * Agda: allow straight quotes in module names
  * C family (C, C++ and many others): allow comments between
    elements of function headers, e.g. between the arguments and
    the opening brace for the body
  * C++: Resolve several cases of ``Error`` tokens
  * Coq: add some common keywords, improve recognition of ``Set``
    and qualified identifiers
  * F*: Allow C-style comments anywhere in a line
  * Fortran: fix catastrophic backtracking with backslashes in strings

  * Go: add support for generics
  * Inform: update for version 6.40
  * Isabelle: recognize cartouches
  * Java: support multiline strings aka. text blocks
  * Kotlin: add ``value`` modifier
  * LilyPond: add some missing builtins
  * Macaulay2: update builtins
  * Matlab session: fix traceback when a line continuation ellipsis
    appears in the output
  * .NET: add aliases for LibreOffice Basic, OpenOfficeBasic and
    StarOffice Basic
  * Nim: use ``Name.Builtin`` instead of ``Keyword.Type``
  * PHP: fix `\"$var\"` inside strings
  * Python: only recognize ``\N``, ``\u`` and ``\U`` escape sequences
    in string literals, but not in bytes literals where they are
    not supported
  * Tcl: support ``${name}`` variables
  * Terraform: accept leading whitespace for `<<` heredoc
    delimiters
  * Teraterm: Various improvements
  * Spice: add support for the recently added features including more
    builtin functions and bin, oct, hex number formats

- Added styles:

  * GitHub dark
  * StarOffice
  * Nord (`nord` and `nord-darker`)

- Pygments now tries to use the ``importlib.metadata`` module to
  discover plugins instead of the slower ``pkg_resources``
  particular, this largely speeds up the ``pygmentize`` script when
  the lexer is not specified.

  ``importlib.metadata`` is only available in the Python standard
  library since Python 3.8. For older versions, there exists an
  ``importlib_metadata`` backport on PyPI. For this reason, Pygments
  now defines a packaging extra ``plugins``, which adds a requirement
  on ``importlib_metadata`` if the Python version is older than
  3.8. Thus, in order to install Pygments with optimal plugin
  support even for old Python versions, you should do::

     pip install pygments[plugins]

  Pygments still falls back on ``pkg_resources`` if neither
  ``importlib.metadata`` nor ``importlib_metadata`` is found, but it
  will be slower.

- Silently ignore ``BrokenPipeError`` in the command-line interface

- The ``HtmlFormatter`` now uses the ``linespans`` attribute for
  ``anchorlinenos`` if the ``lineanchors`` attribute is unset
- The ``highlight``, ``lex`` and ``format`` functions no longer
  wrongly report "argument must be a lexer/formatter instance, not a
  class" in some cases where this is not the actual problem
- Fix warnings in doc build
- The ``codetagify`` filter now recognizes ``FIXME`` tags by default
- The ``pygmentize`` command now recognizes if the ``COLORTERM``
  environment variable is set to a value indicating that true-color
  support is available.  In that case, it uses the ``TerminalTrueColorFormatter``
  by default
- Remove redundant caches for filename patterns
- Use new non-deprecated Pillow API for text bounding box in ``ImageFormatter``

- Remove ``default_style``
- Stop treating ``DeprecationWarnings`` as errors in the unit tests

Files:
RevisionActionfile
1.41modifypkgsrc/textproc/py-pygments/Makefile
1.22modifypkgsrc/textproc/py-pygments/PLIST
1.27modifypkgsrc/textproc/py-pygments/distinfo