Skip to content
Merged
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ For a detailed view of what has changed, refer to the {uri-repo}/commits/master[

* Drop support for Ruby 2.6.
The oldest supported is 2.7 now.
* Update Pygments to 2.19.2 ({uri-repo})/issues/265[#265])

== 3.0.0 (2024-05-14) - @slonopotamus

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ end
namespace :vendor do
file 'vendor/pygments-main' do |f|
sh "pip install --target=#{f.name} pygments"
sh "git add -- #{f.name}"
sh "git add -f -- #{f.name}"
end

task :clobber do
Expand Down
4 changes: 0 additions & 4 deletions test/test_pygments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,6 @@ def test_css_options
def test_css_prefix_and_options
assert_match(/^\.mycode \.codeerr \{/, P.css('.mycode', classprefix: 'code'))
end

def test_css_colorful
assert_match '.c { color: #888888 }', P.css(style: 'colorful')
end
end

class PygmentsConfigTest < Test::Unit::TestCase
Expand Down
2 changes: 1 addition & 1 deletion vendor/pygments-main/bin/pygmentize
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3.11
#!/usr/bin/python3.13
# -*- coding: utf-8 -*-
import re
import sys
Expand Down
663 changes: 0 additions & 663 deletions vendor/pygments-main/pygments-2.18.0.dist-info/RECORD

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.3
Metadata-Version: 2.4
Name: Pygments
Version: 2.18.0
Version: 2.19.2
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 @@ -27,6 +27,7 @@ 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 :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Text Processing :: Filters
Expand All @@ -53,5 +54,5 @@ are:
formats that PIL supports and ANSI sequences
* it is usable as a command-line tool and as a library

Copyright 2006-2024 by the Pygments team, see ``AUTHORS``.
Copyright 2006-2025 by the Pygments team, see ``AUTHORS``.
Licensed under the BSD, see ``LICENSE`` for details.
685 changes: 685 additions & 0 deletions vendor/pygments-main/pygments-2.19.2.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.24.2
Generator: hatchling 1.27.0
Root-Is-Purelib: true
Tag: py3-none-any
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,17 @@ Other contributors, listed alphabetically, are:
* Frits van Bommel -- assembler lexers
* Pierre Bourdon -- bugfixes
* Martijn Braam -- Kernel log lexer, BARE lexer
* JD Browne, Google LLC -- GoogleSQL lexer
* Matthias Bussonnier -- ANSI style handling for terminal-256 formatter
* chebee7i -- Python traceback lexer improvements
* Hiram Chirino -- Scaml and Jade lexers
* Mauricio Caceres -- SAS and Stata lexers.
* Michael Camilleri, John Gabriele, sogaiu -- Janet lexer
* Daren Chandisingh -- Gleam lexer
* Ian Cooper -- VGL lexer
* David Corbett -- Inform, Jasmin, JSGF, Snowball, and TADS 3 lexers
* Leaf Corcoran -- MoonScript lexer
* Fraser Cormack -- TableGen lexer
* Gabriel Corona -- ASN.1 lexer
* Christopher Creutzig -- MuPAD lexer
* Daniël W. Crompton -- Pike lexer
Expand All @@ -69,6 +72,7 @@ Other contributors, listed alphabetically, are:
* Paweł Fertyk -- GDScript lexer, HTML formatter improvements
* Michael Ficarra -- CPSA lexer
* James H. Fisher -- PostScript lexer
* Amanda Fitch, Google LLC -- GoogleSQL lexer
* William S. Fulton -- SWIG lexer
* Carlos Galdino -- Elixir and Elixir Console lexers
* Michael Galloy -- IDL lexer
Expand Down Expand Up @@ -139,6 +143,7 @@ Other contributors, listed alphabetically, are:
* Jon Larimer, Google Inc. -- Smali lexer
* Olov Lassus -- Dart lexer
* Matt Layman -- TAP lexer
* Dan Lazin, Google LLC -- GoogleSQL lexer
* Kristian Lyngstøl -- Varnish lexers
* Sylvestre Ledru -- Scilab lexer
* Chee Sing Lee -- Flatline lexer
Expand Down Expand Up @@ -252,6 +257,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
* Immanuel Washington -- Smithy lexer
* Nathan Weizenbaum -- Haml and Sass lexers
* Nathan Whetsell -- Csound lexers
Expand All @@ -263,6 +269,7 @@ Other contributors, listed alphabetically, are:
* Enrique Zamudio -- Ceylon lexer
* Alex Zimin -- Nemerle lexer
* Rob Zimmerman -- Kal lexer
* Evgenii Zheltonozhskii -- Maple lexer
* Vincent Zurczak -- Roboconf lexer
* Hubert Gruniaux -- C and C++ lexer improvements
* Thomas Symalla -- AMDGPU Lexer
Expand All @@ -279,5 +286,6 @@ Other contributors, listed alphabetically, are:
* Nikolay Antipov -- OpenSCAD lexer
* Markus Meyer, Nextron Systems -- YARA lexer
* Hannes Römer -- Mojo lexer
* Jan Frederik Schaefer -- PDDL lexer

Many thanks for all contributions!
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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from io import StringIO, BytesIO

__version__ = '2.18.0'
__version__ = '2.19.2'
__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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 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.
2 changes: 1 addition & 1 deletion 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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion 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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 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.
Empty file modified vendor/pygments-main/pygments/formatters/_mapping.py
100755 → 100644
Empty file.
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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down
16 changes: 12 additions & 4 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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""

Expand Down Expand Up @@ -44,7 +44,15 @@ def webify(color):
if color.startswith('calc') or color.startswith('var'):
return color
else:
return '#' + color
# Check if the color can be shortened from 6 to 3 characters
color = color.upper()
if (len(color) == 6 and
( color[0] == color[1]
and color[2] == color[3]
and color[4] == color[5])):
return f'#{color[0]}{color[2]}{color[4]}'
else:
return f'#{color}'


def _get_ttype_class(ttype):
Expand All @@ -62,7 +70,7 @@ def _get_ttype_class(ttype):
CSSFILE_TEMPLATE = '''\
/*
generated by Pygments <https://pygments.org/>
Copyright 2006-2024 by the Pygments team.
Copyright 2006-2025 by the Pygments team.
Licensed under the BSD license, see LICENSE for details.
*/
%(styledefs)s
Expand All @@ -73,7 +81,7 @@ def _get_ttype_class(ttype):
"http://www.w3.org/TR/html4/strict.dtd">
<!--
generated by Pygments <https://pygments.org/>
Copyright 2006-2024 by the Pygments team.
Copyright 2006-2025 by the Pygments team.
Licensed under the BSD license, see LICENSE for details.
-->
<html>
Expand Down
5 changes: 3 additions & 2 deletions 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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import os
Expand Down Expand Up @@ -132,7 +132,8 @@ def _create_mac(self):
'/Library/Fonts/', '/System/Library/Fonts/'):
font_map.update(
(os.path.splitext(f)[0].lower(), os.path.join(font_dir, f))
for f in os.listdir(font_dir)
for _, _, files in os.walk(font_dir)
for f in files
if f.lower().endswith(('ttf', 'ttc')))

for name in STYLES['NORMAL']:
Expand Down
2 changes: 1 addition & 1 deletion 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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 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/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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 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-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 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/terminal256.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Formatter version 1.

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

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

Base lexer classes.

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

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

Pygments lexers.

:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
:copyright: Copyright 2006-2025 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Loading
Loading