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
@@ -8,7 +8,7 @@
|
|
8
8
|
Created with Base16 Builder by Chris Kempson
|
9
9
|
(https://github.com/chriskempson/base16-builder).
|
10
10
|
|
11
|
-
:copyright: Copyright 2006-
|
11
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
12
12
|
:license: BSD, see LICENSE for details.
|
13
13
|
"""
|
14
14
|
|
@@ -33,11 +33,6 @@ PURPLE = "#815ba4"
|
|
33
33
|
|
34
34
|
class ParaisoDarkStyle(Style):
|
35
35
|
|
36
|
-
default_style = ''
|
37
|
-
|
38
|
-
background_color = BACKGROUND
|
39
|
-
highlight_color = SELECTION
|
40
|
-
|
41
36
|
background_color = BACKGROUND
|
42
37
|
highlight_color = SELECTION
|
43
38
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
Created with Base16 Builder by Chris Kempson
|
9
9
|
(https://github.com/chriskempson/base16-builder).
|
10
10
|
|
11
|
-
:copyright: Copyright 2006-
|
11
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
12
12
|
:license: BSD, see LICENSE for details.
|
13
13
|
"""
|
14
14
|
|
@@ -33,11 +33,6 @@ PURPLE = "#815ba4"
|
|
33
33
|
|
34
34
|
class ParaisoLightStyle(Style):
|
35
35
|
|
36
|
-
default_style = ''
|
37
|
-
|
38
|
-
background_color = BACKGROUND
|
39
|
-
highlight_color = SELECTION
|
40
|
-
|
41
36
|
background_color = BACKGROUND
|
42
37
|
highlight_color = SELECTION
|
43
38
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
.. _pastie: http://pastie.caboo.se/
|
8
8
|
|
9
|
-
:copyright: Copyright 2006-
|
9
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
10
10
|
:license: BSD, see LICENSE for details.
|
11
11
|
"""
|
12
12
|
|
@@ -20,8 +20,6 @@ class PastieStyle(Style):
|
|
20
20
|
Style similar to the pastie default style.
|
21
21
|
"""
|
22
22
|
|
23
|
-
default_style = ''
|
24
|
-
|
25
23
|
styles = {
|
26
24
|
Whitespace: '#bbbbbb',
|
27
25
|
Comment: '#888888',
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
.. _perldoc: http://perldoc.perl.org/
|
8
8
|
|
9
|
-
:copyright: Copyright 2006-
|
9
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
10
10
|
:license: BSD, see LICENSE for details.
|
11
11
|
"""
|
12
12
|
|
@@ -21,7 +21,6 @@ class PerldocStyle(Style):
|
|
21
21
|
"""
|
22
22
|
|
23
23
|
background_color = '#eeeedd'
|
24
|
-
default_style = ''
|
25
24
|
|
26
25
|
styles = {
|
27
26
|
Whitespace: '#bbbbbb',
|
@@ -6,13 +6,13 @@
|
|
6
6
|
|
7
7
|
.. _theme: http://sanssecours.github.io/Rainbow-Dash.tmbundle
|
8
8
|
|
9
|
-
:copyright: Copyright 2006-
|
9
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
10
10
|
:license: BSD, see LICENSE for details.
|
11
11
|
"""
|
12
12
|
|
13
13
|
from pygments.style import Style
|
14
|
-
from pygments.token import
|
15
|
-
|
14
|
+
from pygments.token import Comment, Error, Generic, Name, Number, Operator, \
|
15
|
+
String, Text, Whitespace, Keyword
|
16
16
|
|
17
17
|
BLUE_LIGHT = '#0080ff'
|
18
18
|
BLUE = '#2c5dcd'
|
@@ -4,12 +4,12 @@
|
|
4
4
|
|
5
5
|
pygments "rrt" theme, based on Zap and Emacs defaults.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
11
11
|
from pygments.style import Style
|
12
|
-
from pygments.token import Comment, Name, Keyword, String
|
12
|
+
from pygments.token import Token, Comment, Name, Keyword, String
|
13
13
|
|
14
14
|
|
15
15
|
class RrtStyle(Style):
|
@@ -21,6 +21,7 @@ class RrtStyle(Style):
|
|
21
21
|
highlight_color = '#0000ff'
|
22
22
|
|
23
23
|
styles = {
|
24
|
+
Token: '#dddddd',
|
24
25
|
Comment: '#00ff00',
|
25
26
|
Name.Function: '#ffff00',
|
26
27
|
Name.Variable: '#eedd82',
|
@@ -6,7 +6,7 @@
|
|
6
6
|
meant to be a complete style. It's merely meant to mimic SAS'
|
7
7
|
program editor syntax highlighting.
|
8
8
|
|
9
|
-
:copyright: Copyright 2006-
|
9
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
10
10
|
:license: BSD, see LICENSE for details.
|
11
11
|
"""
|
12
12
|
|
@@ -22,13 +22,11 @@ class SasStyle(Style):
|
|
22
22
|
program editor syntax highlighting.
|
23
23
|
"""
|
24
24
|
|
25
|
-
default_style = ''
|
26
|
-
|
27
25
|
styles = {
|
28
26
|
Whitespace: '#bbbbbb',
|
29
27
|
Comment: 'italic #008800',
|
30
28
|
String: '#800080',
|
31
|
-
Number: 'bold #
|
29
|
+
Number: 'bold #2c8553',
|
32
30
|
Other: 'bg:#ffffe0',
|
33
31
|
Keyword: '#2c2cff',
|
34
32
|
Keyword.Reserved: 'bold #353580',
|
@@ -7,7 +7,7 @@
|
|
7
7
|
A Pygments style for the Solarized themes (licensed under MIT).
|
8
8
|
See: https://github.com/altercation/solarized
|
9
9
|
|
10
|
-
:copyright: Copyright 2006-
|
10
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
11
11
|
:license: BSD, see LICENSE for details.
|
12
12
|
"""
|
13
13
|
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"""
|
2
|
+
pygments.styles.staroffice
|
3
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
4
|
+
|
5
|
+
Style similar to StarOffice style, also in OpenOffice and LibreOffice.
|
6
|
+
|
7
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
8
|
+
:license: BSD, see LICENSE for details.
|
9
|
+
"""
|
10
|
+
|
11
|
+
from pygments.style import Style
|
12
|
+
from pygments.token import Comment, Error, Literal, Name, Token
|
13
|
+
|
14
|
+
|
15
|
+
class StarofficeStyle(Style):
|
16
|
+
"""
|
17
|
+
Style similar to StarOffice style, also in OpenOffice and LibreOffice.
|
18
|
+
"""
|
19
|
+
|
20
|
+
styles = {
|
21
|
+
Token: '#000080', # Blue
|
22
|
+
Comment: '#696969', # DimGray
|
23
|
+
Error: '#800000', # Maroon
|
24
|
+
Literal: '#EE0000', # Red
|
25
|
+
Name: '#008000', # Green
|
26
|
+
}
|
@@ -6,26 +6,24 @@
|
|
6
6
|
meant to be a complete style, just for Stata's file formats.
|
7
7
|
|
8
8
|
|
9
|
-
:copyright: Copyright 2006-
|
9
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
10
10
|
:license: BSD, see LICENSE for details.
|
11
11
|
"""
|
12
12
|
|
13
13
|
from pygments.style import Style
|
14
|
-
from pygments.token import Keyword, Name, Comment, String, Error, \
|
15
|
-
Number, Operator, Whitespace, Generic
|
14
|
+
from pygments.token import Token, Keyword, Name, Comment, String, Error, \
|
15
|
+
Number, Operator, Whitespace, Generic
|
16
16
|
|
17
17
|
|
18
18
|
class StataDarkStyle(Style):
|
19
19
|
|
20
|
-
default_style = ''
|
21
|
-
|
22
20
|
background_color = "#232629"
|
23
21
|
highlight_color = "#49483e"
|
24
22
|
|
25
23
|
styles = {
|
24
|
+
Token: '#cccccc',
|
26
25
|
Whitespace: '#bbbbbb',
|
27
26
|
Error: 'bg:#e3d2d2 #a61717',
|
28
|
-
Text: '#cccccc',
|
29
27
|
String: '#51cc99',
|
30
28
|
Number: '#4FB8CC',
|
31
29
|
Operator: '',
|
@@ -5,7 +5,7 @@
|
|
5
5
|
Light Style inspired by Stata's do-file editor. Note this is not
|
6
6
|
meant to be a complete style, just for Stata's file formats.
|
7
7
|
|
8
|
-
:copyright: Copyright 2006-
|
8
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
9
9
|
:license: BSD, see LICENSE for details.
|
10
10
|
"""
|
11
11
|
|
@@ -20,7 +20,6 @@ class StataLightStyle(Style):
|
|
20
20
|
meant to be a complete style, just for use with Stata.
|
21
21
|
"""
|
22
22
|
|
23
|
-
default_style = ''
|
24
23
|
styles = {
|
25
24
|
Text: '#111111',
|
26
25
|
Whitespace: '#bbbbbb',
|
@@ -32,7 +32,7 @@
|
|
32
32
|
have been chosen to have the same style. Similarly, keywords (Keyword.*),
|
33
33
|
and Operator.Word (and, or, in) have been assigned the same style.
|
34
34
|
|
35
|
-
:copyright: Copyright 2006-
|
35
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
36
36
|
:license: BSD, see LICENSE for details.
|
37
37
|
"""
|
38
38
|
|
@@ -50,12 +50,11 @@ class TangoStyle(Style):
|
|
50
50
|
# work in progress...
|
51
51
|
|
52
52
|
background_color = "#f8f8f8"
|
53
|
-
default_style = ""
|
54
53
|
|
55
54
|
styles = {
|
56
55
|
# No corresponding class for the following:
|
57
56
|
#Text: "", # class: ''
|
58
|
-
Whitespace: "
|
57
|
+
Whitespace: "#f8f8f8", # class: 'w'
|
59
58
|
Error: "#a40000 border:#ef2929", # class: 'err'
|
60
59
|
Other: "#000000", # class 'x'
|
61
60
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Port of the default trac highlighter design.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -18,8 +18,6 @@ class TracStyle(Style):
|
|
18
18
|
Port of the default trac highlighter design.
|
19
19
|
"""
|
20
20
|
|
21
|
-
default_style = ''
|
22
|
-
|
23
21
|
styles = {
|
24
22
|
Whitespace: '#bbbbbb',
|
25
23
|
Comment: 'italic #999988',
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
A highlighting style for Pygments, inspired by vim.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -20,7 +20,6 @@ class VimStyle(Style):
|
|
20
20
|
|
21
21
|
background_color = "#000000"
|
22
22
|
highlight_color = "#222222"
|
23
|
-
default_style = "#cccccc"
|
24
23
|
|
25
24
|
styles = {
|
26
25
|
Token: "#cccccc",
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Simple style with MS Visual Studio colors.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -16,7 +16,6 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
16
16
|
class VisualStudioStyle(Style):
|
17
17
|
|
18
18
|
background_color = "#ffffff"
|
19
|
-
default_style = ""
|
20
19
|
|
21
20
|
styles = {
|
22
21
|
Comment: "#008000",
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Style similar to the `Xcode` default theme.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -18,8 +18,6 @@ class XcodeStyle(Style):
|
|
18
18
|
Style similar to the Xcode default colouring theme.
|
19
19
|
"""
|
20
20
|
|
21
|
-
default_style = ''
|
22
|
-
|
23
21
|
styles = {
|
24
22
|
Comment: '#177500',
|
25
23
|
Comment.Preproc: '#633820',
|
@@ -7,15 +7,13 @@
|
|
7
7
|
See: https://kippura.org/zenburnpage/
|
8
8
|
https://github.com/jnurmine/Zenburn
|
9
9
|
|
10
|
-
:copyright: Copyright 2006-
|
10
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
11
11
|
:license: BSD, see LICENSE for details.
|
12
12
|
"""
|
13
13
|
|
14
14
|
from pygments.style import Style
|
15
|
-
from pygments.token import
|
16
|
-
|
17
|
-
Punctuation, Error,
|
18
|
-
)
|
15
|
+
from pygments.token import Token, Name, Operator, Keyword, Generic, Comment, \
|
16
|
+
Number, String, Literal, Punctuation, Error
|
19
17
|
|
20
18
|
|
21
19
|
class ZenburnStyle(Style):
|
@@ -23,13 +21,13 @@ class ZenburnStyle(Style):
|
|
23
21
|
Low contrast Zenburn style.
|
24
22
|
"""
|
25
23
|
|
26
|
-
default_style = ""
|
27
24
|
background_color = '#3f3f3f'
|
28
25
|
highlight_color = '#484848'
|
29
26
|
line_number_color = '#5d6262'
|
30
27
|
line_number_background_color = '#353535'
|
31
28
|
line_number_special_color = '#7a8080'
|
32
29
|
line_number_special_background_color = '#353535'
|
30
|
+
|
33
31
|
styles = {
|
34
32
|
Token: '#dcdccc',
|
35
33
|
Error: '#e37170 bold',
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Basic token types and the standard tokens.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -189,6 +189,7 @@ STANDARD_TYPES = {
|
|
189
189
|
Operator.Word: 'ow',
|
190
190
|
|
191
191
|
Punctuation: 'p',
|
192
|
+
Punctuation.Marker: 'pm',
|
192
193
|
|
193
194
|
Comment: 'c',
|
194
195
|
Comment.Hashbang: 'ch',
|
@@ -7,12 +7,10 @@
|
|
7
7
|
|
8
8
|
Inspired by chartypes_create.py from the MoinMoin project.
|
9
9
|
|
10
|
-
:copyright: Copyright 2006-
|
10
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
11
11
|
:license: BSD, see LICENSE for details.
|
12
12
|
"""
|
13
13
|
|
14
|
-
import sys
|
15
|
-
|
16
14
|
Cc = '\x00-\x1f\x7f-\x9f'
|
17
15
|
|
18
16
|
Cf = '\xad\u0600-\u0605\u061c\u06dd\u070f\u08e2\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff\ufff9-\ufffb\U000110bd\U000110cd\U0001bca0-\U0001bca3\U0001d173-\U0001d17a\U000e0001\U000e0020-\U000e007f'
|
@@ -114,7 +112,7 @@ if __name__ == '__main__': # pragma: no cover
|
|
114
112
|
|
115
113
|
categories = {'xid_start': [], 'xid_continue': []}
|
116
114
|
|
117
|
-
with open(__file__) as fp:
|
115
|
+
with open(__file__, encoding='utf-8') as fp:
|
118
116
|
content = fp.read()
|
119
117
|
|
120
118
|
header = content[:content.find('Cc =')]
|
@@ -124,7 +122,7 @@ if __name__ == '__main__': # pragma: no cover
|
|
124
122
|
c = chr(code)
|
125
123
|
cat = unicodedata.category(c)
|
126
124
|
if ord(c) == 0xdc00:
|
127
|
-
# Hack to avoid combining this combining with the
|
125
|
+
# Hack to avoid combining this combining with the preceding high
|
128
126
|
# surrogate, 0xdbff, when doing a repr.
|
129
127
|
c = '\\' + c
|
130
128
|
elif ord(c) in (0x2d, 0x5b, 0x5c, 0x5d, 0x5e):
|
@@ -138,7 +136,7 @@ if __name__ == '__main__': # pragma: no cover
|
|
138
136
|
if ('a' + c).isidentifier():
|
139
137
|
categories['xid_continue'].append(c)
|
140
138
|
|
141
|
-
with open(__file__, 'w') as fp:
|
139
|
+
with open(__file__, 'w', encoding='utf-8') as fp:
|
142
140
|
fp.write(header)
|
143
141
|
|
144
142
|
for cat in sorted(categories):
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Utility functions.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -23,7 +23,7 @@ doctype_lookup_re = re.compile(r'''
|
|
23
23
|
[^>]*>
|
24
24
|
''', re.DOTALL | re.MULTILINE | re.VERBOSE)
|
25
25
|
tag_re = re.compile(r'<(.+?)(\s.*?)?>.*?</.+?>',
|
26
|
-
re.
|
26
|
+
re.IGNORECASE | re.DOTALL | re.MULTILINE)
|
27
27
|
xml_decl_re = re.compile(r'\s*<\?xml[^>]*\?>', re.I)
|
28
28
|
|
29
29
|
|
@@ -32,10 +32,16 @@ class ClassNotFound(ValueError):
|
|
32
32
|
|
33
33
|
|
34
34
|
class OptionError(Exception):
|
35
|
-
|
36
|
-
|
35
|
+
"""
|
36
|
+
This exception will be raised by all option processing functions if
|
37
|
+
the type or value of the argument is not correct.
|
38
|
+
"""
|
37
39
|
|
38
40
|
def get_choice_opt(options, optname, allowed, default=None, normcase=False):
|
41
|
+
"""
|
42
|
+
If the key `optname` from the dictionary is not in the sequence
|
43
|
+
`allowed`, raise an error, otherwise return it.
|
44
|
+
"""
|
39
45
|
string = options.get(optname, default)
|
40
46
|
if normcase:
|
41
47
|
string = string.lower()
|
@@ -46,6 +52,17 @@ def get_choice_opt(options, optname, allowed, default=None, normcase=False):
|
|
46
52
|
|
47
53
|
|
48
54
|
def get_bool_opt(options, optname, default=None):
|
55
|
+
"""
|
56
|
+
Intuitively, this is `options.get(optname, default)`, but restricted to
|
57
|
+
Boolean value. The Booleans can be represented as string, in order to accept
|
58
|
+
Boolean value from the command line arguments. If the key `optname` is
|
59
|
+
present in the dictionary `options` and is not associated with a Boolean,
|
60
|
+
raise an `OptionError`. If it is absent, `default` is returned instead.
|
61
|
+
|
62
|
+
The valid string values for ``True`` are ``1``, ``yes``, ``true`` and
|
63
|
+
``on``, the ones for ``False`` are ``0``, ``no``, ``false`` and ``off``
|
64
|
+
(matched case-insensitively).
|
65
|
+
"""
|
49
66
|
string = options.get(optname, default)
|
50
67
|
if isinstance(string, bool):
|
51
68
|
return string
|
@@ -66,6 +83,7 @@ def get_bool_opt(options, optname, default=None):
|
|
66
83
|
|
67
84
|
|
68
85
|
def get_int_opt(options, optname, default=None):
|
86
|
+
"""As :func:`get_bool_opt`, but interpret the value as an integer."""
|
69
87
|
string = options.get(optname, default)
|
70
88
|
try:
|
71
89
|
return int(string)
|
@@ -78,8 +96,12 @@ def get_int_opt(options, optname, default=None):
|
|
78
96
|
'must give an integer value' % (
|
79
97
|
string, optname))
|
80
98
|
|
81
|
-
|
82
99
|
def get_list_opt(options, optname, default=None):
|
100
|
+
"""
|
101
|
+
If the key `optname` from the dictionary `options` is a string,
|
102
|
+
split it at whitespace and return it. If it is already a list
|
103
|
+
or a tuple, it is returned as a list.
|
104
|
+
"""
|
83
105
|
val = options.get(optname, default)
|
84
106
|
if isinstance(val, str):
|
85
107
|
return val.split()
|