./textproc/py-pygments, Python syntax highlighter

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.14.0, Package name: py310-pygments-2.14.0, Maintainer: pkgsrc-users

Pygments is a syntax highlighting package written in Python.

It is a generic syntax highlighter for general use in all kinds of software
such as forum systems, wikis or other applications that need to prettify
source code. Highlights are:

* a wide range of common languages and markup formats is supported
* special attention is paid to details, increasing quality by a fair amount
* support for new languages and formats are added easily
* a number of output formats, presently HTML, LaTeX, RTF and ANSI sequences
* it is usable as a command-line tool and as a library


Required to run:
[devel/py-setuptools] [lang/python310]

Master sites:

Filesize: 4330.627 KB

Version history: (Expand)


CVS history: (Expand)


   2023-01-24 13:50:34 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-pygments: updated to 2.14.0

Version 2.14.0
--------------
- Added lexers:
  * Arturo
  * GAP session
  * Fift
  * func
  * Jsonnet
  * Minecraft schema
  * MIPS
  * Phix
  * Portugol
  * TL-b
  * World of Warcraft TOC format
  * Wren

- Updated lexers:
  * Abap: Update keywords
  * Alloy: Update for Alloy 6
  * C family (C, C++ and many others):
    - Fix an issue where a chunk would be wrongly recognized as a function
      definition due to braces in comments
    - Improve parantheses handling for function definitions

  * C#: Fix number and operator recognition
  * CSound: Updated builtins
  * F#: Add ``.fsx`` file extension
  * gas (GNU assembler): recognize braces as punctuation
  * HTTP: Add `CONNECT` keyword
  * Inform 6: Fix lexing of properties and doubles
  * INI: Allow comments that are not their own line
  * Java properties: Fix issue with whitespace-delimited keys, support
    comments starting with `!` and escapes, no longer support undocumented
    `;` and `//` comments
  * LilyPond: Improve heuristics, add ``\maxima`` duration
  * LLVM: Add opaque pointer type
  * Macaulay2: Update keywords
  * Minecraft-related lexers (SNB and Minecraft function) moved to
    ``pygments.lexers.minecraft``
  * Nim: General improvements
  * Nix: Fix single quotes inside indented strings
  * Objective J: Fix catastrophic backtracking
  * NASM: Add support for SSE/AVX/AVX-512 registers as well as 'rel'
    and 'abs' address operators
  * Powershell:
    - Add ``local:`` keyword
    - Allow continuations without markers

  * Solidity: Add boolean operators
  * Spice: Add ``enum`` keyword and fix a bug regarding binary,
    hexadecimal and octal number tokens
  * YAML: Accept colons in key names

- Fix `make mapfiles` when Pygments is not installed in editable mode
- Support more filetypes and compression types in `autopygmentize`
- Merge consecutive tokens in Autohotkey, Clay
- Add ``.nasm`` as a recognized file type for NASM
- Add ``*Spec.hs`` as a recognized file type for ``HSpec``
- Add ``*.pyi`` (for typing stub files) as a recognized file type for
  Python
- The HTML lexer no longer emits empty spans for whitespace
- Fix ``IRCFormatter`` inserting linenumbers incorrectly
   2022-11-28 21:54:40 by David Brownlee | Files touched by this commit (1)
Log message:
Fix _PYTHON_VERSION check to avoid error

Replace .if ${_PYTHON_VERSION} < 38 with .if ${_PYTHON_VERSION} == 37
as otherwise will fail when ${_PYTHON_VERSION} is "none".

Triggered for "make clean-depends" for a package with
PYTHON_VERSIONS_ACCEPTED=27 which depends on textproc/py-pygments
   2022-09-05 09:38:41 by Martin Husemann | Files touched by this commit (1)
Log message:
Revert previous - this seems to be only papering over a not yet discovered
bug somewhere else that (sometimes) makes _PYTHON_VERSION non-numerical.
   2022-09-04 07:48:05 by Martin Husemann | Files touched by this commit (1)
Log message:
Comment out broken comparision .if ${_PYTHON_VERSION} < 38
make[7]: "/usr/pkgsrc/textproc/py-pygments/Makefile" line 22: String \ 
comparison operator must be either == or !=
   2022-08-16 16:01:19 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
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
   2022-04-26 12:53:29 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-pygments: updated to 2.12.0

Version 2.12.0
--------------
- Added lexers:
  * Cplint
  * Macaulay2
  * Minecraft
  * Qlik
  * ``UnixConfigLexer`` for "colon-separated" config files, like \ 
``/etc/passwd``

- Updated lexers:
  * Agda: Update keyword list
  * C family: Fix identifiers after ``case`` statements
  * Clojure: Highlight ratios
  * Csound: Update to 6.17
  * CSS: Update the list of properties
  * Elpi:
    - Fix catastrophic backtracking
    - Fix handling of ``->``

  * Futhark: Add missing tokens
  * Gherkin: Add ``But``
  * Inform6: Update to 6.36
  * JSON: Support C comments in JSON
  * LilyPond:
    - Fix incorrect lexing of names containing a built-in
    - Fix properties containing dashes

  * PHP: Update builtin function and keyword list
  * Scheme: Various improvements
  * Spice: Update the keyword list, add new types
  * Terraform:
    - Support non-idiomatic comments
    - Fix class name lexing

- Add ``plugins`` argument to ``get_all_lexers()``.
- Bump minimal Python version to 3.6
- Fix multiple lexers marking whitespace as ``Text``
- Remove various redundant uses of ``re.UNICODE``
- Associate ``.resource`` with the Robot framework
- Associate ``.cljc`` with Clojure
- Associate ``.tpp`` with C++
- Remove traces of Python 2 from the documentation
- The ``native`` style was updated to meet the WCAG AAA contrast guidelines
- Fix various typos
- Fix ``Groff`` formatter not inheriting token styles correctly
- Various improvements to the CI
- The Ada lexer has been moved to a separate file
- When ``linenos=table`` is used, the ``<table>`` itself is now wrapped \ 
with a ``<div class="highlight">`` tag instead of placing it \ 
inside the ``<td class="code">`` cell
   2022-01-07 13:20:37 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pygments: updated to 2.11.2

Version 2.11.2
--------------
- Updated lexers:
  * C-family: Fix incorrect handling of labels
  * Java: Fixed an issue with ``record`` keywords result in ``Error`` tokens in \ 
some cases

- Fix links to line numbers not working correctly
- Remove ``underline`` from ``Whitespace`` style in the ``Tango`` theme
- Fix ``IRC`` and ``Terminal256`` formatters not backtracking correctly for \ 
custom token types, resulting in some unstyled tokens

Version 2.11.1
--------------
- Updated lexers:
  * C-family: Handle return types with multiple tokens (e.g. ``unsigned int``)
  * JSON: Fix a regression which caused whitespace before ``:`` to result in \ 
``Error`` tokens
  * SPICE: Various improvements
   2022-01-05 16:41:32 by Thomas Klausner | Files touched by this commit (289)
Log message:
python: egg.mk: add USE_PKG_RESOURCES flag

This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.