Update pygments to 2.8.0

Changes:
  <https://github.com/pygments/pygments/blob/2.8.0/CHANGES#L10-L150>

The 2.8.0 release contains fixes to existing lexers, as well as the
following new lexers:
  amdgpu, cddl, futhark, graphviz/dot, markdown

Bug: T274741
Change-Id: I84c32591a06aac5e1afe46dab1f80bb53d981bb3
This commit is contained in:
Prod 2021-02-14 16:16:28 -05:00 committed by Krinkle
parent fa20f69cf4
commit c9892df300
6 changed files with 19 additions and 14 deletions

6
README
View file

@ -6,8 +6,8 @@ for updated information:
== Requirements ==
This version of the extension has been tested with Pygments 2.7.2 and
MediaWiki 1.34. To get releases of this extension compatible
This version of the extension has been tested with Pygments 2.8.0 and
MediaWiki 1.35. To get releases of this extension compatible
with earlier versions of MediaWiki, visit:
https://www.mediawiki.org/wiki/Special:ExtensionDistributor/SyntaxHighlight_GeSHi
@ -18,7 +18,7 @@ Add this line to your LocalSettings.php:
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
By default, this extension will use a bundled copy of Pygments 2.7.2. If you
By default, this extension will use a bundled copy of Pygments 2.8.0. If you
would like to use a different copy of the library, you can set
$wgPygmentizePath to point to the path to the 'pygmentize' binary.

View file

@ -17,6 +17,7 @@ return [
'alloy' => true,
'ambienttalk' => true,
'ambienttalk/2' => true,
'amdgpu' => true,
'ampl' => true,
'antlr' => true,
'antlr-actionscript' => true,
@ -89,6 +90,7 @@ return [
'capdl' => true,
'capnp' => true,
'cbmbas' => true,
'cddl' => true,
'ceylon' => true,
'cf3' => true,
'cfc' => true,
@ -177,6 +179,7 @@ return [
'dosbatch' => true,
'doscon' => true,
'dosini' => true,
'dot' => true,
'dpatch' => true,
'dtd' => true,
'dts' => true,
@ -230,6 +233,7 @@ return [
'freefem' => true,
'fsharp' => true,
'fstar' => true,
'futhark' => true,
'fy' => true,
'gap' => true,
'gas' => true,
@ -245,6 +249,7 @@ return [
'golo' => true,
'gooddata-cl' => true,
'gosu' => true,
'graphviz' => true,
'groff' => true,
'groovy' => true,
'gst' => true,
@ -304,10 +309,6 @@ return [
'ini' => true,
'io' => true,
'ioke' => true,
'ipython' => true,
'ipython2' => true,
'ipython3' => true,
'ipythonconsole' => true,
'irb' => true,
'irc' => true,
'isabelle' => true,
@ -407,6 +408,7 @@ return [
'mako' => true,
'man' => true,
'maql' => true,
'markdown' => true,
'mask' => true,
'mason' => true,
'mathematica' => true,
@ -566,7 +568,6 @@ return [
'ragel-rb' => true,
'ragel-ruby' => true,
'raku' => true,
'raw' => true,
'rb' => true,
'rbcon' => true,
'rconsole' => true,

View file

@ -57,7 +57,11 @@ class UpdateLexerList extends Maintenance {
foreach ( explode( "\n", $output ) as $line ) {
if ( substr( $line, 0, 1 ) === '*' ) {
$newLexers = explode( ', ', trim( $line, "* :\n" ) );
$lexers = array_merge( $lexers, $newLexers );
// Skip internal, unnamed lexers
if ( $newLexers[0] !== '' ) {
$lexers = array_merge( $lexers, $newLexers );
}
}
}
$lexers = array_unique( $lexers );

View file

@ -1,8 +1,8 @@
/* Stylesheet generated by updateCSS.php */
pre { line-height: 125%; margin: 0; }
td.linenos pre { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
span.linenos { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.mw-highlight .hll { background-color: #ffffcc }
.mw-highlight { background: #f8f8f8; }

View file

@ -1 +1 @@
2.7.2
2.8.0

Binary file not shown.