Skip to content
This repository was archived by the owner on Jun 11, 2023. It is now read-only.

Conversation

@pyup-bot
Copy link
Collaborator

This PR updates pygments from 2.10.0 to 2.11.2.

Changelog

2.11.2

--------------
(released January 6th, 2022)

- Updated lexers:

* C-family: Fix incorrect handling of labels (2022, 1996, 1182)
* Java: Fixed an issue with ``record`` keywords result in ``Error`` tokens in some cases (2018)

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

2.11.1

--------------
(released December 31st, 2021)

- Updated lexers:

* C-family: Handle return types with multiple tokens (e.g. ``unsigned int``) (2008)
* JSON: Fix a regression which caused whitespace before ``:`` to result in ``Error`` tokens (2010)
* SPICE: Various improvements (2009)

2.11.0

--------------
(released December 30th, 2021)

- Added lexers:

* BDD (1803)
* Elpi (1894)
* LilyPond (1845, 1968, 1971, 2001). This comes with a custom style as well.
* Maxima (1885)
* Rita (1541, 2003)
* Savi (1863)
* Sed (1935)
* Sophia contracts (1974)
* Spice (1980)
* ``.SRCINFO`` (1951)

- Updated lexers:

* ABNF: Allow one-character rules (1804)
* Assembly: Fix incorrect token endings (1895, 1961)
* Bibtex: Distinguish between ``comment`` and ``commentary`` (1899, 1806)
* C family: Support unicode identifiers (1848)
* CDDL: Fix slow lexing speed (1959)
* Debian control: Add missing fields (1946)
* Devicetree: Recognize hexadecimal addresses for nodes (1949)
* GDScript: Add ``void`` data type (1948)
* GSQL

 - Fix comment handling (2002)
 - Fix catastrophic backtracking (2006)

* HTML, XML: Improve comment handling (1896)
* Java: Add ``yield`` (1941) and sealed classes/record (1902)
* Makefiles (1860, 1898)
* objdump-nasm: Improve handling of ``--no-show-raw-insn`` dumps (1981)
* Prolog: Support escaped ``\`` inside quoted strings (1479)
* Python:

 - Support ``~`` in tracebacks (2004)
 - Support the pattern matching keywords (1797, 1994)

* RobotFramework: Improve empty brace handling (1921, 1922)
* Terraform

 - Add the 'set' type (1909)
 - Support heredocs (1909)

- Added styles:

* Dracula (1796)
* Friendly Grayscale (1040, 1273)
* LilyPond (1845) -- to be used for the ``LilyPond`` language.
* One-Dark (1924, 1979)

.. 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. (1919, 1937, 1938, 1940)
- Clean up unused imports (1887)
- Fix multiple lexers producing repeated single-character tokens
- Fix multiple lexers marking whitespace as ``Text`` (1237, 1905, 1908, 1914, 1911, 1923, 1939, 1957, 1978)
- Remove duplicated assignments in the Paraiso style (1934)
- ``pygmentize`` supports JSON output for the various list functions now, making it easier to consume them from scripts. (1437, 1890)
- Use the ``shell`` lexer for ``kshrc`` files (1947)
- Use the ``ruby`` lexer for ``Vagrantfile`` files (1936)
- Use the C lexer for ``.xbm`` and ``.xpm`` files (1802)
- Add a ``groff`` formatter (1873)
- Update documentation (1928)
- Line anchors now link to themselves (1973)
- Add official support for Python 3.10 (1917)
- Fix several missing colors in dark styles: Gruvbox dark, Monokai, Rrt, Sas, Strata dark (1955)
- Associate more file types with ``man`` pages
- The ``HtmlFormatter`` can now emit tooltips for each token to ease debugging of lexers (1822)
- Add ``f90`` as an alias for ``fortran`` (2000)
Links

@codecov
Copy link

codecov bot commented Mar 12, 2022

Codecov Report

Merging #186 (fee0aec) into main (436e1d1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #186   +/-   ##
=======================================
  Coverage   86.85%   86.85%           
=======================================
  Files          21       21           
  Lines         289      289           
=======================================
  Hits          251      251           
  Misses         38       38           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 436e1d1...fee0aec. Read the comment docs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants