Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
This document provides a high-level view of the changes to the {project-name} by release.
For a detailed view of what has changed, refer to the {uri-repo}/commits/master[commit history] on GitHub.

== Unreleased

* Update Pygments to 2.20.0

== 4.0.0 (2025-06-25) - @slonopotamus

* Drop support for Ruby 2.6.
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ end

namespace :vendor do
file 'vendor/pygments-main' do |f|
sh "pip install --target=#{f.name} pygments"
sh "pip3 install --target=#{f.name} pygments"
sh "git add -f -- #{f.name}"
end

Expand Down
685 changes: 0 additions & 685 deletions vendor/pygments-main/pygments-2.19.2.dist-info/RECORD

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: Pygments
Version: 2.19.2
Version: 2.20.0
Summary: Pygments is a syntax highlighting package written in Python.
Project-URL: Homepage, https://pygments.org
Project-URL: Documentation, https://pygments.org/docs
Expand All @@ -10,29 +10,28 @@ Project-URL: Changelog, https://github.com/pygments/pygments/blob/master/CHANGES
Author-email: Georg Brandl <georg@python.org>
Maintainer: Matthäus G. Chajdas
Maintainer-email: Georg Brandl <georg@python.org>, Jean Abou Samra <jean@abou-samra.fr>
License: BSD-2-Clause
License-Expression: BSD-2-Clause
License-File: AUTHORS
License-File: LICENSE
Keywords: syntax highlighting
Classifier: Development Status :: 6 - Mature
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
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 :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Text Processing :: Filters
Classifier: Topic :: Utilities
Requires-Python: >=3.8
Requires-Python: >=3.9
Provides-Extra: plugins
Provides-Extra: windows-terminal
Requires-Dist: colorama>=0.4.6; extra == 'windows-terminal'
Expand All @@ -54,5 +53,5 @@ are:
formats that PIL supports and ANSI sequences
* it is usable as a command-line tool and as a library

Copyright 2006-2025 by the Pygments team, see ``AUTHORS``.
Copyright 2006-present by the Pygments team, see ``AUTHORS``.
Licensed under the BSD, see ``LICENSE`` for details.
687 changes: 687 additions & 0 deletions vendor/pygments-main/pygments-2.20.0.dist-info/RECORD

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Wheel-Version: 1.0
Generator: hatchling 1.27.0
Generator: hatchling 1.29.0
Root-Is-Purelib: true
Tag: py3-none-any
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ Other contributors, listed alphabetically, are:
* Hiroaki Itoh -- Shell console rewrite, Lexers for PowerShell session,
MSDOS session, BC, WDiff
* Brian R. Jackson -- Tea lexer
* Alex Jeffery, ChromaWay AB -- Rell lexer
* Christian Jann -- ShellSession lexer
* Jonas Camillus Jeppesen -- Line numbers and line highlighting for
RTF-formatter
Expand Down Expand Up @@ -257,7 +258,7 @@ Other contributors, listed alphabetically, are:
* Matthias Vallentin -- Bro lexer
* Benoît Vinot -- AMPL lexer
* Linh Vu Hong -- RSL lexer
* Taavi Väänänen -- Debian control lexer
* Taavi Väänänen -- Debian control, PHP lexers
* Immanuel Washington -- Smithy lexer
* Nathan Weizenbaum -- Haml and Sass lexers
* Nathan Whetsell -- Csound lexers
Expand Down
4 changes: 2 additions & 2 deletions vendor/pygments-main/pygments/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
.. _Pygments master branch:
https://github.com/pygments/pygments/archive/master.zip#egg=Pygments-dev

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from io import StringIO, BytesIO

__version__ = '2.19.2'
__version__ = '2.20.0'
__docformat__ = 'restructuredtext'

__all__ = ['lex', 'format', 'highlight']
Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Main entry point for ``python -m pygments``.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions vendor/pygments-main/pygments/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Command line interface.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down Expand Up @@ -185,7 +185,7 @@ def main_inner(parser, argns):
return 0

if argns.V:
print(f'Pygments version {__version__}, (c) 2006-2024 by Georg Brandl, Matthäus '
print(f'Pygments version {__version__}, (c) 2006-present by Georg Brandl, Matthäus '
'Chajdas and contributors.')
return 0

Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Format colored console output.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Module that implements the default filter.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
18 changes: 10 additions & 8 deletions vendor/pygments-main/pygments/filters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Module containing filter lookup functions and default
filters.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down Expand Up @@ -95,8 +95,10 @@ def filter(self, lexer, stream):


class SymbolFilter(Filter):
"""Convert mathematical symbols such as \\<longrightarrow> in Isabelle
or \\longrightarrow in LaTeX into Unicode characters.
"""Convert mathematical symbols into Unicode characters.

Examples are ``\\<longrightarrow>`` in Isabelle or
``\\longrightarrow`` in LaTeX.

This is mostly useful for HTML or console output when you want to
approximate the source rendering you'd see in an IDE.
Expand Down Expand Up @@ -685,8 +687,9 @@ def filter(self, lexer, stream):


class KeywordCaseFilter(Filter):
"""Convert keywords to lowercase or uppercase or capitalize them, which
means first letter uppercase, rest lowercase.
"""Convert keywords to lowercase or uppercase or capitalize them.

This means first letter uppercase, rest lowercase.

This can be useful e.g. if you highlight Pascal code and want to adapt the
code to your styleguide.
Expand Down Expand Up @@ -866,7 +869,7 @@ def replacefunc(wschar):


class GobbleFilter(Filter):
"""Gobbles source code lines (eats initial characters).
"""Gobble source code lines (eats initial characters).

This filter drops the first ``n`` characters off every line of code. This
may be useful when the source code fed to the lexer is indented by a fixed
Expand Down Expand Up @@ -905,8 +908,7 @@ def filter(self, lexer, stream):


class TokenMergeFilter(Filter):
"""Merges consecutive tokens with the same token type in the output
stream of a lexer.
"""Merge consecutive tokens with the same token type in the output stream.

.. versionadded:: 1.2
"""
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Base formatter class.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/formatters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Pygments formatters.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/formatters/bbcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

BBcode formatter.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/formatters/groff.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Formatter for groff output.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
20 changes: 11 additions & 9 deletions vendor/pygments-main/pygments/formatters/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Formatter for HTML output.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand All @@ -18,6 +18,8 @@
from pygments.token import Token, Text, STANDARD_TYPES
from pygments.util import get_bool_opt, get_int_opt, get_list_opt

import html

try:
import ctags
except ImportError:
Expand Down Expand Up @@ -70,7 +72,7 @@ def _get_ttype_class(ttype):
CSSFILE_TEMPLATE = '''\
/*
generated by Pygments <https://pygments.org/>
Copyright 2006-2025 by the Pygments team.
Copyright 2006-present by the Pygments team.
Licensed under the BSD license, see LICENSE for details.
*/
%(styledefs)s
Expand All @@ -81,7 +83,7 @@ def _get_ttype_class(ttype):
"http://www.w3.org/TR/html4/strict.dtd">
<!--
generated by Pygments <https://pygments.org/>
Copyright 2006-2025 by the Pygments team.
Copyright 2006-present by the Pygments team.
Licensed under the BSD license, see LICENSE for details.
-->
<html>
Expand Down Expand Up @@ -422,14 +424,14 @@ def __init__(self, **options):
self.nowrap = get_bool_opt(options, 'nowrap', False)
self.noclasses = get_bool_opt(options, 'noclasses', False)
self.classprefix = options.get('classprefix', '')
self.cssclass = self._decodeifneeded(options.get('cssclass', 'highlight'))
self.cssstyles = self._decodeifneeded(options.get('cssstyles', ''))
self.cssclass = html.escape(self._decodeifneeded(options.get('cssclass', 'highlight')))
self.cssstyles = html.escape(self._decodeifneeded(options.get('cssstyles', '')))
self.prestyles = self._decodeifneeded(options.get('prestyles', ''))
self.cssfile = self._decodeifneeded(options.get('cssfile', ''))
self.noclobber_cssfile = get_bool_opt(options, 'noclobber_cssfile', False)
self.tagsfile = self._decodeifneeded(options.get('tagsfile', ''))
self.tagurlformat = self._decodeifneeded(options.get('tagurlformat', ''))
self.filename = self._decodeifneeded(options.get('filename', ''))
self.filename = html.escape(self._decodeifneeded(options.get('filename', '')))
self.wrapcode = get_bool_opt(options, 'wrapcode', False)
self.span_element_openers = {}
self.debug_token_types = get_bool_opt(options, 'debug_token_types', False)
Expand All @@ -452,9 +454,9 @@ def __init__(self, **options):
self.linenostep = abs(get_int_opt(options, 'linenostep', 1))
self.linenospecial = abs(get_int_opt(options, 'linenospecial', 0))
self.nobackground = get_bool_opt(options, 'nobackground', False)
self.lineseparator = options.get('lineseparator', '\n')
self.lineanchors = options.get('lineanchors', '')
self.linespans = options.get('linespans', '')
self.lineseparator = html.escape(options.get('lineseparator', '\n'))
self.lineanchors = html.escape(options.get('lineanchors', ''))
self.linespans = html.escape(options.get('linespans', ''))
self.anchorlinenos = get_bool_opt(options, 'anchorlinenos', False)
self.hl_lines = set()
for lineno in get_list_opt(options, 'hl_lines', []):
Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/formatters/img.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Formatter for Pixmap output.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import os
Expand Down
3 changes: 1 addition & 2 deletions vendor/pygments-main/pygments/formatters/irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Formatter for IRC output

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down Expand Up @@ -91,7 +91,6 @@ def ircformat(color, text):
add += '\x03' + str(IRC_COLOR_MAP[color]).zfill(2)
sub = '\x03' + sub
return add + text + sub
return '<'+add+'>'+text+'</'+sub+'>'


class IRCFormatter(Formatter):
Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/formatters/latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Formatter for LaTeX fancyvrb output.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/formatters/other.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Other formatters: NullFormatter, RawTokenFormatter.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/formatters/pangomarkup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Formatter for Pango markup output.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/formatters/rtf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A formatter that generates RTF files.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/formatters/svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Formatter for SVG output.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/pygments/formatters/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Formatter for terminal output with ANSI sequences.

:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
Loading