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,34 +4,30 @@
|
|
4
4
|
|
5
5
|
Lexers for Erlang.
|
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
|
import re
|
12
12
|
|
13
13
|
from pygments.lexer import Lexer, RegexLexer, bygroups, words, do_insertions, \
|
14
|
-
include, default
|
15
|
-
from pygments.token import
|
16
|
-
Number, Punctuation, Generic
|
14
|
+
include, default, line_re
|
15
|
+
from pygments.token import Comment, Operator, Keyword, Name, String, \
|
16
|
+
Number, Punctuation, Generic, Whitespace
|
17
17
|
|
18
18
|
__all__ = ['ErlangLexer', 'ErlangShellLexer', 'ElixirConsoleLexer',
|
19
19
|
'ElixirLexer']
|
20
20
|
|
21
21
|
|
22
|
-
line_re = re.compile('.*?\n')
|
23
|
-
|
24
|
-
|
25
22
|
class ErlangLexer(RegexLexer):
|
26
23
|
"""
|
27
24
|
For the Erlang functional programming language.
|
28
25
|
|
29
|
-
Blame Jeremy Thurgood (http://jerith.za.net/).
|
30
|
-
|
31
26
|
.. versionadded:: 0.9
|
32
27
|
"""
|
33
28
|
|
34
29
|
name = 'Erlang'
|
30
|
+
url = 'https://www.erlang.org/'
|
35
31
|
aliases = ['erlang']
|
36
32
|
filenames = ['*.erl', '*.hrl', '*.es', '*.escript']
|
37
33
|
mimetypes = ['text/x-erlang']
|
@@ -93,8 +89,8 @@ class ErlangLexer(RegexLexer):
|
|
93
89
|
|
94
90
|
tokens = {
|
95
91
|
'root': [
|
96
|
-
(r'\s+',
|
97
|
-
(r'
|
92
|
+
(r'\s+', Whitespace),
|
93
|
+
(r'(%.*)(\n)', bygroups(Comment, Whitespace)),
|
98
94
|
(words(keywords, suffix=r'\b'), Keyword),
|
99
95
|
(words(builtins, suffix=r'\b'), Name.Builtin),
|
100
96
|
(words(word_operators, suffix=r'\b'), Operator.Word),
|
@@ -105,7 +101,7 @@ class ErlangLexer(RegexLexer):
|
|
105
101
|
(r'>>', Name.Label),
|
106
102
|
('(' + atom_re + ')(:)', bygroups(Name.Namespace, Punctuation)),
|
107
103
|
('(?:^|(?<=:))(' + atom_re + r')(\s*)(\()',
|
108
|
-
bygroups(Name.Function,
|
104
|
+
bygroups(Name.Function, Whitespace, Punctuation)),
|
109
105
|
(r'[+-]?' + base_re + r'#[0-9a-zA-Z]+', Number.Integer),
|
110
106
|
(r'[+-]?\d+', Number.Integer),
|
111
107
|
(r'[+-]?\d+.\d+', Number.Float),
|
@@ -132,9 +128,9 @@ class ErlangLexer(RegexLexer):
|
|
132
128
|
],
|
133
129
|
'directive': [
|
134
130
|
(r'(define)(\s*)(\()('+macro_re+r')',
|
135
|
-
bygroups(Name.Entity,
|
131
|
+
bygroups(Name.Entity, Whitespace, Punctuation, Name.Constant), '#pop'),
|
136
132
|
(r'(record)(\s*)(\()('+macro_re+r')',
|
137
|
-
bygroups(Name.Entity,
|
133
|
+
bygroups(Name.Entity, Whitespace, Punctuation, Name.Label), '#pop'),
|
138
134
|
(atom_re, Name.Entity, '#pop'),
|
139
135
|
],
|
140
136
|
'map_key': [
|
@@ -223,12 +219,13 @@ def gen_elixir_sigstr_rules(term, term_class, token, interpol=True):
|
|
223
219
|
|
224
220
|
class ElixirLexer(RegexLexer):
|
225
221
|
"""
|
226
|
-
For the
|
222
|
+
For the Elixir language.
|
227
223
|
|
228
224
|
.. versionadded:: 1.5
|
229
225
|
"""
|
230
226
|
|
231
227
|
name = 'Elixir'
|
228
|
+
url = 'http://elixir-lang.org'
|
232
229
|
aliases = ['elixir', 'ex', 'exs']
|
233
230
|
filenames = ['*.ex', '*.eex', '*.exs', '*.leex']
|
234
231
|
mimetypes = ['text/x-elixir']
|
@@ -317,11 +314,11 @@ class ElixirLexer(RegexLexer):
|
|
317
314
|
default('#pop'),
|
318
315
|
]
|
319
316
|
states[name + '-intp'] = [
|
320
|
-
(r'
|
317
|
+
(r'^(\s*)(' + term + ')', bygroups(Whitespace, String.Heredoc), '#pop'),
|
321
318
|
include('heredoc_interpol'),
|
322
319
|
]
|
323
320
|
states[name + '-no-intp'] = [
|
324
|
-
(r'
|
321
|
+
(r'^(\s*)(' + term +')', bygroups(Whitespace, String.Heredoc), '#pop'),
|
325
322
|
include('heredoc_no_interpol'),
|
326
323
|
]
|
327
324
|
|
@@ -354,7 +351,7 @@ class ElixirLexer(RegexLexer):
|
|
354
351
|
|
355
352
|
tokens = {
|
356
353
|
'root': [
|
357
|
-
(r'\s+',
|
354
|
+
(r'\s+', Whitespace),
|
358
355
|
(r'#.*$', Comment.Single),
|
359
356
|
|
360
357
|
# Various kinds of characters
|
@@ -403,8 +400,10 @@ class ElixirLexer(RegexLexer):
|
|
403
400
|
(r'\d(_?\d)*', Number.Integer),
|
404
401
|
|
405
402
|
# strings and heredocs
|
406
|
-
(r'"""\s*', String.Heredoc,
|
407
|
-
|
403
|
+
(r'(""")(\s*)', bygroups(String.Heredoc, Whitespace),
|
404
|
+
'heredoc_double'),
|
405
|
+
(r"(''')(\s*)$", bygroups(String.Heredoc, Whitespace),
|
406
|
+
'heredoc_single'),
|
408
407
|
(r'"', String.Double, 'string_double'),
|
409
408
|
(r"'", String.Single, 'string_single'),
|
410
409
|
|
@@ -414,7 +413,7 @@ class ElixirLexer(RegexLexer):
|
|
414
413
|
(r'\{', Punctuation, 'tuple'),
|
415
414
|
],
|
416
415
|
'heredoc_double': [
|
417
|
-
(r'
|
416
|
+
(r'^(\s*)(""")', bygroups(Whitespace, String.Heredoc), '#pop'),
|
418
417
|
include('heredoc_interpol'),
|
419
418
|
],
|
420
419
|
'heredoc_single': [
|
@@ -431,7 +430,7 @@ class ElixirLexer(RegexLexer):
|
|
431
430
|
'heredoc_no_interpol': [
|
432
431
|
(r'[^\\\n]+', String.Heredoc),
|
433
432
|
(r'\\.', String.Heredoc),
|
434
|
-
(r'\n+',
|
433
|
+
(r'\n+', Whitespace),
|
435
434
|
],
|
436
435
|
'escapes': [
|
437
436
|
(long_hex_char_re,
|
@@ -4,15 +4,13 @@
|
|
4
4
|
|
5
5
|
Lexers for esoteric 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
|
|
11
|
-
from pygments.lexer import RegexLexer, include, words
|
12
|
-
from pygments.token import
|
13
|
-
|
14
|
-
|
15
|
-
import re
|
11
|
+
from pygments.lexer import RegexLexer, include, words, bygroups
|
12
|
+
from pygments.token import Comment, Operator, Keyword, Name, String, Number, \
|
13
|
+
Punctuation, Error, Whitespace
|
16
14
|
|
17
15
|
__all__ = ['BrainfuckLexer', 'BefungeLexer', 'RedcodeLexer', 'CAmkESLexer',
|
18
16
|
'CapDLLexer', 'AheuiLexer']
|
@@ -20,11 +18,11 @@ __all__ = ['BrainfuckLexer', 'BefungeLexer', 'RedcodeLexer', 'CAmkESLexer',
|
|
20
18
|
|
21
19
|
class BrainfuckLexer(RegexLexer):
|
22
20
|
"""
|
23
|
-
Lexer for the esoteric
|
24
|
-
language.
|
21
|
+
Lexer for the esoteric BrainFuck language.
|
25
22
|
"""
|
26
23
|
|
27
24
|
name = 'Brainfuck'
|
25
|
+
url = 'http://www.muppetlabs.com/~breadbox/bf/'
|
28
26
|
aliases = ['brainfuck', 'bf']
|
29
27
|
filenames = ['*.bf', '*.b']
|
30
28
|
mimetypes = ['application/x-brainfuck']
|
@@ -77,12 +75,12 @@ class BrainfuckLexer(RegexLexer):
|
|
77
75
|
|
78
76
|
class BefungeLexer(RegexLexer):
|
79
77
|
"""
|
80
|
-
Lexer for the esoteric
|
81
|
-
language.
|
78
|
+
Lexer for the esoteric Befunge language.
|
82
79
|
|
83
80
|
.. versionadded:: 0.7
|
84
81
|
"""
|
85
82
|
name = 'Befunge'
|
83
|
+
url = 'http://en.wikipedia.org/wiki/Befunge'
|
86
84
|
aliases = ['befunge']
|
87
85
|
filenames = ['*.befunge']
|
88
86
|
mimetypes = ['application/x-befunge']
|
@@ -100,31 +98,32 @@ class BefungeLexer(RegexLexer):
|
|
100
98
|
(r'[#;]', Comment), # Trampoline... depends on direction hit
|
101
99
|
(r'[pg&~=@iotsy]', Keyword), # Misc
|
102
100
|
(r'[()A-Z]', Comment), # Fingerprints
|
103
|
-
(r'\s+',
|
101
|
+
(r'\s+', Whitespace), # Whitespace doesn't matter
|
104
102
|
],
|
105
103
|
}
|
106
104
|
|
107
105
|
|
108
106
|
class CAmkESLexer(RegexLexer):
|
109
107
|
"""
|
110
|
-
Basic lexer for the input language for the
|
111
|
-
`CAmkES <https://sel4.systems/CAmkES/>`_ component platform.
|
108
|
+
Basic lexer for the input language for the CAmkES component platform.
|
112
109
|
|
113
110
|
.. versionadded:: 2.1
|
114
111
|
"""
|
115
112
|
name = 'CAmkES'
|
113
|
+
url = 'https://sel4.systems/CAmkES/'
|
116
114
|
aliases = ['camkes', 'idl4']
|
117
115
|
filenames = ['*.camkes', '*.idl4']
|
118
116
|
|
119
117
|
tokens = {
|
120
118
|
'root': [
|
121
119
|
# C pre-processor directive
|
122
|
-
(r'
|
120
|
+
(r'^(\s*)(#.*)(\n)', bygroups(Whitespace, Comment.Preproc,
|
121
|
+
Whitespace)),
|
123
122
|
|
124
123
|
# Whitespace, comments
|
125
|
-
(r'\s+',
|
124
|
+
(r'\s+', Whitespace),
|
126
125
|
(r'/\*(.|\n)*?\*/', Comment),
|
127
|
-
(r'
|
126
|
+
(r'//.*$', Comment),
|
128
127
|
|
129
128
|
(r'[\[(){},.;\]]', Punctuation),
|
130
129
|
(r'[~!%^&*+=|?:<>/-]', Operator),
|
@@ -152,10 +151,12 @@ class CAmkESLexer(RegexLexer):
|
|
152
151
|
Keyword.Reserved),
|
153
152
|
|
154
153
|
# CAmkES-level include
|
155
|
-
(r'import\s+(
|
154
|
+
(r'(import)(\s+)((?:<[^>]*>|"[^"]*");)',
|
155
|
+
bygroups(Comment.Preproc, Whitespace, Comment.Preproc)),
|
156
156
|
|
157
157
|
# C-level include
|
158
|
-
(r'include\s+(
|
158
|
+
(r'(include)(\s+)((?:<[^>]*>|"[^"]*");)',
|
159
|
+
bygroups(Comment.Preproc, Whitespace, Comment.Preproc)),
|
159
160
|
|
160
161
|
# Literals
|
161
162
|
(r'0[xX][\da-fA-F]+', Number.Hex),
|
@@ -172,8 +173,7 @@ class CAmkESLexer(RegexLexer):
|
|
172
173
|
|
173
174
|
class CapDLLexer(RegexLexer):
|
174
175
|
"""
|
175
|
-
Basic lexer for
|
176
|
-
`CapDL <https://ssrg.nicta.com.au/publications/nictaabstracts/Kuz_KLW_10.abstract.pml>`_.
|
176
|
+
Basic lexer for CapDL.
|
177
177
|
|
178
178
|
The source of the primary tool that reads such specifications is available
|
179
179
|
at https://github.com/seL4/capdl/tree/master/capDL-tool. Note that this
|
@@ -185,18 +185,20 @@ class CapDLLexer(RegexLexer):
|
|
185
185
|
.. versionadded:: 2.2
|
186
186
|
"""
|
187
187
|
name = 'CapDL'
|
188
|
+
url = 'https://ssrg.nicta.com.au/publications/nictaabstracts/Kuz_KLW_10.abstract.pml'
|
188
189
|
aliases = ['capdl']
|
189
190
|
filenames = ['*.cdl']
|
190
191
|
|
191
192
|
tokens = {
|
192
193
|
'root': [
|
193
194
|
# C pre-processor directive
|
194
|
-
(r'
|
195
|
+
(r'^(\s*)(#.*)(\n)',
|
196
|
+
bygroups(Whitespace, Comment.Preproc, Whitespace)),
|
195
197
|
|
196
198
|
# Whitespace, comments
|
197
|
-
(r'\s+',
|
199
|
+
(r'\s+', Whitespace),
|
198
200
|
(r'/\*(.|\n)*?\*/', Comment),
|
199
|
-
(r'(//|--)
|
201
|
+
(r'(//|--).*$', Comment),
|
200
202
|
|
201
203
|
(r'[<>\[(){},:;=\]]', Punctuation),
|
202
204
|
(r'\.\.', Punctuation),
|
@@ -248,7 +250,7 @@ class RedcodeLexer(RegexLexer):
|
|
248
250
|
tokens = {
|
249
251
|
'root': [
|
250
252
|
# Whitespace:
|
251
|
-
(r'\s+',
|
253
|
+
(r'\s+', Whitespace),
|
252
254
|
(r';.*$', Comment.Single),
|
253
255
|
# Lexemes:
|
254
256
|
# Identifiers
|
@@ -267,15 +269,11 @@ class RedcodeLexer(RegexLexer):
|
|
267
269
|
|
268
270
|
class AheuiLexer(RegexLexer):
|
269
271
|
"""
|
270
|
-
|
271
|
-
|
272
|
-
Aheui_ is esoteric language based on Korean alphabets.
|
273
|
-
|
274
|
-
.. _Aheui: http://aheui.github.io/
|
275
|
-
|
272
|
+
Aheui is esoteric language based on Korean alphabets.
|
276
273
|
"""
|
277
274
|
|
278
275
|
name = 'Aheui'
|
276
|
+
url = 'http://aheui.github.io/'
|
279
277
|
aliases = ['aheui']
|
280
278
|
filenames = ['*.aheui']
|
281
279
|
|
@@ -4,36 +4,37 @@
|
|
4
4
|
|
5
5
|
Pygments lexers for Ezhil 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
|
import re
|
12
|
+
|
12
13
|
from pygments.lexer import RegexLexer, include, words
|
13
|
-
from pygments.token import Keyword,
|
14
|
-
|
14
|
+
from pygments.token import Keyword, Comment, Name, String, Number, \
|
15
|
+
Punctuation, Operator, Whitespace
|
15
16
|
|
16
17
|
__all__ = ['EzhilLexer']
|
17
18
|
|
18
19
|
|
19
20
|
class EzhilLexer(RegexLexer):
|
20
21
|
"""
|
21
|
-
Lexer for
|
22
|
+
Lexer for Ezhil, a Tamil script-based programming language.
|
22
23
|
|
23
24
|
.. versionadded:: 2.1
|
24
25
|
"""
|
25
26
|
name = 'Ezhil'
|
27
|
+
url = 'http://ezhillang.org'
|
26
28
|
aliases = ['ezhil']
|
27
29
|
filenames = ['*.n']
|
28
30
|
mimetypes = ['text/x-ezhil']
|
29
|
-
flags = re.MULTILINE | re.UNICODE
|
30
31
|
# Refer to tamil.utf8.tamil_letters from open-tamil for a stricter version of this.
|
31
32
|
# This much simpler version is close enough, and includes combining marks.
|
32
33
|
_TALETTERS = '[a-zA-Z_]|[\u0b80-\u0bff]'
|
33
34
|
tokens = {
|
34
35
|
'root': [
|
35
36
|
include('keywords'),
|
36
|
-
(r'
|
37
|
+
(r'#.*$', Comment.Single),
|
37
38
|
(r'[@+/*,^\-%]|[!<>=]=?|&&?|\|\|?', Operator),
|
38
39
|
('இல்', Operator.Word),
|
39
40
|
(words(('assert', 'max', 'min',
|
@@ -45,7 +46,7 @@ class EzhilLexer(RegexLexer):
|
|
45
46
|
'exp', 'log', 'log10', 'exit',
|
46
47
|
), suffix=r'\b'), Name.Builtin),
|
47
48
|
(r'(True|False)\b', Keyword.Constant),
|
48
|
-
(r'[^\S\n]+',
|
49
|
+
(r'[^\S\n]+', Whitespace),
|
49
50
|
include('identifier'),
|
50
51
|
include('literal'),
|
51
52
|
(r'[(){}\[\]:;.]', Punctuation),
|
@@ -58,8 +59,8 @@ class EzhilLexer(RegexLexer):
|
|
58
59
|
],
|
59
60
|
'literal': [
|
60
61
|
(r'".*?"', String),
|
61
|
-
(r'
|
62
|
-
(r'
|
62
|
+
(r'\d+((\.\d*)?[eE][+-]?\d+|\.\d*)', Number.Float),
|
63
|
+
(r'\d+', Number.Integer),
|
63
64
|
]
|
64
65
|
}
|
65
66
|
|