Skip to content

Update Pygments to 2.13.0 #244

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2022
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
  •  
  •  
  •  
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.13.0

== 2.3.1 (2022-12-04) - @slonopotamus

* Fix bogus search for Python executable ({uri-repo})/issues/242[#242])
Expand Down
11 changes: 0 additions & 11 deletions test/test_pygments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ def test_highlight_works_with_multiple_utf8_and_trailing_newline
assert_match 'ø..ø', code
end

def test_highlight_formatter_bbcode
code = P.highlight(RUBY_CODE, formatter: 'bbcode')
assert_match 'color=#408080][i]#!/usr/bin/ruby[/i]', code
end

def test_highlight_formatter_terminal
code = P.highlight(RUBY_CODE, formatter: 'terminal')
assert_match '39;49;00m', code
Expand Down Expand Up @@ -182,8 +177,6 @@ def test_find_lexer_by_extname
assert_equal P::Lexer['Ruby'], P::Lexer.find_by_extname('.rb')
assert_equal P::Lexer['PHP'], P::Lexer.find_by_extname('.php4')
assert_equal P::Lexer['PHP'], P::Lexer.find_by_extname('.php5')
assert_equal P::Lexer['Groff'], P::Lexer.find_by_extname('.1')
assert_equal P::Lexer['Groff'], P::Lexer.find_by_extname('.3')
assert_equal P::Lexer['C'], P::Lexer.find_by_extname('.c')
assert_equal P::Lexer['Python'], P::Lexer.find_by_extname('.py')
assert_equal P::Lexer['Java'], P::Lexer.find_by_extname('.java')
Expand Down Expand Up @@ -215,10 +208,6 @@ def test_css_prefix_and_options
assert_match(/^\.mycode \.codeerr \{/, P.css('.mycode', classprefix: 'code'))
end

def test_css_default
assert_match '.c { color: #408080; font-style: italic }', P.css
end

def test_css_colorful
assert_match '.c { color: #888888 }', P.css(style: 'colorful')
end
Expand Down
524 changes: 0 additions & 524 deletions vendor/pygments-main/Pygments-2.10.0.dist-info/RECORD

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Major developers are Tim Hatch <tim@timhatch.com> and Armin Ronacher
Other contributors, listed alphabetically, are:

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

Many thanks for all contributions!
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2006-2021 by the respective authors (see AUTHORS file).
Copyright (c) 2006-2022 by the respective authors (see AUTHORS file).
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
Metadata-Version: 2.1
Name: Pygments
Version: 2.10.0
Version: 2.13.0
Summary: Pygments is a syntax highlighting package written in Python.
Home-page: https://pygments.org/
Author: Georg Brandl
Author-email: georg@python.org
License: BSD License
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
Keywords: syntax highlighting
Platform: any
Classifier: Development Status :: 6 - Mature
Expand All @@ -16,33 +20,19 @@ 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.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Text Processing :: Filters
Classifier: Topic :: Utilities
Requires-Python: >=3.5

Pygments
~~~~~~~~

Pygments is a syntax highlighting package written in Python.

It is a generic syntax highlighter suitable for use in code hosting, forums,
wikis or other applications that need to prettify source code. Highlights
are:

* a wide range of over 500 languages and other text formats is supported
* special attention is paid to details, increasing quality by a fair amount
* support for new languages and formats are added easily
* a number of output formats, presently HTML, LaTeX, RTF, SVG, all image
formats that PIL supports and ANSI sequences
* it is usable as a command-line tool and as a library

Copyright 2006-2021 by the Pygments team, see ``AUTHORS``.
Licensed under the BSD, see ``LICENSE`` for details.
Requires-Python: >=3.6
Description-Content-Type: text/x-rst
License-File: LICENSE
License-File: AUTHORS
Provides-Extra: plugins
Requires-Dist: importlib-metadata ; (python_version < "3.8") and extra == 'plugins'

Loading