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
@@ -4,25 +4,26 @@
|
|
4
4
|
|
5
5
|
Lexer for Praat
|
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.lexer import RegexLexer, words, bygroups, include
|
12
|
-
from pygments.token import Name, Text, Comment, Keyword, String, Punctuation,
|
13
|
-
Operator
|
12
|
+
from pygments.token import Name, Text, Comment, Keyword, String, Punctuation, \
|
13
|
+
Number, Operator, Whitespace
|
14
14
|
|
15
15
|
__all__ = ['PraatLexer']
|
16
16
|
|
17
17
|
|
18
18
|
class PraatLexer(RegexLexer):
|
19
19
|
"""
|
20
|
-
For
|
20
|
+
For Praat scripts.
|
21
21
|
|
22
22
|
.. versionadded:: 2.1
|
23
23
|
"""
|
24
24
|
|
25
25
|
name = 'Praat'
|
26
|
+
url = 'http://www.praat.org'
|
26
27
|
aliases = ['praat']
|
27
28
|
filenames = ['*.praat', '*.proc', '*.psc']
|
28
29
|
|
@@ -117,10 +118,10 @@ class PraatLexer(RegexLexer):
|
|
117
118
|
|
118
119
|
tokens = {
|
119
120
|
'root': [
|
120
|
-
(r'(\s+)(#.*?$)', bygroups(
|
121
|
+
(r'(\s+)(#.*?$)', bygroups(Whitespace, Comment.Single)),
|
121
122
|
(r'^#.*?$', Comment.Single),
|
122
123
|
(r';[^\n]*', Comment.Single),
|
123
|
-
(r'\s+',
|
124
|
+
(r'\s+', Whitespace),
|
124
125
|
|
125
126
|
(r'\bprocedure\b', Keyword, 'procedure_definition'),
|
126
127
|
(r'\bcall\b', Keyword, 'procedure_call'),
|
@@ -131,13 +132,13 @@ class PraatLexer(RegexLexer):
|
|
131
132
|
(words(keywords, suffix=r'\b'), Keyword),
|
132
133
|
|
133
134
|
(r'(\bform\b)(\s+)([^\n]+)',
|
134
|
-
bygroups(Keyword,
|
135
|
+
bygroups(Keyword, Whitespace, String), 'old_form'),
|
135
136
|
|
136
137
|
(r'(print(?:line|tab)?|echo|exit|asserterror|pause|send(?:praat|socket)|'
|
137
138
|
r'include|execute|system(?:_nocheck)?)(\s+)',
|
138
|
-
bygroups(Keyword,
|
139
|
+
bygroups(Keyword, Whitespace), 'string_unquoted'),
|
139
140
|
|
140
|
-
(r'(goto|label)(\s+)(\w+)', bygroups(Keyword,
|
141
|
+
(r'(goto|label)(\s+)(\w+)', bygroups(Keyword, Whitespace, Name.Label)),
|
141
142
|
|
142
143
|
include('variable_name'),
|
143
144
|
include('number'),
|
@@ -156,18 +157,19 @@ class PraatLexer(RegexLexer):
|
|
156
157
|
|
157
158
|
(r'\.{3}', Keyword, ('#pop', 'old_arguments')),
|
158
159
|
(r':', Keyword, ('#pop', 'comma_list')),
|
159
|
-
(r'\s',
|
160
|
+
(r'\s', Whitespace, '#pop'),
|
160
161
|
],
|
161
162
|
'procedure_call': [
|
162
|
-
(r'\s+',
|
163
|
-
(r'([\w.]+)(
|
164
|
-
bygroups(Name.Function,
|
163
|
+
(r'\s+', Whitespace),
|
164
|
+
(r'([\w.]+)(?:(:)|(?:(\s*)(\()))',
|
165
|
+
bygroups(Name.Function, Punctuation,
|
166
|
+
Text.Whitespace, Punctuation), '#pop'),
|
165
167
|
(r'([\w.]+)', Name.Function, ('#pop', 'old_arguments')),
|
166
168
|
],
|
167
169
|
'procedure_definition': [
|
168
|
-
(r'\s',
|
170
|
+
(r'\s', Whitespace),
|
169
171
|
(r'([\w.]+)(\s*?[(:])',
|
170
|
-
bygroups(Name.Function,
|
172
|
+
bygroups(Name.Function, Whitespace), '#pop'),
|
171
173
|
(r'([\w.]+)([^\n]*)',
|
172
174
|
bygroups(Name.Function, Text), '#pop'),
|
173
175
|
],
|
@@ -177,16 +179,17 @@ class PraatLexer(RegexLexer):
|
|
177
179
|
(words(functions_numeric, suffix=r'(?=\s*[:(])'), Name.Function, 'function'),
|
178
180
|
],
|
179
181
|
'function': [
|
180
|
-
(r'\s+',
|
182
|
+
(r'\s+', Whitespace),
|
181
183
|
(r':', Punctuation, ('#pop', 'comma_list')),
|
182
184
|
(r'\s*\(', Punctuation, ('#pop', 'comma_list')),
|
183
185
|
],
|
184
186
|
'comma_list': [
|
185
|
-
(r'(\s*\n\s*)(\.{3})', bygroups(
|
187
|
+
(r'(\s*\n\s*)(\.{3})', bygroups(Whitespace, Punctuation)),
|
186
188
|
|
187
|
-
(r'(\s*[])\n
|
189
|
+
(r'(\s*)(?:([)\]])|(\n))', bygroups(
|
190
|
+
Whitespace, Punctuation, Whitespace), '#pop'),
|
188
191
|
|
189
|
-
(r'\s+',
|
192
|
+
(r'\s+', Whitespace),
|
190
193
|
(r'"', String, 'string'),
|
191
194
|
(r'\b(if|then|else|fi|endif)\b', Keyword),
|
192
195
|
|
@@ -199,7 +202,7 @@ class PraatLexer(RegexLexer):
|
|
199
202
|
(r',', Punctuation),
|
200
203
|
],
|
201
204
|
'old_arguments': [
|
202
|
-
(r'\n',
|
205
|
+
(r'\n', Whitespace, '#pop'),
|
203
206
|
|
204
207
|
include('variable_name'),
|
205
208
|
include('operator'),
|
@@ -209,7 +212,7 @@ class PraatLexer(RegexLexer):
|
|
209
212
|
(r'[^\n]', Text),
|
210
213
|
],
|
211
214
|
'number': [
|
212
|
-
(r'\n',
|
215
|
+
(r'\n', Whitespace, '#pop'),
|
213
216
|
(r'\b\d+(\.\d*)?([eE][-+]?\d+)?%?', Number),
|
214
217
|
],
|
215
218
|
'object_reference': [
|
@@ -248,10 +251,10 @@ class PraatLexer(RegexLexer):
|
|
248
251
|
String.Interpol),
|
249
252
|
],
|
250
253
|
'string_unquoted': [
|
251
|
-
(r'(\n\s*)(\.{3})', bygroups(
|
254
|
+
(r'(\n\s*)(\.{3})', bygroups(Whitespace, Punctuation)),
|
252
255
|
|
253
|
-
(r'\n',
|
254
|
-
(r'\s',
|
256
|
+
(r'\n', Whitespace, '#pop'),
|
257
|
+
(r'\s', Whitespace),
|
255
258
|
|
256
259
|
include('string_interpolated'),
|
257
260
|
|
@@ -259,7 +262,7 @@ class PraatLexer(RegexLexer):
|
|
259
262
|
(r"[^'\n]+", String),
|
260
263
|
],
|
261
264
|
'string': [
|
262
|
-
(r'(\n\s*)(\.{3})', bygroups(
|
265
|
+
(r'(\n\s*)(\.{3})', bygroups(Whitespace, Punctuation)),
|
263
266
|
|
264
267
|
(r'"', String, '#pop'),
|
265
268
|
|
@@ -269,32 +272,32 @@ class PraatLexer(RegexLexer):
|
|
269
272
|
(r'[^\'"\n]+', String),
|
270
273
|
],
|
271
274
|
'old_form': [
|
272
|
-
(r'(\s+)(#.*?$)', bygroups(
|
273
|
-
(r'\s+',
|
275
|
+
(r'(\s+)(#.*?$)', bygroups(Whitespace, Comment.Single)),
|
276
|
+
(r'\s+', Whitespace),
|
274
277
|
|
275
|
-
(r'(optionmenu|choice)([ \t]
|
276
|
-
bygroups(Keyword, Text), 'number'),
|
278
|
+
(r'(optionmenu|choice)([ \t]+)(\S+)(:)([ \t]+)',
|
279
|
+
bygroups(Keyword, Whitespace, Text, Punctuation, Whitespace), 'number'),
|
277
280
|
|
278
281
|
(r'(option|button)([ \t]+)',
|
279
|
-
bygroups(Keyword,
|
282
|
+
bygroups(Keyword, Whitespace), 'string_unquoted'),
|
280
283
|
|
281
|
-
(r'(sentence|text)([ \t]
|
282
|
-
bygroups(Keyword,
|
284
|
+
(r'(sentence|text)([ \t]+)(\S+)',
|
285
|
+
bygroups(Keyword, Whitespace, String), 'string_unquoted'),
|
283
286
|
|
284
|
-
(r'(word)([ \t]
|
285
|
-
bygroups(Keyword, Text,
|
287
|
+
(r'(word)([ \t]+)(\S+)([ \t]*)(\S+)?(?:([ \t]+)(.*))?',
|
288
|
+
bygroups(Keyword, Whitespace, Text, Whitespace, Text, Whitespace, Text)),
|
286
289
|
|
287
290
|
(r'(boolean)(\s+\S+\s*)(0|1|"?(?:yes|no)"?)',
|
288
|
-
bygroups(Keyword,
|
291
|
+
bygroups(Keyword, Whitespace, Name.Variable)),
|
289
292
|
|
290
|
-
# Ideally processing of the number would
|
293
|
+
# Ideally processing of the number would happen in the 'number'
|
291
294
|
# but that doesn't seem to work
|
292
295
|
(r'(real|natural|positive|integer)([ \t]+\S+[ \t]*)([+-]?)(\d+(?:\.\d*)?'
|
293
296
|
r'(?:[eE][-+]?\d+)?%?)',
|
294
|
-
bygroups(Keyword,
|
297
|
+
bygroups(Keyword, Whitespace, Operator, Number)),
|
295
298
|
|
296
299
|
(r'(comment)(\s+)',
|
297
|
-
bygroups(Keyword,
|
300
|
+
bygroups(Keyword, Whitespace), 'string_unquoted'),
|
298
301
|
|
299
302
|
(r'\bendform\b', Keyword, '#pop'),
|
300
303
|
]
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexer for Procfile file format.
|
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,12 +20,11 @@ class ProcfileLexer(RegexLexer):
|
|
20
20
|
|
21
21
|
The format is used to run processes on Heroku or is used by Foreman or
|
22
22
|
Honcho tools.
|
23
|
-
For more information about the definition of the format, see:
|
24
|
-
https://devcenter.heroku.com/articles/procfile#procfile-format
|
25
23
|
|
26
24
|
.. versionadded:: 2.10
|
27
25
|
"""
|
28
26
|
name = 'Procfile'
|
27
|
+
url = 'https://devcenter.heroku.com/articles/procfile#procfile-format'
|
29
28
|
aliases = ['procfile']
|
30
29
|
filenames = ['Procfile']
|
31
30
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for Prolog and Prolog-like languages.
|
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
|
|
@@ -26,8 +26,6 @@ class PrologLexer(RegexLexer):
|
|
26
26
|
filenames = ['*.ecl', '*.prolog', '*.pro', '*.pl']
|
27
27
|
mimetypes = ['text/x-prolog']
|
28
28
|
|
29
|
-
flags = re.UNICODE | re.MULTILINE
|
30
|
-
|
31
29
|
tokens = {
|
32
30
|
'root': [
|
33
31
|
(r'/\*', Comment.Multiline, 'nested-comment'),
|
@@ -44,7 +42,7 @@ class PrologLexer(RegexLexer):
|
|
44
42
|
(r'[\[\](){}|.,;!]', Punctuation),
|
45
43
|
(r':-|-->', Punctuation),
|
46
44
|
(r'"(?:\\x[0-9a-fA-F]+\\|\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8}|'
|
47
|
-
r'\\[0-7]+\\|\\["
|
45
|
+
r'\\[0-7]+\\|\\["\\abcefnrstv]|[^\\"])*"', String.Double),
|
48
46
|
(r"'(?:''|[^'])*'", String.Atom), # quoted atom
|
49
47
|
# Needs to not be followed by an atom.
|
50
48
|
# (r'=(?=\s|[a-zA-Z\[])', Operator),
|
@@ -85,12 +83,13 @@ class PrologLexer(RegexLexer):
|
|
85
83
|
|
86
84
|
class LogtalkLexer(RegexLexer):
|
87
85
|
"""
|
88
|
-
For
|
86
|
+
For Logtalk source code.
|
89
87
|
|
90
88
|
.. versionadded:: 0.10
|
91
89
|
"""
|
92
90
|
|
93
91
|
name = 'Logtalk'
|
92
|
+
url = 'http://logtalk.org/'
|
94
93
|
aliases = ['logtalk']
|
95
94
|
filenames = ['*.lgt', '*.logtalk']
|
96
95
|
mimetypes = ['text/x-logtalk']
|
@@ -200,9 +199,9 @@ class LogtalkLexer(RegexLexer):
|
|
200
199
|
(r'(>>|<<|/\\|\\\\|\\)', Operator),
|
201
200
|
# Predicate aliases
|
202
201
|
(r'\bas\b', Operator),
|
203
|
-
#
|
202
|
+
# Arithmetic evaluation
|
204
203
|
(r'\bis\b', Keyword),
|
205
|
-
#
|
204
|
+
# Arithmetic comparison
|
206
205
|
(r'(=:=|=\\=|<|=<|>=|>)', Operator),
|
207
206
|
# Term creation and decomposition
|
208
207
|
(r'=\.\.', Operator),
|
@@ -213,7 +212,7 @@ class LogtalkLexer(RegexLexer):
|
|
213
212
|
# Evaluable functors
|
214
213
|
(r'(//|[-+*/])', Operator),
|
215
214
|
(r'\b(e|pi|div|mod|rem)\b', Operator),
|
216
|
-
# Other
|
215
|
+
# Other arithmetic functors
|
217
216
|
(r'\b\*\*\b', Operator),
|
218
217
|
# DCG rules
|
219
218
|
(r'-->', Operator),
|
@@ -4,28 +4,20 @@
|
|
4
4
|
|
5
5
|
Lexer for Prometheus Query Language.
|
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.lexer import RegexLexer, bygroups, default, words
|
12
|
-
from pygments.token import
|
13
|
-
|
14
|
-
Keyword,
|
15
|
-
Name,
|
16
|
-
Number,
|
17
|
-
Operator,
|
18
|
-
Punctuation,
|
19
|
-
String,
|
20
|
-
Whitespace,
|
21
|
-
)
|
12
|
+
from pygments.token import Comment, Keyword, Name, Number, Operator, \
|
13
|
+
Punctuation, String, Whitespace
|
22
14
|
|
23
15
|
__all__ = ["PromQLLexer"]
|
24
16
|
|
25
17
|
|
26
18
|
class PromQLLexer(RegexLexer):
|
27
19
|
"""
|
28
|
-
For
|
20
|
+
For PromQL queries.
|
29
21
|
|
30
22
|
For details about the grammar see:
|
31
23
|
https://github.com/prometheus/prometheus/tree/master/promql/parser
|
@@ -34,6 +26,7 @@ class PromQLLexer(RegexLexer):
|
|
34
26
|
"""
|
35
27
|
|
36
28
|
name = "PromQL"
|
29
|
+
url = 'https://prometheus.io/docs/prometheus/latest/querying/basics/'
|
37
30
|
aliases = ["promql"]
|
38
31
|
filenames = ["*.promql"]
|
39
32
|
|