diff -Nru pygments-2.15.1+dfsg/.coveragerc pygments-2.17.2+dfsg/.coveragerc --- pygments-2.15.1+dfsg/.coveragerc 1970-01-01 00:00:00.000000000 +0000 +++ pygments-2.17.2+dfsg/.coveragerc 2020-02-02 00:00:00.000000000 +0000 @@ -0,0 +1,3 @@ +[run] +include = + pygments/* diff -Nru pygments-2.15.1+dfsg/.dockerignore pygments-2.17.2+dfsg/.dockerignore --- pygments-2.15.1+dfsg/.dockerignore 1970-01-01 00:00:00.000000000 +0000 +++ pygments-2.17.2+dfsg/.dockerignore 2020-02-02 00:00:00.000000000 +0000 @@ -0,0 +1,13 @@ +doc +tests +TAGS +build +dist +htmlcov +venv +**/__pycache__ +.* +*.pyo +.*.sw[op] + +!/doc/pyodide/meta.yaml diff -Nru pygments-2.15.1+dfsg/.gitattributes pygments-2.17.2+dfsg/.gitattributes --- pygments-2.15.1+dfsg/.gitattributes 1970-01-01 00:00:00.000000000 +0000 +++ pygments-2.17.2+dfsg/.gitattributes 2020-02-02 00:00:00.000000000 +0000 @@ -0,0 +1 @@ +tests/examplefiles/*/*.output linguist-generated diff -Nru pygments-2.15.1+dfsg/.github/workflows/build.yaml pygments-2.17.2+dfsg/.github/workflows/build.yaml --- pygments-2.15.1+dfsg/.github/workflows/build.yaml 1970-01-01 00:00:00.000000000 +0000 +++ pygments-2.17.2+dfsg/.github/workflows/build.yaml 2020-02-02 00:00:00.000000000 +0000 @@ -0,0 +1,77 @@ +name: Pygments + +on: [push, pull_request] + +env: + FORCE_COLOR: 1 + +permissions: + contents: read # to fetch code (actions/checkout) + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [windows-latest, ubuntu-latest] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + - name: Install tox + run: pip install -r requirements.txt + - name: Test package + run: tox -- -W error + + check: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: "3.x" + - name: Install tox + run: pip install -r requirements.txt + - name: Perform basic checks + run: tox -e check + if: runner.os == 'Linux' + + check-mapfiles: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: "3.x" + - name: Install tox + run: pip install -r requirements.txt + - name: Regenerate mapfiles + run: tox -e mapfiles + - name: Fail if mapfiles changed + run: | + if git ls-files -m | grep mapping; then + echo 'Please run "tox -e mapfiles" and add the changes to a commit.' + exit 1 + fi + + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: "3.x" + - name: Install tox + run: pip install -r requirements.txt + - name: Run regexlint + run: tox -e regexlint diff -Nru pygments-2.15.1+dfsg/.github/workflows/docs.yaml pygments-2.17.2+dfsg/.github/workflows/docs.yaml --- pygments-2.15.1+dfsg/.github/workflows/docs.yaml 1970-01-01 00:00:00.000000000 +0000 +++ pygments-2.17.2+dfsg/.github/workflows/docs.yaml 2020-02-02 00:00:00.000000000 +0000 @@ -0,0 +1,41 @@ +name: Docs + +on: + push: + branches: + - master + + +env: + FORCE_COLOR: 1 + +permissions: {} +jobs: + build: + permissions: + contents: write # to push pages branch (peaceiris/actions-gh-pages) + + runs-on: ubuntu-latest + steps: + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: "3.x" + - name: Checkout Pygments + uses: actions/checkout@v4 + - name: Install tox + run: pip install -r requirements.txt + - name: Sphinx build + run: | + tox -e web-doc -- dirhtml + touch doc/_build/dirhtml/.nojekyll + echo -e 'pygments.org\nwww.pygments.org' > doc/_build/dirhtml/CNAME + echo 'Automated deployment of docs for GitHub pages.' > doc/_build/dirhtml/README + - name: Deploy to repo + if: github.repository_owner == 'pygments' + uses: peaceiris/actions-gh-pages@v3 + with: + deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + external_repository: pygments/pygments.github.io + publish_branch: master + publish_dir: ./doc/_build/dirhtml diff -Nru pygments-2.15.1+dfsg/.gitignore pygments-2.17.2+dfsg/.gitignore --- pygments-2.15.1+dfsg/.gitignore 1970-01-01 00:00:00.000000000 +0000 +++ pygments-2.17.2+dfsg/.gitignore 2020-02-02 00:00:00.000000000 +0000 @@ -0,0 +1,19 @@ +*.pyc +*.pyo +.*.sw[op] +/.pytest_cache/ +/.idea/ +/.project +/.tags +/.tox/ +/.cache/ +/TAGS +/build/* +/dist/* +/doc/_build +/.coverage +/htmlcov +/.vscode +venv/ +.venv/ +.DS_Store diff -Nru pygments-2.15.1+dfsg/AUTHORS pygments-2.17.2+dfsg/AUTHORS --- pygments-2.15.1+dfsg/AUTHORS 2023-04-10 12:40:27.000000000 +0000 +++ pygments-2.17.2+dfsg/AUTHORS 2020-02-02 00:00:00.000000000 +0000 @@ -13,6 +13,7 @@ lexers * Maxence Ahlouche -- PostgreSQL Explain lexer * Muthiah Annamalai -- Ezhil lexer +* Nikolay Antipov -- OpenSCAD lexer * Kumar Appaiah -- Debian control lexer * Andreas Amann -- AppleScript lexer * Timothy Armstrong -- Dart lexer fixes @@ -30,6 +31,7 @@ * Michael Bayer -- Myghty lexers * Thomas Beale -- Archetype lexers * John Benediktsson -- Factor lexer +* David Benjamin, Google LLC -- TLS lexer * Trevor Bergeron -- mIRC formatter * Vincent Bernat -- LessCSS lexer * Christopher Bertels -- Fancy lexer @@ -47,6 +49,7 @@ * Ian Cooper -- VGL lexer * David Corbett -- Inform, Jasmin, JSGF, Snowball, and TADS 3 lexers * Leaf Corcoran -- MoonScript lexer +* Gabriel Corona -- ASN.1 lexer * Christopher Creutzig -- MuPAD lexer * Daniël W. Crompton -- Pike lexer * Pete Curry -- bugfixes @@ -137,6 +140,7 @@ * Sylvestre Ledru -- Scilab lexer * Chee Sing Lee -- Flatline lexer * Mark Lee -- Vala lexer +* Thomas Linder Puls -- Visual Prolog lexer * Pete Lomax -- Phix lexer * Valentin Lorentz -- C++ lexer improvements * Ben Mabey -- Gherkin lexer @@ -237,6 +241,7 @@ * Erick Tryzelaar -- Felix lexer * Alexander Udalov -- Kotlin lexer improvements * Thomas Van Doren -- Chapel lexer +* Dave Van Ee -- Uxntal lexer updates * Daniele Varrazzo -- PostgreSQL lexers * Abe Voelker -- OpenEdge ABL lexer * Pepijn de Vos -- HTML formatter CTags support @@ -266,5 +271,9 @@ * Marc Auberer -- Spice lexer * Amr Hesham -- Carbon lexer * diskdance -- Wikitext lexer +* vanillajonathan -- PRQL lexer +* Nikolay Antipov -- OpenSCAD lexer +* Markus Meyer, Nextron Systems -- YARA lexer + Many thanks for all contributions! diff -Nru pygments-2.15.1+dfsg/CHANGES pygments-2.17.2+dfsg/CHANGES --- pygments-2.15.1+dfsg/CHANGES 2023-04-18 18:42:42.000000000 +0000 +++ pygments-2.17.2+dfsg/CHANGES 2020-02-02 00:00:00.000000000 +0000 @@ -3,6 +3,137 @@ Pull request numbers before 2.4.2 are not linked as they refer to the now defunct Bitbucket project. +Version 2.18.0 +-------------- +(unreleased) + +Version 2.17.2 +-------------- +(released November 21, 2023) + +* Fix a packaging issue on macOS (#2593) + +Version 2.17.1 +-------------- +(released November 19, 2023) + +- Updated lexers: + + * TOML: Fix bug making lexing of single-quoted strings too eager + +Version 2.17.0 +-------------- +(released November 18, 2023) + +- New lexers: + + * JSX (#2524, #709) + * Kusto (#2552) + * ldaprc (#2532) + * LDIF (#2489) + * PRQL (#2507, #2523, #2559) + * Visual Prolog and Visual Prolog Grammar (#2480) + * Vyper (#2531, #2579) + +- Updated lexers: + + * Cypher: fix comment matching, add missing keywords (#2504) + * Fortran: add ``elseif`` keyword (#2528) + * Lean: make it available as ``lean3``, in preparation for + a possible switch to ``lean`` highlighting as Lean 4 (#2546) + * JSON: add MIME types and file extensions for several line-delimited + JSON formats (#2490) + * Nix: many improvements (#2551, #1800) + * OCaml: Add ``and`` keyword, remove ``value`` from keywords (#2521) + * Python: add ``starlark`` and ``bazel`` aliases (#2517, #2516) + * Snowball: Treat ``len`` like ``size`` (#2508) + * Spice: add ``panic`` keyword and ``->`` operator (#2510) + * squid.conf: fix catastrophic backtracking (#2583) + * TOML: rewritten, with many fixes (#2576) + * Turtle: support blank nodes (#2581) + * Wikitext: fix erroneous highlighting of LanguageConverter markup + (#2493), add missing variant languages (#2494) + * CMake: support ``[=[ bracketed arguments ]=]``` (#2549) + +- Fix ctags support and tests (#2487) +- Include ``Lexer.add_filter`` in the documentation (#2519) +- Add a ``Lean3Lexer`` alias (#2546) +- The ``pygments.styles`` module contains a new ``STYLES`` variable + with a dictionary of built-in styles. The old ``STYLE_MAP`` variable, + which uses a different format, is kept for backwards compatibility. +- On Windows, add a new installation extra (``windows-terminal``) which pulls in + dependencies for colored console output. See :doc:`cmdline` for more details. + (#2505) +- Support more file types in ``autopygmentize`` script (#2513) +- Change color of numbers in ``rrt`` style (#2526) +- Fix error when trying to look up plugin formatters by file extension + of the output format (#2563) +- Use Hatchling as a build backend instead of setuptools. + This change is transparent to most users. Distribution packagers + who build without build isolation need to add hatchling as a build + dependency and remove setuptools. People downloading source distributions + and wheels from PyPI directly should note that they now have ``pygments`` + in their file names instead of ``Pygments``. (#2573) +- Improve the test framework to also check for lost tokens when processing the + snippets and example files (#2582.) +- Improve the *Dracula* style definition to make it easier to maintain (#2575) + +Version 2.16.1 +-------------- +(released August 6th, 2023) + +- Fix ``native`` style missing from style list (#2484) + +Version 2.16.0 +-------------- +(released August 6th, 2023) + +- New lexers: + + * ASN.1 (#2462) + * Blueprint (#2434) + * BQN (#2472) + * DNS zone files (#2464) + * GraphQL (#2428) + * Linux desktop files (following the specification of the + Freedesktop group, formerly known as XDG) (#2470) + * NVIDIA PTX (#2432) + * OpenSCAD (#2449) + * systemd (#2470) + * TLS presentation language (#2455) + * Verifpal (#2430) + * YARA (#2453) + +- Updated lexers: + + * ASC: Add ``application/pem-certificate-chain`` mimetype (#2471) + * C/C++: Refine keyword lists (#2421, #2422) + * Carbon: Fix long processing times on invalid input, fix number + lexing (#2454, #2456) + * Elpi: Handle quotations (#2419) + * Go: Support additional built-ins (#2481) + * HTTP: Support empty headers (#2461), support more general methods (#2460), + also recognize responses in ``analyse_text`` implementation (#2460), and + highlight URL encoded data (#2465, #1620) + * Igor Pro: Update to Igor Pro 9 (#2482) + * lean: Recognize expressions nested within attributes (#1817) + * Macaulay2: Update builtins (#2457) + * Markdown: Allow extra characters after language name + in code blocks (#2437) + * NestedText: Update to version 3 (#2459) + * scdoc: Improve language guessing implementation (#2402) + * Spice: Update to latest version (#2476) + * Transact SQL: Add Pre-sorted Group keyword (#2417) + * Uxntal: Update for current runes (#2424) + * Wikitext: Fix templates in wiki links; fix a language converter false + positive; add bold italic markup (#2447) + +- Add ``Generic.EmphStrong`` token for bold italic markup (#2444) +- Add Lightbulb style (#2474) +- Improve contrast in Monokai style (#2448) +- Add documentation how to create terminal code highlighting commands (#2131, #2425) +- Add support for loading TrueType fonts to the ``ImageFormatter`` (#1960) + Version 2.15.1 -------------- (released April 18th, 2023) diff -Nru pygments-2.15.1+dfsg/MANIFEST.in pygments-2.17.2+dfsg/MANIFEST.in --- pygments-2.15.1+dfsg/MANIFEST.in 2022-10-31 15:33:03.000000000 +0000 +++ pygments-2.17.2+dfsg/MANIFEST.in 1970-01-01 00:00:00.000000000 +0000 @@ -1,5 +0,0 @@ -include Makefile CHANGES LICENSE AUTHORS -include external/* -recursive-include tests * -recursive-include doc * -recursive-include scripts * diff -Nru pygments-2.15.1+dfsg/PKG-INFO pygments-2.17.2+dfsg/PKG-INFO --- pygments-2.15.1+dfsg/PKG-INFO 2023-04-18 18:45:02.000000000 +0000 +++ pygments-2.17.2+dfsg/PKG-INFO 2020-02-02 00:00:00.000000000 +0000 @@ -1,16 +1,18 @@ Metadata-Version: 2.1 Name: Pygments -Version: 2.15.1 +Version: 2.17.2 Summary: Pygments is a syntax highlighting package written in Python. -Author-email: Georg Brandl -Maintainer: Matthäus G. Chajdas -Maintainer-email: Georg Brandl , Jean Abou Samra -License: BSD-2-Clause Project-URL: Homepage, https://pygments.org Project-URL: Documentation, https://pygments.org/docs Project-URL: Source, https://github.com/pygments/pygments Project-URL: Bug Tracker, https://github.com/pygments/pygments/issues Project-URL: Changelog, https://github.com/pygments/pygments/blob/master/CHANGES +Author-email: Georg Brandl +Maintainer: Matthäus G. Chajdas +Maintainer-email: Georg Brandl , Jean Abou Samra +License: BSD-2-Clause +License-File: AUTHORS +License-File: LICENSE Keywords: syntax highlighting Classifier: Development Status :: 6 - Mature Classifier: Intended Audience :: Developers @@ -25,15 +27,17 @@ Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: PyPy Classifier: Topic :: Text Processing :: Filters Classifier: Topic :: Utilities Requires-Python: >=3.7 -Description-Content-Type: text/x-rst Provides-Extra: plugins -License-File: LICENSE -License-File: AUTHORS +Requires-Dist: importlib-metadata; python_version < '3.8' and extra == 'plugins' +Provides-Extra: windows-terminal +Requires-Dist: colorama>=0.4.6; extra == 'windows-terminal' +Description-Content-Type: text/x-rst Pygments ~~~~~~~~ diff -Nru pygments-2.15.1+dfsg/debian/changelog pygments-2.17.2+dfsg/debian/changelog --- pygments-2.15.1+dfsg/debian/changelog 2023-04-19 08:06:40.000000000 +0000 +++ pygments-2.17.2+dfsg/debian/changelog 2024-02-02 13:26:20.000000000 +0000 @@ -1,3 +1,14 @@ +pygments (2.17.2+dfsg-1) unstable; urgency=medium + + [ Stefano Rivera ] + * New upstream release. + * Find lower-cased sdists in watch file, upstream switched to hatchling. + * Migrate build from setuptools to hatchling. + * Disable lexer example inclusion in the documentation, as it isn't + available. + + -- Piotr Ożarowski Fri, 02 Feb 2024 14:26:20 +0100 + pygments (2.15.1+dfsg-1) unstable; urgency=medium * New upstream release diff -Nru pygments-2.15.1+dfsg/debian/control pygments-2.17.2+dfsg/debian/control --- pygments-2.15.1+dfsg/debian/control 2023-04-15 13:07:19.000000000 +0000 +++ pygments-2.17.2+dfsg/debian/control 2024-02-02 13:26:20.000000000 +0000 @@ -8,10 +8,10 @@ pybuild-plugin-pyproject, python3-all, python3-docutils, + python3-hatchling, python3-jinja2, python3-lxml, python3-pytest (>= 7) , - python3-setuptools, python3-sphinx, python3-wcag-contrast-ratio, Standards-Version: 4.6.2 diff -Nru pygments-2.15.1+dfsg/debian/patches/0003-Disable-lexer-examples-in-documentation.patch pygments-2.17.2+dfsg/debian/patches/0003-Disable-lexer-examples-in-documentation.patch --- pygments-2.15.1+dfsg/debian/patches/0003-Disable-lexer-examples-in-documentation.patch 1970-01-01 00:00:00.000000000 +0000 +++ pygments-2.17.2+dfsg/debian/patches/0003-Disable-lexer-examples-in-documentation.patch 2024-02-02 13:26:20.000000000 +0000 @@ -0,0 +1,23 @@ +From: Stefano Rivera +Date: Sun, 21 Jan 2024 10:21:07 -0400 +Subject: Disable lexer examples in documentation + +We strip tests/examplefiles from the source for licensing reasons. +Disable the code that attempts to include these in documentation. +--- + pygments/sphinxext.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pygments/sphinxext.py b/pygments/sphinxext.py +index f935688..5076eb8 100644 +--- a/pygments/sphinxext.py ++++ b/pygments/sphinxext.py +@@ -165,7 +165,7 @@ class PygmentsDoc(Directive): + if isinstance(docstring, bytes): + docstring = docstring.decode('utf8') + +- example_file = getattr(cls, '_example', None) ++ example_file = None # getattr(cls, '_example', None) + if example_file: + p = pathlib.Path(inspect.getabsfile(pygments)).parent.parent /\ + 'tests' / 'examplefiles' / example_file diff -Nru pygments-2.15.1+dfsg/debian/patches/series pygments-2.17.2+dfsg/debian/patches/series --- pygments-2.15.1+dfsg/debian/patches/series 2023-04-19 08:06:39.000000000 +0000 +++ pygments-2.17.2+dfsg/debian/patches/series 2024-02-02 13:26:20.000000000 +0000 @@ -1,2 +1,3 @@ 0001-docs-moved-to-python-pygments-doc-binary-package.patch 0002-pygments.bashcomp-Remove-hashbang-within-bash-comple.patch +0003-Disable-lexer-examples-in-documentation.patch diff -Nru pygments-2.15.1+dfsg/debian/watch pygments-2.17.2+dfsg/debian/watch --- pygments-2.15.1+dfsg/debian/watch 2023-04-15 13:01:21.000000000 +0000 +++ pygments-2.17.2+dfsg/debian/watch 2024-02-02 13:26:20.000000000 +0000 @@ -3,4 +3,4 @@ dversionmangle=s/\+dfsg//,\ uversionmangle=s/(beta|rc|a|b|c)/~$1/,\ repacksuffix=+dfsg \ -https://pypi.debian.net/Pygments/Pygments-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) +https://pypi.debian.net/Pygments/[Pp]ygments-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) diff -Nru pygments-2.15.1+dfsg/doc/Makefile pygments-2.17.2+dfsg/doc/Makefile --- pygments-2.15.1+dfsg/doc/Makefile 2023-02-25 10:36:04.000000000 +0000 +++ pygments-2.17.2+dfsg/doc/Makefile 2020-02-02 00:00:00.000000000 +0000 @@ -14,7 +14,7 @@ # the i18n builder cannot share the environment and doctrees with the others I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . -.PHONY: help clean pyodide html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext help: @echo "Please use \`make ' where is one of" diff -Nru pygments-2.15.1+dfsg/doc/_themes/pygments14/layout.html pygments-2.17.2+dfsg/doc/_themes/pygments14/layout.html --- pygments-2.15.1+dfsg/doc/_themes/pygments14/layout.html 2022-10-31 15:33:03.000000000 +0000 +++ pygments-2.17.2+dfsg/doc/_themes/pygments14/layout.html 2020-02-02 00:00:00.000000000 +0000 @@ -85,8 +85,8 @@ {% block footer %} {# closes "flexwrapper" div #}