Skip to content

Commit fe03c27

Browse files
authored
Update Pygments to 2.13.0 (#244)
1 parent e01b5bd commit fe03c27

File tree

304 files changed

+17316
-5375
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

304 files changed

+17316
-5375
lines changed

CHANGELOG.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
This document provides a high-level view of the changes to the {project-name} by release.
66
For a detailed view of what has changed, refer to the {uri-repo}/commits/master[commit history] on GitHub.
77

8+
== Unreleased
9+
10+
* Update Pygments to 2.13.0
11+
812
== 2.3.1 (2022-12-04) - @slonopotamus
913

1014
* Fix bogus search for Python executable ({uri-repo})/issues/242[#242])

test/test_pygments.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ def test_highlight_works_with_multiple_utf8_and_trailing_newline
7171
assert_match 'ø..ø', code
7272
end
7373

74-
def test_highlight_formatter_bbcode
75-
code = P.highlight(RUBY_CODE, formatter: 'bbcode')
76-
assert_match 'color=#408080][i]#!/usr/bin/ruby[/i]', code
77-
end
78-
7974
def test_highlight_formatter_terminal
8075
code = P.highlight(RUBY_CODE, formatter: 'terminal')
8176
assert_match '39;49;00m', code
@@ -182,8 +177,6 @@ def test_find_lexer_by_extname
182177
assert_equal P::Lexer['Ruby'], P::Lexer.find_by_extname('.rb')
183178
assert_equal P::Lexer['PHP'], P::Lexer.find_by_extname('.php4')
184179
assert_equal P::Lexer['PHP'], P::Lexer.find_by_extname('.php5')
185-
assert_equal P::Lexer['Groff'], P::Lexer.find_by_extname('.1')
186-
assert_equal P::Lexer['Groff'], P::Lexer.find_by_extname('.3')
187180
assert_equal P::Lexer['C'], P::Lexer.find_by_extname('.c')
188181
assert_equal P::Lexer['Python'], P::Lexer.find_by_extname('.py')
189182
assert_equal P::Lexer['Java'], P::Lexer.find_by_extname('.java')
@@ -215,10 +208,6 @@ def test_css_prefix_and_options
215208
assert_match(/^\.mycode \.codeerr \{/, P.css('.mycode', classprefix: 'code'))
216209
end
217210

218-
def test_css_default
219-
assert_match '.c { color: #408080; font-style: italic }', P.css
220-
end
221-
222211
def test_css_colorful
223212
assert_match '.c { color: #888888 }', P.css(style: 'colorful')
224213
end

vendor/pygments-main/Pygments-2.10.0.dist-info/RECORD

Lines changed: 0 additions & 524 deletions
This file was deleted.

vendor/pygments-main/Pygments-2.10.0.dist-info/AUTHORS renamed to vendor/pygments-main/Pygments-2.13.0.dist-info/AUTHORS

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Major developers are Tim Hatch <tim@timhatch.com> and Armin Ronacher
66
Other contributors, listed alphabetically, are:
77

88
* Sam Aaron -- Ioke lexer
9+
* Jean Abou Samra -- LilyPond lexer
910
* João Abecasis -- JSLT lexer
1011
* Ali Afshar -- image formatter
1112
* Thomas Aglassinger -- Easytrieve, JCL, Rexx, Transact-SQL and VBScript
@@ -15,6 +16,7 @@ Other contributors, listed alphabetically, are:
1516
* Andreas Amann -- AppleScript lexer
1617
* Timothy Armstrong -- Dart lexer fixes
1718
* Jeffrey Arnold -- R/S, Rd, BUGS, Jags, and Stan lexers
19+
* Eiríkr Åsheim -- Uxntal lexer
1820
* Jeremy Ashkenas -- CoffeeScript lexer
1921
* José Joaquín Atria -- Praat lexer
2022
* Stefan Matthias Aust -- Smalltalk lexer
@@ -49,6 +51,7 @@ Other contributors, listed alphabetically, are:
4951
* Pete Curry -- bugfixes
5052
* Bryan Davis -- EBNF lexer
5153
* Bruno Deferrari -- Shen lexer
54+
* Walter Dörwald -- UL4 lexer
5255
* Luke Drummond -- Meson lexer
5356
* Giedrius Dubinskas -- HTML formatter improvements
5457
* Owen Durni -- Haxe lexer
@@ -117,6 +120,7 @@ Other contributors, listed alphabetically, are:
117120
* Gerwin Klein -- Isabelle lexer
118121
* Eric Knibbe -- Lasso lexer
119122
* Stepan Koltsov -- Clay lexer
123+
* Oliver Kopp - Friendly grayscale style
120124
* Adam Koprowski -- Opa lexer
121125
* Benjamin Kowarsch -- Modula-2 lexer
122126
* Domen Kožar -- Nix lexer
@@ -143,7 +147,8 @@ Other contributors, listed alphabetically, are:
143147
* Stephen McKamey -- Duel/JBST lexer
144148
* Brian McKenna -- F# lexer
145149
* Charles McLaughlin -- Puppet lexer
146-
* Kurt McKee -- Tera Term macro lexer, PostgreSQL updates, MySQL overhaul
150+
* Kurt McKee -- Tera Term macro lexer, PostgreSQL updates, MySQL overhaul, JSON lexer
151+
* Joe Eli McIlvain -- Savi lexer
147152
* Lukas Meuser -- BBCode formatter, Lua lexer
148153
* Cat Miller -- Pig lexer
149154
* Paul Miller -- LiveScript lexer
@@ -173,6 +178,7 @@ Other contributors, listed alphabetically, are:
173178
* Clément Prévost -- UrbiScript lexer
174179
* Tanner Prynn -- cmdline -x option and loading lexers from files
175180
* Oleh Prypin -- Crystal lexer (based on Ruby lexer)
181+
* Nick Psaris -- K and Q lexers
176182
* Xidorn Quan -- Web IDL lexer
177183
* Elias Rabel -- Fortran fixed form lexer
178184
* raichoo -- Idris lexer
@@ -182,6 +188,7 @@ Other contributors, listed alphabetically, are:
182188
* Justin Reidy -- MXML lexer
183189
* Norman Richards -- JSON lexer
184190
* Corey Richardson -- Rust lexer updates
191+
* Fabrizio Riguzzi -- cplint leder
185192
* Lubomir Rintel -- GoodData MAQL and CL lexers
186193
* Andre Roberge -- Tango style
187194
* Georg Rollinger -- HSAIL lexer
@@ -218,7 +225,9 @@ Other contributors, listed alphabetically, are:
218225
* Jeremy Thurgood -- Erlang, Squid config lexers
219226
* Brian Tiffin -- OpenCOBOL lexer
220227
* Bob Tolbert -- Hy lexer
228+
* Doug Torrance -- Macaulay2 lexer
221229
* Matthias Trute -- Forth lexer
230+
* Tuoa Spi T4 -- Bdd lexer
222231
* Erick Tryzelaar -- Felix lexer
223232
* Alexander Udalov -- Kotlin lexer improvements
224233
* Thomas Van Doren -- Chapel lexer
@@ -246,5 +255,8 @@ Other contributors, listed alphabetically, are:
246255
* Fabian Neumann -- CDDL lexer
247256
* Thomas Duboucher -- CDDL lexer
248257
* Philipp Imhof -- Pango Markup formatter
258+
* Thomas Voss -- Sed lexer
259+
* Martin Fischer -- WCAG contrast testing
260+
* Marc Auberer -- Spice lexer
249261

250262
Many thanks for all contributions!

vendor/pygments-main/Pygments-2.10.0.dist-info/LICENSE renamed to vendor/pygments-main/Pygments-2.13.0.dist-info/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2006-2021 by the respective authors (see AUTHORS file).
1+
Copyright (c) 2006-2022 by the respective authors (see AUTHORS file).
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
Metadata-Version: 2.1
22
Name: Pygments
3-
Version: 2.10.0
3+
Version: 2.13.0
44
Summary: Pygments is a syntax highlighting package written in Python.
55
Home-page: https://pygments.org/
66
Author: Georg Brandl
77
Author-email: georg@python.org
88
License: BSD License
9+
Project-URL: Documentation, https://pygments.org/docs/
10+
Project-URL: Source, https://github.com/pygments/pygments
11+
Project-URL: Bug Tracker, https://github.com/pygments/pygments/issues
12+
Project-URL: Changelog, https://github.com/pygments/pygments/blob/master/CHANGES
913
Keywords: syntax highlighting
1014
Platform: any
1115
Classifier: Development Status :: 6 - Mature
@@ -16,33 +20,19 @@ Classifier: License :: OSI Approved :: BSD License
1620
Classifier: Operating System :: OS Independent
1721
Classifier: Programming Language :: Python
1822
Classifier: Programming Language :: Python :: 3
19-
Classifier: Programming Language :: Python :: 3.5
2023
Classifier: Programming Language :: Python :: 3.6
2124
Classifier: Programming Language :: Python :: 3.7
2225
Classifier: Programming Language :: Python :: 3.8
2326
Classifier: Programming Language :: Python :: 3.9
27+
Classifier: Programming Language :: Python :: 3.10
2428
Classifier: Programming Language :: Python :: Implementation :: CPython
2529
Classifier: Programming Language :: Python :: Implementation :: PyPy
2630
Classifier: Topic :: Text Processing :: Filters
2731
Classifier: Topic :: Utilities
28-
Requires-Python: >=3.5
29-
30-
Pygments
31-
~~~~~~~~
32-
33-
Pygments is a syntax highlighting package written in Python.
34-
35-
It is a generic syntax highlighter suitable for use in code hosting, forums,
36-
wikis or other applications that need to prettify source code. Highlights
37-
are:
38-
39-
* a wide range of over 500 languages and other text formats is supported
40-
* special attention is paid to details, increasing quality by a fair amount
41-
* support for new languages and formats are added easily
42-
* a number of output formats, presently HTML, LaTeX, RTF, SVG, all image
43-
formats that PIL supports and ANSI sequences
44-
* it is usable as a command-line tool and as a library
45-
46-
Copyright 2006-2021 by the Pygments team, see ``AUTHORS``.
47-
Licensed under the BSD, see ``LICENSE`` for details.
32+
Requires-Python: >=3.6
33+
Description-Content-Type: text/x-rst
34+
License-File: LICENSE
35+
License-File: AUTHORS
36+
Provides-Extra: plugins
37+
Requires-Dist: importlib-metadata ; (python_version < "3.8") and extra == 'plugins'
4838

0 commit comments

Comments
 (0)