pygments.rb 2.3.1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/.rubocop.yml +7 -0
- data/CHANGELOG.adoc +4 -0
- data/README.adoc +1 -1
- data/bench.rb +1 -1
- data/lib/pygments/popen.rb +3 -7
- data/lib/pygments/version.rb +1 -1
- data/pygments.rb.gemspec +2 -2
- data/test/test_pygments.rb +0 -19
- data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/AUTHORS +21 -1
- data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/LICENSE +1 -1
- data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/METADATA +19 -11
- data/vendor/pygments-main/Pygments-2.15.1.dist-info/RECORD +614 -0
- data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/WHEEL +1 -1
- data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/entry_points.txt +0 -1
- data/vendor/pygments-main/bin/pygmentize +1 -1
- data/vendor/pygments-main/pygments/__init__.py +20 -22
- data/vendor/pygments-main/pygments/__main__.py +1 -1
- data/vendor/pygments-main/pygments/cmdline.py +74 -8
- data/vendor/pygments-main/pygments/console.py +1 -1
- data/vendor/pygments-main/pygments/filter.py +1 -1
- data/vendor/pygments-main/pygments/filters/__init__.py +6 -3
- data/vendor/pygments-main/pygments/formatter.py +41 -11
- data/vendor/pygments-main/pygments/formatters/__init__.py +21 -16
- data/vendor/pygments-main/pygments/formatters/_mapping.py +5 -65
- data/vendor/pygments-main/pygments/formatters/bbcode.py +1 -1
- data/vendor/pygments-main/pygments/formatters/groff.py +170 -0
- data/vendor/pygments-main/pygments/formatters/html.py +54 -32
- data/vendor/pygments-main/pygments/formatters/img.py +9 -5
- data/vendor/pygments-main/pygments/formatters/irc.py +6 -33
- data/vendor/pygments-main/pygments/formatters/latex.py +24 -14
- data/vendor/pygments-main/pygments/formatters/other.py +1 -1
- data/vendor/pygments-main/pygments/formatters/pangomarkup.py +1 -1
- data/vendor/pygments-main/pygments/formatters/rtf.py +1 -1
- data/vendor/pygments-main/pygments/formatters/svg.py +1 -1
- data/vendor/pygments-main/pygments/formatters/terminal.py +1 -3
- data/vendor/pygments-main/pygments/formatters/terminal256.py +2 -4
- data/vendor/pygments-main/pygments/lexer.py +101 -32
- data/vendor/pygments-main/pygments/lexers/__init__.py +50 -29
- data/vendor/pygments-main/pygments/lexers/_ada_builtins.py +103 -0
- data/vendor/pygments-main/pygments/lexers/_asy_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_cl_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_cocoa_builtins.py +2 -2
- data/vendor/pygments-main/pygments/lexers/_csound_builtins.py +21 -6
- data/vendor/pygments-main/pygments/lexers/_css_builtins.py +558 -0
- data/vendor/pygments-main/pygments/lexers/_julia_builtins.py +10 -0
- data/vendor/pygments-main/pygments/lexers/_lasso_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_lilypond_builtins.py +4932 -0
- data/vendor/pygments-main/pygments/lexers/_lua_builtins.py +11 -18
- data/vendor/pygments-main/pygments/lexers/_mapping.py +71 -82
- data/vendor/pygments-main/pygments/lexers/_mql_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_mysql_builtins.py +58 -4
- data/vendor/pygments-main/pygments/lexers/_openedge_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_php_builtins.py +408 -1835
- data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +70 -8
- data/vendor/pygments-main/pygments/lexers/_qlik_builtins.py +666 -0
- data/vendor/pygments-main/pygments/lexers/_scheme_builtins.py +1609 -0
- data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +3 -3
- data/vendor/pygments-main/pygments/lexers/_sourcemod_builtins.py +9 -18
- data/vendor/pygments-main/pygments/lexers/_stan_builtins.py +185 -94
- data/vendor/pygments-main/pygments/lexers/_stata_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_tsql_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_usd_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_vbscript_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_vim_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/actionscript.py +15 -14
- data/vendor/pygments-main/pygments/lexers/ada.py +144 -0
- data/vendor/pygments-main/pygments/lexers/agile.py +1 -1
- data/vendor/pygments-main/pygments/lexers/algebra.py +72 -9
- data/vendor/pygments-main/pygments/lexers/ambient.py +8 -7
- data/vendor/pygments-main/pygments/lexers/amdgpu.py +4 -3
- data/vendor/pygments-main/pygments/lexers/ampl.py +10 -8
- data/vendor/pygments-main/pygments/lexers/apdlexer.py +164 -20
- data/vendor/pygments-main/pygments/lexers/apl.py +6 -5
- data/vendor/pygments-main/pygments/lexers/archetype.py +23 -21
- data/vendor/pygments-main/pygments/lexers/arrow.py +10 -9
- data/vendor/pygments-main/pygments/lexers/arturo.py +250 -0
- data/vendor/pygments-main/pygments/lexers/asc.py +9 -5
- data/vendor/pygments-main/pygments/lexers/asm.py +68 -63
- data/vendor/pygments-main/pygments/lexers/automation.py +7 -5
- data/vendor/pygments-main/pygments/lexers/bare.py +20 -21
- data/vendor/pygments-main/pygments/lexers/basic.py +45 -41
- data/vendor/pygments-main/pygments/lexers/bdd.py +58 -0
- data/vendor/pygments-main/pygments/lexers/berry.py +99 -0
- data/vendor/pygments-main/pygments/lexers/bibtex.py +6 -6
- data/vendor/pygments-main/pygments/lexers/boa.py +4 -8
- data/vendor/pygments-main/pygments/lexers/business.py +18 -18
- data/vendor/pygments-main/pygments/lexers/c_cpp.py +80 -40
- data/vendor/pygments-main/pygments/lexers/c_like.py +21 -19
- data/vendor/pygments-main/pygments/lexers/capnproto.py +6 -8
- data/vendor/pygments-main/pygments/lexers/carbon.py +96 -0
- data/vendor/pygments-main/pygments/lexers/cddl.py +16 -33
- data/vendor/pygments-main/pygments/lexers/chapel.py +14 -9
- data/vendor/pygments-main/pygments/lexers/clean.py +3 -2
- data/vendor/pygments-main/pygments/lexers/comal.py +80 -0
- data/vendor/pygments-main/pygments/lexers/compiled.py +3 -2
- data/vendor/pygments-main/pygments/lexers/configs.py +235 -120
- data/vendor/pygments-main/pygments/lexers/console.py +5 -4
- data/vendor/pygments-main/pygments/lexers/cplint.py +44 -0
- data/vendor/pygments-main/pygments/lexers/crystal.py +22 -23
- data/vendor/pygments-main/pygments/lexers/csound.py +19 -17
- data/vendor/pygments-main/pygments/lexers/css.py +67 -159
- data/vendor/pygments-main/pygments/lexers/d.py +15 -12
- data/vendor/pygments-main/pygments/lexers/dalvik.py +14 -11
- data/vendor/pygments-main/pygments/lexers/data.py +119 -49
- data/vendor/pygments-main/pygments/lexers/dax.py +136 -0
- data/vendor/pygments-main/pygments/lexers/devicetree.py +9 -8
- data/vendor/pygments-main/pygments/lexers/diff.py +23 -19
- data/vendor/pygments-main/pygments/lexers/dotnet.py +216 -81
- data/vendor/pygments-main/pygments/lexers/dsls.py +86 -64
- data/vendor/pygments-main/pygments/lexers/dylan.py +16 -15
- data/vendor/pygments-main/pygments/lexers/ecl.py +46 -38
- data/vendor/pygments-main/pygments/lexers/eiffel.py +15 -10
- data/vendor/pygments-main/pygments/lexers/elm.py +12 -8
- data/vendor/pygments-main/pygments/lexers/elpi.py +165 -0
- data/vendor/pygments-main/pygments/lexers/email.py +21 -39
- data/vendor/pygments-main/pygments/lexers/erlang.py +21 -22
- data/vendor/pygments-main/pygments/lexers/esoteric.py +28 -30
- data/vendor/pygments-main/pygments/lexers/ezhil.py +10 -9
- data/vendor/pygments-main/pygments/lexers/factor.py +104 -83
- data/vendor/pygments-main/pygments/lexers/fantom.py +31 -29
- data/vendor/pygments-main/pygments/lexers/felix.py +18 -14
- data/vendor/pygments-main/pygments/lexers/fift.py +67 -0
- data/vendor/pygments-main/pygments/lexers/floscript.py +7 -7
- data/vendor/pygments-main/pygments/lexers/forth.py +8 -6
- data/vendor/pygments-main/pygments/lexers/fortran.py +16 -11
- data/vendor/pygments-main/pygments/lexers/foxpro.py +2 -2
- data/vendor/pygments-main/pygments/lexers/freefem.py +7 -10
- data/vendor/pygments-main/pygments/lexers/func.py +108 -0
- data/vendor/pygments-main/pygments/lexers/functional.py +1 -1
- data/vendor/pygments-main/pygments/lexers/futhark.py +12 -17
- data/vendor/pygments-main/pygments/lexers/gcodelexer.py +1 -2
- data/vendor/pygments-main/pygments/lexers/gdscript.py +76 -233
- data/vendor/pygments-main/pygments/lexers/go.py +12 -14
- data/vendor/pygments-main/pygments/lexers/grammar_notation.py +22 -26
- data/vendor/pygments-main/pygments/lexers/graph.py +36 -15
- data/vendor/pygments-main/pygments/lexers/graphics.py +37 -38
- data/vendor/pygments-main/pygments/lexers/graphviz.py +2 -1
- data/vendor/pygments-main/pygments/lexers/gsql.py +39 -27
- data/vendor/pygments-main/pygments/lexers/haskell.py +73 -71
- data/vendor/pygments-main/pygments/lexers/haxe.py +13 -11
- data/vendor/pygments-main/pygments/lexers/hdl.py +31 -34
- data/vendor/pygments-main/pygments/lexers/hexdump.py +21 -21
- data/vendor/pygments-main/pygments/lexers/html.py +11 -19
- data/vendor/pygments-main/pygments/lexers/idl.py +10 -5
- data/vendor/pygments-main/pygments/lexers/igor.py +3 -2
- data/vendor/pygments-main/pygments/lexers/inferno.py +9 -8
- data/vendor/pygments-main/pygments/lexers/installers.py +39 -33
- data/vendor/pygments-main/pygments/lexers/int_fiction.py +35 -20
- data/vendor/pygments-main/pygments/lexers/iolang.py +9 -9
- data/vendor/pygments-main/pygments/lexers/j.py +20 -13
- data/vendor/pygments-main/pygments/lexers/javascript.py +183 -149
- data/vendor/pygments-main/pygments/lexers/jmespath.py +68 -0
- data/vendor/pygments-main/pygments/lexers/jslt.py +4 -3
- data/vendor/pygments-main/pygments/lexers/jsonnet.py +168 -0
- data/vendor/pygments-main/pygments/lexers/julia.py +44 -32
- data/vendor/pygments-main/pygments/lexers/jvm.py +161 -140
- data/vendor/pygments-main/pygments/lexers/kuin.py +93 -59
- data/vendor/pygments-main/pygments/lexers/lilypond.py +226 -0
- data/vendor/pygments-main/pygments/lexers/lisp.py +244 -107
- data/vendor/pygments-main/pygments/lexers/macaulay2.py +1739 -0
- data/vendor/pygments-main/pygments/lexers/make.py +21 -16
- data/vendor/pygments-main/pygments/lexers/markup.py +752 -11
- data/vendor/pygments-main/pygments/lexers/math.py +1 -1
- data/vendor/pygments-main/pygments/lexers/matlab.py +18 -3
- data/vendor/pygments-main/pygments/lexers/maxima.py +85 -0
- data/vendor/pygments-main/pygments/lexers/meson.py +10 -25
- data/vendor/pygments-main/pygments/lexers/mime.py +2 -2
- data/vendor/pygments-main/pygments/lexers/minecraft.py +394 -0
- data/vendor/pygments-main/pygments/lexers/mips.py +128 -0
- data/vendor/pygments-main/pygments/lexers/ml.py +9 -6
- data/vendor/pygments-main/pygments/lexers/modeling.py +12 -8
- data/vendor/pygments-main/pygments/lexers/modula2.py +3 -2
- data/vendor/pygments-main/pygments/lexers/monte.py +3 -2
- data/vendor/pygments-main/pygments/lexers/mosel.py +1 -1
- data/vendor/pygments-main/pygments/lexers/ncl.py +1 -1
- data/vendor/pygments-main/pygments/lexers/nimrod.py +62 -20
- data/vendor/pygments-main/pygments/lexers/nit.py +3 -2
- data/vendor/pygments-main/pygments/lexers/nix.py +5 -5
- data/vendor/pygments-main/pygments/lexers/oberon.py +2 -2
- data/vendor/pygments-main/pygments/lexers/objective.py +6 -4
- data/vendor/pygments-main/pygments/lexers/ooc.py +3 -2
- data/vendor/pygments-main/pygments/lexers/other.py +1 -1
- data/vendor/pygments-main/pygments/lexers/parasail.py +3 -2
- data/vendor/pygments-main/pygments/lexers/parsers.py +23 -21
- data/vendor/pygments-main/pygments/lexers/pascal.py +196 -198
- data/vendor/pygments-main/pygments/lexers/pawn.py +1 -1
- data/vendor/pygments-main/pygments/lexers/perl.py +17 -15
- data/vendor/pygments-main/pygments/lexers/phix.py +364 -0
- data/vendor/pygments-main/pygments/lexers/php.py +35 -20
- data/vendor/pygments-main/pygments/lexers/pointless.py +3 -2
- data/vendor/pygments-main/pygments/lexers/pony.py +1 -1
- data/vendor/pygments-main/pygments/lexers/praat.py +41 -38
- data/vendor/pygments-main/pygments/lexers/procfile.py +2 -3
- data/vendor/pygments-main/pygments/lexers/prolog.py +7 -8
- data/vendor/pygments-main/pygments/lexers/promql.py +5 -12
- data/vendor/pygments-main/pygments/lexers/python.py +145 -119
- data/vendor/pygments-main/pygments/lexers/q.py +188 -0
- data/vendor/pygments-main/pygments/lexers/qlik.py +117 -0
- data/vendor/pygments-main/pygments/lexers/qvt.py +1 -1
- data/vendor/pygments-main/pygments/lexers/r.py +4 -4
- data/vendor/pygments-main/pygments/lexers/rdf.py +3 -3
- data/vendor/pygments-main/pygments/lexers/rebol.py +1 -12
- data/vendor/pygments-main/pygments/lexers/resource.py +1 -1
- data/vendor/pygments-main/pygments/lexers/ride.py +3 -2
- data/vendor/pygments-main/pygments/lexers/rita.py +43 -0
- data/vendor/pygments-main/pygments/lexers/rnc.py +3 -2
- data/vendor/pygments-main/pygments/lexers/roboconf.py +3 -3
- data/vendor/pygments-main/pygments/lexers/robotframework.py +6 -5
- data/vendor/pygments-main/pygments/lexers/ruby.py +24 -24
- data/vendor/pygments-main/pygments/lexers/rust.py +3 -2
- data/vendor/pygments-main/pygments/lexers/sas.py +2 -2
- data/vendor/pygments-main/pygments/lexers/savi.py +170 -0
- data/vendor/pygments-main/pygments/lexers/scdoc.py +4 -7
- data/vendor/pygments-main/pygments/lexers/scripting.py +24 -21
- data/vendor/pygments-main/pygments/lexers/sgf.py +6 -6
- data/vendor/pygments-main/pygments/lexers/shell.py +29 -21
- data/vendor/pygments-main/pygments/lexers/sieve.py +14 -4
- data/vendor/pygments-main/pygments/lexers/slash.py +1 -1
- data/vendor/pygments-main/pygments/lexers/smalltalk.py +5 -3
- data/vendor/pygments-main/pygments/lexers/smithy.py +5 -6
- data/vendor/pygments-main/pygments/lexers/smv.py +1 -1
- data/vendor/pygments-main/pygments/lexers/snobol.py +1 -1
- data/vendor/pygments-main/pygments/lexers/solidity.py +3 -7
- data/vendor/pygments-main/pygments/lexers/sophia.py +103 -0
- data/vendor/pygments-main/pygments/lexers/special.py +2 -5
- data/vendor/pygments-main/pygments/lexers/spice.py +71 -0
- data/vendor/pygments-main/pygments/lexers/sql.py +212 -17
- data/vendor/pygments-main/pygments/lexers/srcinfo.py +62 -0
- data/vendor/pygments-main/pygments/lexers/stata.py +4 -3
- data/vendor/pygments-main/pygments/lexers/supercollider.py +4 -3
- data/vendor/pygments-main/pygments/lexers/tal.py +74 -0
- data/vendor/pygments-main/pygments/lexers/tcl.py +21 -16
- data/vendor/pygments-main/pygments/lexers/teal.py +9 -8
- data/vendor/pygments-main/pygments/lexers/templates.py +62 -29
- data/vendor/pygments-main/pygments/lexers/teraterm.py +12 -20
- data/vendor/pygments-main/pygments/lexers/testing.py +6 -2
- data/vendor/pygments-main/pygments/lexers/text.py +3 -2
- data/vendor/pygments-main/pygments/lexers/textedit.py +41 -7
- data/vendor/pygments-main/pygments/lexers/textfmts.py +7 -5
- data/vendor/pygments-main/pygments/lexers/theorem.py +42 -36
- data/vendor/pygments-main/pygments/lexers/thingsdb.py +2 -4
- data/vendor/pygments-main/pygments/lexers/tlb.py +57 -0
- data/vendor/pygments-main/pygments/lexers/tnt.py +3 -4
- data/vendor/pygments-main/pygments/lexers/trafficscript.py +2 -4
- data/vendor/pygments-main/pygments/lexers/typoscript.py +2 -3
- data/vendor/pygments-main/pygments/lexers/ul4.py +267 -0
- data/vendor/pygments-main/pygments/lexers/unicon.py +1 -1
- data/vendor/pygments-main/pygments/lexers/urbi.py +4 -4
- data/vendor/pygments-main/pygments/lexers/usd.py +2 -1
- data/vendor/pygments-main/pygments/lexers/varnish.py +5 -5
- data/vendor/pygments-main/pygments/lexers/verification.py +4 -3
- data/vendor/pygments-main/pygments/lexers/web.py +1 -1
- data/vendor/pygments-main/pygments/lexers/webassembly.py +5 -5
- data/vendor/pygments-main/pygments/lexers/webidl.py +2 -1
- data/vendor/pygments-main/pygments/lexers/webmisc.py +90 -71
- data/vendor/pygments-main/pygments/lexers/wgsl.py +407 -0
- data/vendor/pygments-main/pygments/lexers/whiley.py +2 -1
- data/vendor/pygments-main/pygments/lexers/wowtoc.py +120 -0
- data/vendor/pygments-main/pygments/lexers/wren.py +99 -0
- data/vendor/pygments-main/pygments/lexers/x10.py +5 -6
- data/vendor/pygments-main/pygments/lexers/xorg.py +3 -2
- data/vendor/pygments-main/pygments/lexers/yang.py +6 -5
- data/vendor/pygments-main/pygments/lexers/zig.py +3 -2
- data/vendor/pygments-main/pygments/modeline.py +1 -1
- data/vendor/pygments-main/pygments/plugin.py +28 -9
- data/vendor/pygments-main/pygments/regexopt.py +1 -1
- data/vendor/pygments-main/pygments/scanner.py +2 -2
- data/vendor/pygments-main/pygments/sphinxext.py +63 -1
- data/vendor/pygments-main/pygments/style.py +7 -1
- data/vendor/pygments-main/pygments/styles/__init__.py +19 -5
- data/vendor/pygments-main/pygments/styles/abap.py +2 -2
- data/vendor/pygments-main/pygments/styles/algol.py +1 -2
- data/vendor/pygments-main/pygments/styles/algol_nu.py +1 -2
- data/vendor/pygments-main/pygments/styles/arduino.py +2 -3
- data/vendor/pygments-main/pygments/styles/autumn.py +1 -3
- data/vendor/pygments-main/pygments/styles/borland.py +1 -3
- data/vendor/pygments-main/pygments/styles/bw.py +1 -2
- data/vendor/pygments-main/pygments/styles/colorful.py +1 -3
- data/vendor/pygments-main/pygments/styles/default.py +13 -14
- data/vendor/pygments-main/pygments/styles/dracula.py +102 -0
- data/vendor/pygments-main/pygments/styles/emacs.py +1 -2
- data/vendor/pygments-main/pygments/styles/friendly.py +1 -2
- data/vendor/pygments-main/pygments/styles/friendly_grayscale.py +75 -0
- data/vendor/pygments-main/pygments/styles/fruity.py +1 -1
- data/vendor/pygments-main/pygments/styles/gh_dark.py +107 -0
- data/vendor/pygments-main/pygments/styles/gruvbox.py +4 -2
- data/vendor/pygments-main/pygments/styles/igor.py +1 -2
- data/vendor/pygments-main/pygments/styles/inkpot.py +3 -2
- data/vendor/pygments-main/pygments/styles/lilypond.py +56 -0
- data/vendor/pygments-main/pygments/styles/lovelace.py +1 -3
- data/vendor/pygments-main/pygments/styles/manni.py +1 -1
- data/vendor/pygments-main/pygments/styles/material.py +1 -2
- data/vendor/pygments-main/pygments/styles/monokai.py +3 -3
- data/vendor/pygments-main/pygments/styles/murphy.py +1 -3
- data/vendor/pygments-main/pygments/styles/native.py +11 -11
- data/vendor/pygments-main/pygments/styles/nord.py +150 -0
- data/vendor/pygments-main/pygments/styles/onedark.py +59 -0
- data/vendor/pygments-main/pygments/styles/paraiso_dark.py +1 -6
- data/vendor/pygments-main/pygments/styles/paraiso_light.py +1 -6
- data/vendor/pygments-main/pygments/styles/pastie.py +1 -3
- data/vendor/pygments-main/pygments/styles/perldoc.py +1 -2
- data/vendor/pygments-main/pygments/styles/rainbow_dash.py +3 -3
- data/vendor/pygments-main/pygments/styles/rrt.py +3 -2
- data/vendor/pygments-main/pygments/styles/sas.py +2 -4
- data/vendor/pygments-main/pygments/styles/solarized.py +1 -1
- data/vendor/pygments-main/pygments/styles/staroffice.py +26 -0
- data/vendor/pygments-main/pygments/styles/stata_dark.py +4 -6
- data/vendor/pygments-main/pygments/styles/stata_light.py +1 -2
- data/vendor/pygments-main/pygments/styles/tango.py +2 -3
- data/vendor/pygments-main/pygments/styles/trac.py +1 -3
- data/vendor/pygments-main/pygments/styles/vim.py +1 -2
- data/vendor/pygments-main/pygments/styles/vs.py +1 -2
- data/vendor/pygments-main/pygments/styles/xcode.py +1 -3
- data/vendor/pygments-main/pygments/styles/zenburn.py +4 -6
- data/vendor/pygments-main/pygments/token.py +2 -1
- data/vendor/pygments-main/pygments/unistring.py +4 -6
- data/vendor/pygments-main/pygments/util.py +27 -5
- metadata +59 -14
- data/vendor/pygments-main/Pygments-2.10.0.dist-info/RECORD +0 -524
- /data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/INSTALLER +0 -0
- /data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/REQUESTED +0 -0
- /data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/top_level.txt +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06ee50536364c613df97577b86bb28e455c9e53357777f3a3b345740a68d2360
|
4
|
+
data.tar.gz: def24e3a74fb3f257cdec0c29bc8a511f67db9e077a595ff6c00ff8ee9a79428
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e8bcb9c40aced27415227b43b978fd475c6b1c7d6825c294cb5b09bcf9991f2ec77eb5f8fb221fd9f7b5a78f26b07a319ef1af253aea6ad25669544d76ae5d3
|
7
|
+
data.tar.gz: f1b7d381a6244ffca240919bb81a527b373b73689ea31d04fac7153d20dd68b9ce79d8acbb09f3ad9d1ccf816c1be83b85e6777e889192d94394c6464a193298
|
data/.github/workflows/ci.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
AllCops:
|
2
|
+
NewCops: enable
|
3
|
+
TargetRubyVersion: 2.5
|
4
|
+
Gemspec/RequireMFA:
|
5
|
+
Enabled: false
|
1
6
|
Metrics/AbcSize:
|
2
7
|
Enabled: false
|
3
8
|
Metrics/BlockLength:
|
@@ -10,6 +15,8 @@ Layout/LineLength:
|
|
10
15
|
Max: 120
|
11
16
|
Metrics/MethodLength:
|
12
17
|
Enabled: false
|
18
|
+
Metrics/PerceivedComplexity:
|
19
|
+
Enabled: false
|
13
20
|
Style/StructInheritance:
|
14
21
|
Enabled: false
|
15
22
|
Style/Documentation:
|
data/CHANGELOG.adoc
CHANGED
@@ -5,6 +5,10 @@
|
|
5
5
|
This document provides a high-level view of the changes to the {project-name} by release.
|
6
6
|
For a detailed view of what has changed, refer to the {uri-repo}/commits/master[commit history] on GitHub.
|
7
7
|
|
8
|
+
== 2.4.0
|
9
|
+
|
10
|
+
* Update Pygments to 2.15.1
|
11
|
+
|
8
12
|
== 2.3.1 (2022-12-04) - @slonopotamus
|
9
13
|
|
10
14
|
* Fix bogus search for Python executable ({uri-repo})/issues/242[#242])
|
data/README.adoc
CHANGED
data/bench.rb
CHANGED
@@ -9,7 +9,7 @@ num = ARGV[0] ? ARGV[0].to_i : 10
|
|
9
9
|
# we can also repeat the code itself
|
10
10
|
repeats = ARGV[1] ? ARGV[1].to_i : 1
|
11
11
|
|
12
|
-
code = File.
|
12
|
+
code = File.read('test/test_pygments.rb') * repeats
|
13
13
|
|
14
14
|
puts "Benchmarking....\n"
|
15
15
|
puts "Size: #{code.bytesize} bytes\n"
|
data/lib/pygments/popen.rb
CHANGED
@@ -17,7 +17,7 @@ module Pygments
|
|
17
17
|
# Python process that talks to the Pygments library. We'll talk back and
|
18
18
|
# forth across this pipe.
|
19
19
|
def start(pygments_path = File.join(__dir__, '..', '..', 'vendor', 'pygments-main'))
|
20
|
-
@log = Logger.new(ENV
|
20
|
+
@log = Logger.new(ENV.fetch('MENTOS_LOG', File::NULL))
|
21
21
|
@log.level = Logger::INFO
|
22
22
|
@log.datetime_format = '%Y-%m-%d %H:%M '
|
23
23
|
|
@@ -276,7 +276,7 @@ module Pygments
|
|
276
276
|
raise Errno::EPIPE, %(Failed to read response from Python process on a mentos #{method} call)
|
277
277
|
end
|
278
278
|
|
279
|
-
header_len = header_len_bytes.
|
279
|
+
header_len = header_len_bytes.unpack1('N')
|
280
280
|
@log.info "Size in: #{header_len}"
|
281
281
|
header = @out.read(header_len)
|
282
282
|
|
@@ -323,11 +323,7 @@ module Pygments
|
|
323
323
|
def get_timeout(timeout)
|
324
324
|
return timeout unless timeout.nil?
|
325
325
|
|
326
|
-
|
327
|
-
Integer(ENV['MENTOS_TIMEOUT'])
|
328
|
-
rescue TypeError
|
329
|
-
0
|
330
|
-
end
|
326
|
+
Integer(ENV.fetch('MENTOS_TIMEOUT', 0))
|
331
327
|
end
|
332
328
|
|
333
329
|
# Based on the header we receive, determine if we need
|
data/lib/pygments/version.rb
CHANGED
data/pygments.rb.gemspec
CHANGED
@@ -22,10 +22,10 @@ Gem::Specification.new do |s|
|
|
22
22
|
'source_code_uri' => s.homepage
|
23
23
|
}
|
24
24
|
|
25
|
-
s.required_ruby_version = '>= 2.
|
25
|
+
s.required_ruby_version = '>= 2.5.0'
|
26
26
|
|
27
27
|
s.add_development_dependency 'rake', '~> 13.0.0'
|
28
|
-
s.add_development_dependency 'rubocop', '~>
|
28
|
+
s.add_development_dependency 'rubocop', '~> 1.28.2'
|
29
29
|
s.add_development_dependency 'test-unit', '~> 3.5.0'
|
30
30
|
|
31
31
|
s.files = `git ls-files -z`.split("\0").reject { |f| File.symlink?(f) }
|
data/test/test_pygments.rb
CHANGED
@@ -20,14 +20,6 @@ class PygmentsHighlightTest < Test::Unit::TestCase
|
|
20
20
|
assert_equal '<div class', code[0..9]
|
21
21
|
end
|
22
22
|
|
23
|
-
def test_full_html_highlight
|
24
|
-
code = P.highlight(RUBY_CODE)
|
25
|
-
assert_match '<span class="ch">#!/usr/bin/ruby</span>', code
|
26
|
-
assert_equal %(<div class="highlight"><pre><span></span><span class="ch">#!/usr/bin/ruby</span>
|
27
|
-
<span class="nb">puts</span> <span class="s1">'foo'</span>
|
28
|
-
</pre></div>), code
|
29
|
-
end
|
30
|
-
|
31
23
|
def test_highlight_works_with_larger_files
|
32
24
|
code = P.highlight(TEST_CODE)
|
33
25
|
assert_match 'Main loop, waiting for inputs on stdin', code
|
@@ -71,11 +63,6 @@ class PygmentsHighlightTest < Test::Unit::TestCase
|
|
71
63
|
assert_match 'ø..ø', code
|
72
64
|
end
|
73
65
|
|
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
|
-
|
79
66
|
def test_highlight_formatter_terminal
|
80
67
|
code = P.highlight(RUBY_CODE, formatter: 'terminal')
|
81
68
|
assert_match '39;49;00m', code
|
@@ -182,8 +169,6 @@ class PygmentsLexerClassTest < Test::Unit::TestCase
|
|
182
169
|
assert_equal P::Lexer['Ruby'], P::Lexer.find_by_extname('.rb')
|
183
170
|
assert_equal P::Lexer['PHP'], P::Lexer.find_by_extname('.php4')
|
184
171
|
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')
|
187
172
|
assert_equal P::Lexer['C'], P::Lexer.find_by_extname('.c')
|
188
173
|
assert_equal P::Lexer['Python'], P::Lexer.find_by_extname('.py')
|
189
174
|
assert_equal P::Lexer['Java'], P::Lexer.find_by_extname('.java')
|
@@ -215,10 +200,6 @@ class PygmentsCssTest < Test::Unit::TestCase
|
|
215
200
|
assert_match(/^\.mycode \.codeerr \{/, P.css('.mycode', classprefix: 'code'))
|
216
201
|
end
|
217
202
|
|
218
|
-
def test_css_default
|
219
|
-
assert_match '.c { color: #408080; font-style: italic }', P.css
|
220
|
-
end
|
221
|
-
|
222
203
|
def test_css_colorful
|
223
204
|
assert_match '.c { color: #888888 }', P.css(style: 'colorful')
|
224
205
|
end
|
@@ -6,15 +6,18 @@ Major developers are Tim Hatch <tim@timhatch.com> and Armin Ronacher
|
|
6
6
|
Other contributors, listed alphabetically, are:
|
7
7
|
|
8
8
|
* Sam Aaron -- Ioke lexer
|
9
|
+
* Jean Abou Samra -- LilyPond lexer
|
9
10
|
* João Abecasis -- JSLT lexer
|
10
11
|
* Ali Afshar -- image formatter
|
11
12
|
* Thomas Aglassinger -- Easytrieve, JCL, Rexx, Transact-SQL and VBScript
|
12
13
|
lexers
|
14
|
+
* Maxence Ahlouche -- PostgreSQL Explain lexer
|
13
15
|
* Muthiah Annamalai -- Ezhil lexer
|
14
16
|
* Kumar Appaiah -- Debian control lexer
|
15
17
|
* Andreas Amann -- AppleScript lexer
|
16
18
|
* Timothy Armstrong -- Dart lexer fixes
|
17
19
|
* Jeffrey Arnold -- R/S, Rd, BUGS, Jags, and Stan lexers
|
20
|
+
* Eiríkr Åsheim -- Uxntal lexer
|
18
21
|
* Jeremy Ashkenas -- CoffeeScript lexer
|
19
22
|
* José Joaquín Atria -- Praat lexer
|
20
23
|
* Stefan Matthias Aust -- Smalltalk lexer
|
@@ -49,6 +52,7 @@ Other contributors, listed alphabetically, are:
|
|
49
52
|
* Pete Curry -- bugfixes
|
50
53
|
* Bryan Davis -- EBNF lexer
|
51
54
|
* Bruno Deferrari -- Shen lexer
|
55
|
+
* Walter Dörwald -- UL4 lexer
|
52
56
|
* Luke Drummond -- Meson lexer
|
53
57
|
* Giedrius Dubinskas -- HTML formatter improvements
|
54
58
|
* Owen Durni -- Haxe lexer
|
@@ -117,6 +121,7 @@ Other contributors, listed alphabetically, are:
|
|
117
121
|
* Gerwin Klein -- Isabelle lexer
|
118
122
|
* Eric Knibbe -- Lasso lexer
|
119
123
|
* Stepan Koltsov -- Clay lexer
|
124
|
+
* Oliver Kopp - Friendly grayscale style
|
120
125
|
* Adam Koprowski -- Opa lexer
|
121
126
|
* Benjamin Kowarsch -- Modula-2 lexer
|
122
127
|
* Domen Kožar -- Nix lexer
|
@@ -132,18 +137,21 @@ Other contributors, listed alphabetically, are:
|
|
132
137
|
* Sylvestre Ledru -- Scilab lexer
|
133
138
|
* Chee Sing Lee -- Flatline lexer
|
134
139
|
* Mark Lee -- Vala lexer
|
140
|
+
* Pete Lomax -- Phix lexer
|
135
141
|
* Valentin Lorentz -- C++ lexer improvements
|
136
142
|
* Ben Mabey -- Gherkin lexer
|
137
143
|
* Angus MacArthur -- QML lexer
|
138
144
|
* Louis Mandel -- X10 lexer
|
139
145
|
* Louis Marchand -- Eiffel lexer
|
140
146
|
* Simone Margaritelli -- Hybris lexer
|
147
|
+
* Tim Martin - World of Warcraft TOC lexer
|
141
148
|
* Kirk McDonald -- D lexer
|
142
149
|
* Gordon McGregor -- SystemVerilog lexer
|
143
150
|
* Stephen McKamey -- Duel/JBST lexer
|
144
151
|
* Brian McKenna -- F# lexer
|
145
152
|
* Charles McLaughlin -- Puppet lexer
|
146
|
-
* Kurt McKee -- Tera Term macro lexer, PostgreSQL updates, MySQL overhaul
|
153
|
+
* Kurt McKee -- Tera Term macro lexer, PostgreSQL updates, MySQL overhaul, JSON lexer
|
154
|
+
* Joe Eli McIlvain -- Savi lexer
|
147
155
|
* Lukas Meuser -- BBCode formatter, Lua lexer
|
148
156
|
* Cat Miller -- Pig lexer
|
149
157
|
* Paul Miller -- LiveScript lexer
|
@@ -155,7 +163,9 @@ Other contributors, listed alphabetically, are:
|
|
155
163
|
* Paulo Moura -- Logtalk lexer
|
156
164
|
* Mher Movsisyan -- DTD lexer
|
157
165
|
* Dejan Muhamedagic -- Crmsh lexer
|
166
|
+
* Adrien Nayrat -- PostgreSQL Explain lexer
|
158
167
|
* Ana Nelson -- Ragel, ANTLR, R console lexers
|
168
|
+
* David Neto, Google LLC -- WebGPU Shading Language lexer
|
159
169
|
* Kurt Neufeld -- Markdown lexer
|
160
170
|
* Nam T. Nguyen -- Monokai style
|
161
171
|
* Jesper Noehr -- HTML formatter "anchorlinenos"
|
@@ -173,6 +183,7 @@ Other contributors, listed alphabetically, are:
|
|
173
183
|
* Clément Prévost -- UrbiScript lexer
|
174
184
|
* Tanner Prynn -- cmdline -x option and loading lexers from files
|
175
185
|
* Oleh Prypin -- Crystal lexer (based on Ruby lexer)
|
186
|
+
* Nick Psaris -- K and Q lexers
|
176
187
|
* Xidorn Quan -- Web IDL lexer
|
177
188
|
* Elias Rabel -- Fortran fixed form lexer
|
178
189
|
* raichoo -- Idris lexer
|
@@ -182,6 +193,7 @@ Other contributors, listed alphabetically, are:
|
|
182
193
|
* Justin Reidy -- MXML lexer
|
183
194
|
* Norman Richards -- JSON lexer
|
184
195
|
* Corey Richardson -- Rust lexer updates
|
196
|
+
* Fabrizio Riguzzi -- cplint leder
|
185
197
|
* Lubomir Rintel -- GoodData MAQL and CL lexers
|
186
198
|
* Andre Roberge -- Tango style
|
187
199
|
* Georg Rollinger -- HSAIL lexer
|
@@ -193,6 +205,7 @@ Other contributors, listed alphabetically, are:
|
|
193
205
|
* Matteo Sasso -- Common Lisp lexer
|
194
206
|
* Joe Schafer -- Ada lexer
|
195
207
|
* Max Schillinger -- TiddlyWiki5 lexer
|
208
|
+
* Andrew Schmidt -- X++ lexer
|
196
209
|
* Ken Schutte -- Matlab lexers
|
197
210
|
* René Schwaiger -- Rainbow Dash style
|
198
211
|
* Sebastian Schweizer -- Whiley lexer
|
@@ -218,7 +231,9 @@ Other contributors, listed alphabetically, are:
|
|
218
231
|
* Jeremy Thurgood -- Erlang, Squid config lexers
|
219
232
|
* Brian Tiffin -- OpenCOBOL lexer
|
220
233
|
* Bob Tolbert -- Hy lexer
|
234
|
+
* Doug Torrance -- Macaulay2 lexer
|
221
235
|
* Matthias Trute -- Forth lexer
|
236
|
+
* Tuoa Spi T4 -- Bdd lexer
|
222
237
|
* Erick Tryzelaar -- Felix lexer
|
223
238
|
* Alexander Udalov -- Kotlin lexer improvements
|
224
239
|
* Thomas Van Doren -- Chapel lexer
|
@@ -246,5 +261,10 @@ Other contributors, listed alphabetically, are:
|
|
246
261
|
* Fabian Neumann -- CDDL lexer
|
247
262
|
* Thomas Duboucher -- CDDL lexer
|
248
263
|
* Philipp Imhof -- Pango Markup formatter
|
264
|
+
* Thomas Voss -- Sed lexer
|
265
|
+
* Martin Fischer -- WCAG contrast testing
|
266
|
+
* Marc Auberer -- Spice lexer
|
267
|
+
* Amr Hesham -- Carbon lexer
|
268
|
+
* diskdance -- Wikitext lexer
|
249
269
|
|
250
270
|
Many thanks for all contributions!
|
@@ -1,13 +1,17 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: Pygments
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.15.1
|
4
4
|
Summary: Pygments is a syntax highlighting package written in Python.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
License: BSD
|
5
|
+
Author-email: Georg Brandl <georg@python.org>
|
6
|
+
Maintainer: Matthäus G. Chajdas
|
7
|
+
Maintainer-email: Georg Brandl <georg@python.org>, Jean Abou Samra <jean@abou-samra.fr>
|
8
|
+
License: BSD-2-Clause
|
9
|
+
Project-URL: Homepage, https://pygments.org
|
10
|
+
Project-URL: Documentation, https://pygments.org/docs
|
11
|
+
Project-URL: Source, https://github.com/pygments/pygments
|
12
|
+
Project-URL: Bug Tracker, https://github.com/pygments/pygments/issues
|
13
|
+
Project-URL: Changelog, https://github.com/pygments/pygments/blob/master/CHANGES
|
9
14
|
Keywords: syntax highlighting
|
10
|
-
Platform: any
|
11
15
|
Classifier: Development Status :: 6 - Mature
|
12
16
|
Classifier: Intended Audience :: Developers
|
13
17
|
Classifier: Intended Audience :: End Users/Desktop
|
@@ -16,16 +20,21 @@ Classifier: License :: OSI Approved :: BSD License
|
|
16
20
|
Classifier: Operating System :: OS Independent
|
17
21
|
Classifier: Programming Language :: Python
|
18
22
|
Classifier: Programming Language :: Python :: 3
|
19
|
-
Classifier: Programming Language :: Python :: 3.5
|
20
|
-
Classifier: Programming Language :: Python :: 3.6
|
21
23
|
Classifier: Programming Language :: Python :: 3.7
|
22
24
|
Classifier: Programming Language :: Python :: 3.8
|
23
25
|
Classifier: Programming Language :: Python :: 3.9
|
26
|
+
Classifier: Programming Language :: Python :: 3.10
|
27
|
+
Classifier: Programming Language :: Python :: 3.11
|
24
28
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
25
29
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
26
30
|
Classifier: Topic :: Text Processing :: Filters
|
27
31
|
Classifier: Topic :: Utilities
|
28
|
-
Requires-Python: >=3.
|
32
|
+
Requires-Python: >=3.7
|
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'
|
29
38
|
|
30
39
|
Pygments
|
31
40
|
~~~~~~~~
|
@@ -43,6 +52,5 @@ are:
|
|
43
52
|
formats that PIL supports and ANSI sequences
|
44
53
|
* it is usable as a command-line tool and as a library
|
45
54
|
|
46
|
-
Copyright 2006-
|
55
|
+
Copyright 2006-2023 by the Pygments team, see ``AUTHORS``.
|
47
56
|
Licensed under the BSD, see ``LICENSE`` for details.
|
48
|
-
|