2022-08-16 16:01:19 by Adam Ciarcinski | Files touched by this commit (3) | |
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) | |
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) | |
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.
|
2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595) |
Log message:
*: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
|
2021-12-30 18:05:08 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-pygments: updated to 2.11.0
Version 2.11.0
--------------
- Added lexers:
* BDD
* Elpi
* LilyPond
* Maxima
* Rita
* Savi
* Sed
* Sophia contracts
* Spice
* ``.SRCINFO``
- Updated lexers:
* ABNF: Allow one-character rules
* Assembly: Fix incorrect token endings
* Bibtex: Distinguish between ``comment`` and ``commentary``
* C family: Support unicode identifiers
* CDDL: Fix slow lexing speed
* Debian control: Add missing fields
* Devicetree: Recognize hexadecimal addresses for nodes
* GDScript: Add ``void`` data type
* GSQL
- Fix comment handling
- Fix catastrophic backtracking
* HTML, XML: Improve comment handling
* Java: Add ``yield``
* Makefiles
* objdump-nasm: Improve handling of ``--no-show-raw-insn`` dumps
* Prolog: Support escaped ``\`` inside quoted strings
* Python:
- Support ``~`` in tracebacks
- Support the pattern matching keywords
* RobotFramework: Improve empty brace handling
* Terraform
- Add the 'set' type
- Support heredocs
- Added styles:
* Dracula
* Friendly Grayscale
* LilyPond
* One-Dark
.. note::
All of the new styles unfortunately do not conform to WCAG recommendations.
- There is new infrastructure in place to improve style accessibility. The \
default style has been updated to conform to WCAG recommendations. All styles \
are now checked for sufficient contrast by default to prevent regressions.
- Clean up unused imports
- Fix multiple lexers producing repeated single-character tokens
- Fix multiple lexers marking whitespace as ``Text``
- Remove duplicated assignments in the Paraiso style
- ``pygmentize`` supports JSON output for the various list functions now, making \
it easier to consume them from scripts.
- Use the ``shell`` lexer for ``kshrc`` files
- Use the ``ruby`` lexer for ``Vagrantfile`` files
- Use the C lexer for ``.xbm`` and ``.xpm`` files
- Add a ``groff`` formatter
- Update documentation
- Line anchors now link to themselves
- Add official support for Python 3.10
- Fix several missing colors in dark styles: Gruvbox dark, Monokai, Rrt, Sas, \
Strata dark
- Associate more file types with ``man`` pages
- The ``HtmlFormatter`` can now emit tooltips for each token to ease debugging \
of lexers
- Add ``f90`` as an alias for ``fortran``
|
2021-10-26 13:23:42 by Nia Alarie | Files touched by this commit (1161) |
Log message:
textproc: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
Unfetchable distfiles (fetched conditionally?):
./textproc/convertlit/distinfo clit18src.zip
|
2021-10-07 17:02:49 by Nia Alarie | Files touched by this commit (1162) |
Log message:
textproc: Remove SHA1 hashes for distfiles
|
2021-05-06 09:40:56 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-pygments: updated to 2.9.0
Version 2.9.0
-------------
- Added lexers:
* APDL, gcode
* Kuin
* NestedText
* OMG IDL
* TEAL
* ThingsDB
* WebAssembly
- Updated lexers:
* AMDGPU
* APL
* C/C++: Improve namespace handling
* Chapel
* Coq
* Cython
* Groovy
* JavaScript
* Julia
* Octave: Allow multiline and block-percent comments
* PowerShell: Improve lexing of ``:``
* PromQL
* Python: Improve float parsing
* Rust
* Scala: Rewrite to support Scala3
* Swift
* Terraform: Support 0.14 syntax
* Velocity: Detect multi-line patterns
- Add Pango formatter
- Autopygmentize uses ``file`` first instead of ``pygments -N``
- Fix links
- Fix issue with LaTeX formatter and ``minted``
- Improve alias order
- Improve line number colors
- Fix CTag related issue
- Recognize ``.leex`` as Elixir templates
- Updated `filename` handling in HTML formatter if `linenos='table'`
* Previously the filename would be emitted within the `<td>` holding the
code, but outside the `<pre>`. This would invariably break the alignment
with line numbers.
* Now if `filename` is specified, a separate `<tr>` is emitted before the
table content which contains a single `<th>` with `colspan=2` so it
spans both the line number and code columns. The filename is still
within `<span class="filename">...</span>` so any \
existing styles
should still apply, although the CSS path may need to change.
* For an example of the new output format see
`table_cls_step_1_start_1_special_0_noanchor_filename.html`
in the `tests/html_linenos_expected_output/` directory.
* For more details and discussion see the issue
https://github.com/pygments/pygments/issues/1757
- Added styles:
* Gruvbox light+dark
|
2021-04-06 17:27:30 by Adam Ciarcinski | Files touched by this commit (3) | |
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
|