mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-13 17:50:37 +00:00
Update pygments to 2.5.2
Changes: <https://github.com/pygments/pygments/blob/f456d23496/CHANGES#L41-L253> The most significant change is that lang='python' will now use the Python 3 lexer by default. To get the Python 2 lexer, 'python2' must be used. This seems like a sensible change, given the state of Python 3 adoption, and the final version of Python 2 hitting EOL status last month. The syntactic differences between Python 2 and 3 are minor. Change-Id: I8a80a410b67035b97f03aacc6d8d71a97723fee8
This commit is contained in:
parent
090f027b36
commit
269cc7c536
|
@ -45,6 +45,7 @@ return [
|
|||
'asy' => true,
|
||||
'asymptote' => true,
|
||||
'at' => true,
|
||||
'augeas' => true,
|
||||
'autohotkey' => true,
|
||||
'autoit' => true,
|
||||
'awk' => true,
|
||||
|
@ -54,6 +55,7 @@ return [
|
|||
'basic' => true,
|
||||
'bat' => true,
|
||||
'batch' => true,
|
||||
'bbcbasic' => true,
|
||||
'bbcode' => true,
|
||||
'bc' => true,
|
||||
'befunge' => true,
|
||||
|
@ -64,6 +66,7 @@ return [
|
|||
'blitzmax' => true,
|
||||
'bmax' => true,
|
||||
'bnf' => true,
|
||||
'boa' => true,
|
||||
'boo' => true,
|
||||
'boogie' => true,
|
||||
'bplus' => true,
|
||||
|
@ -94,6 +97,7 @@ return [
|
|||
'chai' => true,
|
||||
'chaiscript' => true,
|
||||
'chapel' => true,
|
||||
'charmci' => true,
|
||||
'cheetah' => true,
|
||||
'chpl' => true,
|
||||
'cirru' => true,
|
||||
|
@ -156,6 +160,7 @@ return [
|
|||
'd' => true,
|
||||
'd-objdump' => true,
|
||||
'dart' => true,
|
||||
'dasm16' => true,
|
||||
'debcontrol' => true,
|
||||
'debsources' => true,
|
||||
'delphi' => true,
|
||||
|
@ -189,6 +194,8 @@ return [
|
|||
'elm' => true,
|
||||
'emacs' => true,
|
||||
'emacs-lisp' => true,
|
||||
'email' => true,
|
||||
'eml' => true,
|
||||
'erb' => true,
|
||||
'erl' => true,
|
||||
'erlang' => true,
|
||||
|
@ -197,18 +204,24 @@ return [
|
|||
'exs' => true,
|
||||
'extempore' => true,
|
||||
'ezhil' => true,
|
||||
'f#' => true,
|
||||
'factor' => true,
|
||||
'fan' => true,
|
||||
'fancy' => true,
|
||||
'felix' => true,
|
||||
'fennel' => true,
|
||||
'fish' => true,
|
||||
'fishshell' => true,
|
||||
'flatline' => true,
|
||||
'flo' => true,
|
||||
'floscript' => true,
|
||||
'flx' => true,
|
||||
'fnl' => true,
|
||||
'forth' => true,
|
||||
'fortran' => true,
|
||||
'fortranfixed' => true,
|
||||
'foxpro' => true,
|
||||
'freefem' => true,
|
||||
'fsharp' => true,
|
||||
'fy' => true,
|
||||
'gap' => true,
|
||||
|
@ -232,9 +245,11 @@ return [
|
|||
'haxe' => true,
|
||||
'haxeml' => true,
|
||||
'hexdump' => true,
|
||||
'hlsl' => true,
|
||||
'hs' => true,
|
||||
'hsa' => true,
|
||||
'hsail' => true,
|
||||
'hspec' => true,
|
||||
'html' => true,
|
||||
'html+cheetah' => true,
|
||||
'html+django' => true,
|
||||
|
@ -266,6 +281,7 @@ return [
|
|||
'i6' => true,
|
||||
'i6t' => true,
|
||||
'i7' => true,
|
||||
'icon' => true,
|
||||
'idl' => true,
|
||||
'idl4' => true,
|
||||
'idr' => true,
|
||||
|
@ -384,6 +400,7 @@ return [
|
|||
'md' => true,
|
||||
'menuconfig' => true,
|
||||
'mf' => true,
|
||||
'mime' => true,
|
||||
'minid' => true,
|
||||
'mma' => true,
|
||||
'modelica' => true,
|
||||
|
@ -423,6 +440,7 @@ return [
|
|||
'nit' => true,
|
||||
'nix' => true,
|
||||
'nixos' => true,
|
||||
'notmuch' => true,
|
||||
'nroff' => true,
|
||||
'nsh' => true,
|
||||
'nsi' => true,
|
||||
|
@ -471,6 +489,7 @@ return [
|
|||
'pl6' => true,
|
||||
'plpgsql' => true,
|
||||
'po' => true,
|
||||
'pony' => true,
|
||||
'posh' => true,
|
||||
'postgres' => true,
|
||||
'postgres-console' => true,
|
||||
|
@ -494,6 +513,8 @@ return [
|
|||
'pug' => true,
|
||||
'puppet' => true,
|
||||
'py' => true,
|
||||
'py2' => true,
|
||||
'py2tb' => true,
|
||||
'py3' => true,
|
||||
'py3tb' => true,
|
||||
'pycon' => true,
|
||||
|
@ -502,6 +523,7 @@ return [
|
|||
'pyrex' => true,
|
||||
'pytb' => true,
|
||||
'python' => true,
|
||||
'python2' => true,
|
||||
'python3' => true,
|
||||
'pyx' => true,
|
||||
'qbasic' => true,
|
||||
|
@ -544,6 +566,7 @@ return [
|
|||
'robotframework' => true,
|
||||
'rout' => true,
|
||||
'rql' => true,
|
||||
'rs' => true,
|
||||
'rsl' => true,
|
||||
'rst' => true,
|
||||
'rts' => true,
|
||||
|
@ -552,28 +575,38 @@ return [
|
|||
's' => true,
|
||||
'sage' => true,
|
||||
'salt' => true,
|
||||
'sarl' => true,
|
||||
'sas' => true,
|
||||
'sass' => true,
|
||||
'sbatch' => true,
|
||||
'sc' => true,
|
||||
'scala' => true,
|
||||
'scaml' => true,
|
||||
'scd' => true,
|
||||
'scdoc' => true,
|
||||
'scheme' => true,
|
||||
'scilab' => true,
|
||||
'scm' => true,
|
||||
'scss' => true,
|
||||
'sgf' => true,
|
||||
'sh' => true,
|
||||
'shell' => true,
|
||||
'shell-session' => true,
|
||||
'shen' => true,
|
||||
'shex' => true,
|
||||
'shexc' => true,
|
||||
'silver' => true,
|
||||
'slash' => true,
|
||||
'slim' => true,
|
||||
'sls' => true,
|
||||
'slurm' => true,
|
||||
'smali' => true,
|
||||
'smalltalk' => true,
|
||||
'smarty' => true,
|
||||
'sml' => true,
|
||||
'snobol' => true,
|
||||
'snowball' => true,
|
||||
'solidity' => true,
|
||||
'sources.list' => true,
|
||||
'sourceslist' => true,
|
||||
'sp' => true,
|
||||
|
@ -604,6 +637,8 @@ return [
|
|||
'tcsh' => true,
|
||||
'tcshcon' => true,
|
||||
'tea' => true,
|
||||
'teraterm' => true,
|
||||
'teratermmacro' => true,
|
||||
'termcap' => true,
|
||||
'terminfo' => true,
|
||||
'terraform' => true,
|
||||
|
@ -612,24 +647,29 @@ return [
|
|||
'tf' => true,
|
||||
'thrift' => true,
|
||||
'todotxt' => true,
|
||||
'toml' => true,
|
||||
'trac-wiki' => true,
|
||||
'trafficscript' => true,
|
||||
'treetop' => true,
|
||||
'ts' => true,
|
||||
'tsql' => true,
|
||||
'ttl' => true,
|
||||
'turtle' => true,
|
||||
'twig' => true,
|
||||
'typescript' => true,
|
||||
'typoscript' => true,
|
||||
'typoscriptcssdata' => true,
|
||||
'typoscripthtmldata' => true,
|
||||
'ucode' => true,
|
||||
'udiff' => true,
|
||||
'unicon' => true,
|
||||
'urbiscript' => true,
|
||||
'v' => true,
|
||||
'vala' => true,
|
||||
'vapi' => true,
|
||||
'vb.net' => true,
|
||||
'vbnet' => true,
|
||||
'vbscript' => true,
|
||||
'vcl' => true,
|
||||
'vclsnippet' => true,
|
||||
'vclsnippets' => true,
|
||||
|
@ -662,6 +702,7 @@ return [
|
|||
'xml+smarty' => true,
|
||||
'xml+spitfire' => true,
|
||||
'xml+velocity' => true,
|
||||
'xorg.conf' => true,
|
||||
'xq' => true,
|
||||
'xql' => true,
|
||||
'xqm' => true,
|
||||
|
@ -673,6 +714,8 @@ return [
|
|||
'xul+mozpreproc' => true,
|
||||
'yaml' => true,
|
||||
'yaml+jinja' => true,
|
||||
'zeek' => true,
|
||||
'zephir' => true,
|
||||
'zig' => true,
|
||||
'zsh' => true,
|
||||
];
|
||||
|
|
|
@ -7,7 +7,8 @@ Other contributors, listed alphabetically, are:
|
|||
|
||||
* Sam Aaron -- Ioke lexer
|
||||
* Ali Afshar -- image formatter
|
||||
* Thomas Aglassinger -- Easytrieve, JCL and Rexx lexers
|
||||
* Thomas Aglassinger -- Easytrieve, JCL, Rexx, Transact-SQL and VBScript
|
||||
lexers
|
||||
* Muthiah Annamalai -- Ezhil lexer
|
||||
* Kumar Appaiah -- Debian control lexer
|
||||
* Andreas Amann -- AppleScript lexer
|
||||
|
@ -31,12 +32,16 @@ Other contributors, listed alphabetically, are:
|
|||
* Sébastien Bigaret -- QVT Operational lexer
|
||||
* Jarrett Billingsley -- MiniD lexer
|
||||
* Adam Blinkinsop -- Haskell, Redcode lexers
|
||||
* Stéphane Blondon -- SGF and Sieve lexers
|
||||
* Frits van Bommel -- assembler lexers
|
||||
* Pierre Bourdon -- bugfixes
|
||||
* Martijn Braam -- Kernel log 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.
|
||||
* Ian Cooper -- VGL lexer
|
||||
* David Corbett -- Inform, Jasmin, and TADS 3 lexers
|
||||
* David Corbett -- Inform, Jasmin, JSGF, Snowball, and TADS 3 lexers
|
||||
* Leaf Corcoran -- MoonScript lexer
|
||||
* Christopher Creutzig -- MuPAD lexer
|
||||
* Daniël W. Crompton -- Pike lexer
|
||||
|
@ -57,19 +62,23 @@ Other contributors, listed alphabetically, are:
|
|||
* Carlos Galdino -- Elixir and Elixir Console lexers
|
||||
* Michael Galloy -- IDL lexer
|
||||
* Naveen Garg -- Autohotkey lexer
|
||||
* Simon Garnotel -- FreeFem++ lexer
|
||||
* Laurent Gautier -- R/S lexer
|
||||
* Alex Gaynor -- PyPy log lexer
|
||||
* Richard Gerkin -- Igor Pro lexer
|
||||
* Alain Gilbert -- TypeScript lexer
|
||||
* Alex Gilding -- BlitzBasic lexer
|
||||
* GitHub, Inc -- DASM16, Augeas, TOML, and Slash lexers
|
||||
* Bertrand Goetzmann -- Groovy lexer
|
||||
* Krzysiek Goj -- Scala lexer
|
||||
* Rostyslav Golda -- FloScript lexer
|
||||
* Andrey Golovizin -- BibTeX lexers
|
||||
* Matt Good -- Genshi, Cheetah lexers
|
||||
* Michał Górny -- vim modeline support
|
||||
* Alex Gosse -- TrafficScript lexer
|
||||
* Patrick Gotthardt -- PHP namespaces support
|
||||
* Olivier Guibe -- Asymptote lexer
|
||||
* Jordi Gutiérrez Hermoso -- Octave lexer
|
||||
* Phil Hagelberg -- Fennel lexer
|
||||
* Florian Hahn -- Boogie lexer
|
||||
* Martin Harriman -- SNOBOL lexer
|
||||
* Matthew Harrison -- SVG formatter
|
||||
|
@ -78,6 +87,7 @@ Other contributors, listed alphabetically, are:
|
|||
* Aslak Hellesøy -- Gherkin lexer
|
||||
* Greg Hendershott -- Racket lexer
|
||||
* Justin Hendrick -- ParaSail lexer
|
||||
* Jordi Gutiérrez Hermoso -- Octave lexer
|
||||
* David Hess, Fish Software, Inc. -- Objective-J lexer
|
||||
* Varun Hiremath -- Debian control lexer
|
||||
* Rob Hoelz -- Perl 6 lexer
|
||||
|
@ -88,12 +98,14 @@ Other contributors, listed alphabetically, are:
|
|||
* Tim Howard -- BlitzMax lexer
|
||||
* Dustin Howett -- Logos lexer
|
||||
* Ivan Inozemtsev -- Fantom lexer
|
||||
* Hiroaki Itoh -- Shell console rewrite, Lexers for PowerShell session, MSDOS session, BC
|
||||
* Hiroaki Itoh -- Shell console rewrite, Lexers for PowerShell session,
|
||||
MSDOS session, BC, WDiff
|
||||
* Brian R. Jackson -- Tea lexer
|
||||
* Christian Jann -- ShellSession lexer
|
||||
* Dennis Kaarsemaker -- sources.list lexer
|
||||
* Dmitri Kabak -- Inferno Limbo lexer
|
||||
* Igor Kalnitsky -- vhdl lexer
|
||||
* Colin Kennedy - USD lexer
|
||||
* Alexander Kit -- MaskJS lexer
|
||||
* Pekka Klärck -- Robot Framework lexer
|
||||
* Gerwin Klein -- Isabelle lexer
|
||||
|
@ -110,7 +122,9 @@ Other contributors, listed alphabetically, are:
|
|||
* Jon Larimer, Google Inc. -- Smali lexer
|
||||
* Olov Lassus -- Dart lexer
|
||||
* Matt Layman -- TAP lexer
|
||||
* Kristian Lyngstøl -- Varnish lexers
|
||||
* Sylvestre Ledru -- Scilab lexer
|
||||
* Chee Sing Lee -- Flatline lexer
|
||||
* Mark Lee -- Vala lexer
|
||||
* Valentin Lorentz -- C++ lexer improvements
|
||||
* Ben Mabey -- Gherkin lexer
|
||||
|
@ -123,6 +137,7 @@ Other contributors, listed alphabetically, are:
|
|||
* Stephen McKamey -- Duel/JBST lexer
|
||||
* Brian McKenna -- F# lexer
|
||||
* Charles McLaughlin -- Puppet lexer
|
||||
* Kurt McKee -- Tera Term macro lexer
|
||||
* Lukas Meuser -- BBCode formatter, Lua lexer
|
||||
* Cat Miller -- Pig lexer
|
||||
* Paul Miller -- LiveScript lexer
|
||||
|
@ -135,6 +150,7 @@ Other contributors, listed alphabetically, are:
|
|||
* Mher Movsisyan -- DTD lexer
|
||||
* Dejan Muhamedagic -- Crmsh lexer
|
||||
* Ana Nelson -- Ragel, ANTLR, R console lexers
|
||||
* Kurt Neufeld -- Markdown lexer
|
||||
* Nam T. Nguyen -- Monokai style
|
||||
* Jesper Noehr -- HTML formatter "anchorlinenos"
|
||||
* Mike Nolta -- Julia lexer
|
||||
|
@ -148,14 +164,20 @@ Other contributors, listed alphabetically, are:
|
|||
* Dominik Picheta -- Nimrod lexer
|
||||
* Andrew Pinkham -- RTF Formatter Refactoring
|
||||
* Clément Prévost -- UrbiScript lexer
|
||||
* Tanner Prynn -- cmdline -x option and loading lexers from files
|
||||
* Oleh Prypin -- Crystal lexer (based on Ruby lexer)
|
||||
* Xidorn Quan -- Web IDL lexer
|
||||
* Elias Rabel -- Fortran fixed form lexer
|
||||
* raichoo -- Idris lexer
|
||||
* Kashif Rasul -- CUDA lexer
|
||||
* Nathan Reed -- HLSL lexer
|
||||
* Justin Reidy -- MXML lexer
|
||||
* Norman Richards -- JSON lexer
|
||||
* Corey Richardson -- Rust lexer updates
|
||||
* Lubomir Rintel -- GoodData MAQL and CL lexers
|
||||
* Andre Roberge -- Tango style
|
||||
* Georg Rollinger -- HSAIL lexer
|
||||
* Michiel Roos -- TypoScript lexer
|
||||
* Konrad Rudolph -- LaTeX formatter enhancements
|
||||
* Mario Ruggier -- Evoque lexers
|
||||
* Miikka Salminen -- Lovelace style, Hexdump lexer, lexer enhancements
|
||||
|
@ -163,22 +185,28 @@ Other contributors, listed alphabetically, are:
|
|||
* Matteo Sasso -- Common Lisp lexer
|
||||
* Joe Schafer -- Ada lexer
|
||||
* Ken Schutte -- Matlab lexers
|
||||
* René Schwaiger -- Rainbow Dash style
|
||||
* Sebastian Schweizer -- Whiley lexer
|
||||
* Tassilo Schweyer -- Io, MOOCode lexers
|
||||
* Ted Shaw -- AutoIt lexer
|
||||
* Joerg Sieker -- ABAP lexer
|
||||
* Robert Simmons -- Standard ML lexer
|
||||
* Kirill Simonov -- YAML lexer
|
||||
* Corbin Simpson -- Monte lexer
|
||||
* Alexander Smishlajev -- Visual FoxPro lexer
|
||||
* Steve Spigarelli -- XQuery lexer
|
||||
* Jerome St-Louis -- eC lexer
|
||||
* Camil Staps -- Clean and NuSMV lexers; Solarized style
|
||||
* James Strachan -- Kotlin lexer
|
||||
* Tom Stuart -- Treetop lexer
|
||||
* Colin Sullivan -- SuperCollider lexer
|
||||
* Ben Swift -- Extempore lexer
|
||||
* Edoardo Tenani -- Arduino lexer
|
||||
* Tiberius Teng -- default style overhaul
|
||||
* Jeremy Thurgood -- Erlang, Squid config lexers
|
||||
* Brian Tiffin -- OpenCOBOL lexer
|
||||
* Bob Tolbert -- Hy lexer
|
||||
* Matthias Trute -- Forth lexer
|
||||
* Erick Tryzelaar -- Felix lexer
|
||||
* Alexander Udalov -- Kotlin lexer improvements
|
||||
* Thomas Van Doren -- Chapel lexer
|
||||
|
@ -186,6 +214,7 @@ Other contributors, listed alphabetically, are:
|
|||
* Abe Voelker -- OpenEdge ABL lexer
|
||||
* Pepijn de Vos -- HTML formatter CTags support
|
||||
* Matthias Vallentin -- Bro lexer
|
||||
* Benoît Vinot -- AMPL lexer
|
||||
* Linh Vu Hong -- RSL lexer
|
||||
* Nathan Weizenbaum -- Haml and Sass lexers
|
||||
* Nathan Whetsell -- Csound lexers
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Copyright (c) 2006-2015 by the respective authors (see AUTHORS file).
|
||||
Copyright (c) 2006-2019 by the respective authors (see AUTHORS file).
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
|
@ -1 +1 @@
|
|||
2.2.0
|
||||
2.5.2
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue