pygments.rb 2.4.0 → 3.0.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 +8 -8
- data/.github/workflows/release.yml +5 -5
- data/.gitignore +2 -0
- data/.rubocop.yml +1 -1
- data/CHANGELOG.adoc +12 -0
- data/README.adoc +2 -2
- data/lib/pygments/popen.rb +2 -2
- data/lib/pygments/version.rb +1 -1
- data/pygments.rb.gemspec +3 -3
- data/vendor/pygments-main/bin/pygmentize +1 -1
- data/vendor/pygments-main/pygments/__init__.py +2 -2
- data/vendor/pygments-main/pygments/__main__.py +1 -1
- data/vendor/pygments-main/pygments/cmdline.py +12 -12
- data/vendor/pygments-main/pygments/console.py +5 -5
- data/vendor/pygments-main/pygments/filter.py +2 -3
- data/vendor/pygments-main/pygments/filters/__init__.py +4 -4
- data/vendor/pygments-main/pygments/formatter.py +6 -1
- data/vendor/pygments-main/pygments/formatters/__init__.py +7 -8
- data/vendor/pygments-main/pygments/formatters/_mapping.py +0 -0
- data/vendor/pygments-main/pygments/formatters/bbcode.py +2 -2
- data/vendor/pygments-main/pygments/formatters/groff.py +3 -3
- data/vendor/pygments-main/pygments/formatters/html.py +38 -40
- data/vendor/pygments-main/pygments/formatters/img.py +51 -11
- data/vendor/pygments-main/pygments/formatters/irc.py +1 -1
- data/vendor/pygments-main/pygments/formatters/latex.py +24 -27
- data/vendor/pygments-main/pygments/formatters/other.py +3 -4
- data/vendor/pygments-main/pygments/formatters/pangomarkup.py +2 -2
- data/vendor/pygments-main/pygments/formatters/rtf.py +228 -25
- data/vendor/pygments-main/pygments/formatters/svg.py +17 -20
- data/vendor/pygments-main/pygments/formatters/terminal.py +1 -1
- data/vendor/pygments-main/pygments/formatters/terminal256.py +1 -1
- data/vendor/pygments-main/pygments/lexer.py +51 -33
- data/vendor/pygments-main/pygments/lexers/__init__.py +12 -12
- data/vendor/pygments-main/pygments/lexers/_ada_builtins.py +1 -1
- 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 +1 -1
- data/vendor/pygments-main/pygments/lexers/_css_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_julia_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_lasso_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_lilypond_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_lua_builtins.py +5 -5
- data/vendor/pygments-main/pygments/lexers/_luau_builtins.py +62 -0
- data/vendor/pygments-main/pygments/lexers/_mapping.py +41 -11
- data/vendor/pygments-main/pygments/lexers/_mql_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_mysql_builtins.py +3 -3
- data/vendor/pygments-main/pygments/lexers/_openedge_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_php_builtins.py +3 -3
- data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +5 -5
- data/vendor/pygments-main/pygments/lexers/_qlik_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_scheme_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +4 -4
- data/vendor/pygments-main/pygments/lexers/_sourcemod_builtins.py +3 -3
- data/vendor/pygments-main/pygments/lexers/_stan_builtins.py +1 -1
- 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 +6 -8
- data/vendor/pygments-main/pygments/lexers/ada.py +3 -3
- data/vendor/pygments-main/pygments/lexers/agile.py +3 -1
- data/vendor/pygments-main/pygments/lexers/algebra.py +9 -13
- data/vendor/pygments-main/pygments/lexers/ambient.py +2 -3
- data/vendor/pygments-main/pygments/lexers/amdgpu.py +3 -3
- data/vendor/pygments-main/pygments/lexers/ampl.py +2 -3
- data/vendor/pygments-main/pygments/lexers/apdlexer.py +4 -3
- data/vendor/pygments-main/pygments/lexers/apl.py +2 -3
- data/vendor/pygments-main/pygments/lexers/archetype.py +8 -12
- data/vendor/pygments-main/pygments/lexers/arrow.py +2 -3
- data/vendor/pygments-main/pygments/lexers/arturo.py +2 -3
- data/vendor/pygments-main/pygments/lexers/asc.py +4 -4
- data/vendor/pygments-main/pygments/lexers/asm.py +28 -15
- data/vendor/pygments-main/pygments/lexers/asn1.py +178 -0
- data/vendor/pygments-main/pygments/lexers/automation.py +6 -8
- data/vendor/pygments-main/pygments/lexers/bare.py +2 -3
- data/vendor/pygments-main/pygments/lexers/basic.py +48 -57
- data/vendor/pygments-main/pygments/lexers/bdd.py +3 -4
- data/vendor/pygments-main/pygments/lexers/berry.py +4 -4
- data/vendor/pygments-main/pygments/lexers/bibtex.py +5 -5
- data/vendor/pygments-main/pygments/lexers/blueprint.py +173 -0
- data/vendor/pygments-main/pygments/lexers/boa.py +4 -4
- data/vendor/pygments-main/pygments/lexers/bqn.py +109 -0
- data/vendor/pygments-main/pygments/lexers/business.py +21 -22
- data/vendor/pygments-main/pygments/lexers/c_cpp.py +9 -4
- data/vendor/pygments-main/pygments/lexers/c_like.py +99 -27
- data/vendor/pygments-main/pygments/lexers/capnproto.py +2 -3
- data/vendor/pygments-main/pygments/lexers/carbon.py +10 -11
- data/vendor/pygments-main/pygments/lexers/cddl.py +8 -9
- data/vendor/pygments-main/pygments/lexers/chapel.py +2 -3
- data/vendor/pygments-main/pygments/lexers/clean.py +2 -1
- data/vendor/pygments-main/pygments/lexers/comal.py +2 -1
- data/vendor/pygments-main/pygments/lexers/compiled.py +2 -1
- data/vendor/pygments-main/pygments/lexers/configs.py +342 -108
- data/vendor/pygments-main/pygments/lexers/console.py +5 -5
- data/vendor/pygments-main/pygments/lexers/cplint.py +2 -3
- data/vendor/pygments-main/pygments/lexers/crystal.py +4 -5
- data/vendor/pygments-main/pygments/lexers/csound.py +6 -8
- data/vendor/pygments-main/pygments/lexers/css.py +5 -5
- data/vendor/pygments-main/pygments/lexers/d.py +4 -3
- data/vendor/pygments-main/pygments/lexers/dalvik.py +2 -3
- data/vendor/pygments-main/pygments/lexers/data.py +8 -12
- data/vendor/pygments-main/pygments/lexers/dax.py +2 -3
- data/vendor/pygments-main/pygments/lexers/devicetree.py +2 -3
- data/vendor/pygments-main/pygments/lexers/diff.py +7 -6
- data/vendor/pygments-main/pygments/lexers/dns.py +109 -0
- data/vendor/pygments-main/pygments/lexers/dotnet.py +19 -14
- data/vendor/pygments-main/pygments/lexers/dsls.py +24 -35
- data/vendor/pygments-main/pygments/lexers/dylan.py +8 -16
- data/vendor/pygments-main/pygments/lexers/ecl.py +2 -3
- data/vendor/pygments-main/pygments/lexers/eiffel.py +3 -4
- data/vendor/pygments-main/pygments/lexers/elm.py +3 -4
- data/vendor/pygments-main/pygments/lexers/elpi.py +28 -21
- data/vendor/pygments-main/pygments/lexers/email.py +3 -3
- data/vendor/pygments-main/pygments/lexers/erlang.py +22 -24
- data/vendor/pygments-main/pygments/lexers/esoteric.py +11 -12
- data/vendor/pygments-main/pygments/lexers/ezhil.py +2 -3
- data/vendor/pygments-main/pygments/lexers/factor.py +2 -3
- data/vendor/pygments-main/pygments/lexers/fantom.py +3 -3
- data/vendor/pygments-main/pygments/lexers/felix.py +9 -10
- data/vendor/pygments-main/pygments/lexers/fift.py +2 -1
- data/vendor/pygments-main/pygments/lexers/floscript.py +2 -3
- data/vendor/pygments-main/pygments/lexers/forth.py +2 -3
- data/vendor/pygments-main/pygments/lexers/fortran.py +6 -7
- data/vendor/pygments-main/pygments/lexers/foxpro.py +3 -3
- data/vendor/pygments-main/pygments/lexers/freefem.py +2 -3
- data/vendor/pygments-main/pygments/lexers/func.py +3 -1
- data/vendor/pygments-main/pygments/lexers/functional.py +2 -1
- data/vendor/pygments-main/pygments/lexers/futhark.py +6 -7
- data/vendor/pygments-main/pygments/lexers/gcodelexer.py +3 -3
- data/vendor/pygments-main/pygments/lexers/gdscript.py +2 -1
- data/vendor/pygments-main/pygments/lexers/go.py +3 -4
- data/vendor/pygments-main/pygments/lexers/grammar_notation.py +6 -9
- data/vendor/pygments-main/pygments/lexers/graph.py +12 -9
- data/vendor/pygments-main/pygments/lexers/graphics.py +13 -17
- data/vendor/pygments-main/pygments/lexers/graphql.py +176 -0
- data/vendor/pygments-main/pygments/lexers/graphviz.py +2 -3
- data/vendor/pygments-main/pygments/lexers/gsql.py +2 -3
- data/vendor/pygments-main/pygments/lexers/haskell.py +27 -32
- data/vendor/pygments-main/pygments/lexers/haxe.py +3 -5
- data/vendor/pygments-main/pygments/lexers/hdl.py +8 -7
- data/vendor/pygments-main/pygments/lexers/hexdump.py +3 -3
- data/vendor/pygments-main/pygments/lexers/html.py +34 -13
- data/vendor/pygments-main/pygments/lexers/idl.py +2 -3
- data/vendor/pygments-main/pygments/lexers/igor.py +305 -290
- data/vendor/pygments-main/pygments/lexers/inferno.py +2 -3
- data/vendor/pygments-main/pygments/lexers/installers.py +7 -9
- data/vendor/pygments-main/pygments/lexers/int_fiction.py +150 -162
- data/vendor/pygments-main/pygments/lexers/iolang.py +2 -3
- data/vendor/pygments-main/pygments/lexers/j.py +2 -3
- data/vendor/pygments-main/pygments/lexers/javascript.py +18 -19
- data/vendor/pygments-main/pygments/lexers/jmespath.py +2 -1
- data/vendor/pygments-main/pygments/lexers/jslt.py +2 -3
- data/vendor/pygments-main/pygments/lexers/jsonnet.py +4 -3
- data/vendor/pygments-main/pygments/lexers/jsx.py +75 -0
- data/vendor/pygments-main/pygments/lexers/julia.py +4 -5
- data/vendor/pygments-main/pygments/lexers/jvm.py +98 -116
- data/vendor/pygments-main/pygments/lexers/kuin.py +2 -3
- data/vendor/pygments-main/pygments/lexers/kusto.py +93 -0
- data/vendor/pygments-main/pygments/lexers/ldap.py +155 -0
- data/vendor/pygments-main/pygments/lexers/lean.py +241 -0
- data/vendor/pygments-main/pygments/lexers/lilypond.py +2 -3
- data/vendor/pygments-main/pygments/lexers/lisp.py +373 -65
- data/vendor/pygments-main/pygments/lexers/macaulay2.py +53 -4
- data/vendor/pygments-main/pygments/lexers/make.py +7 -5
- data/vendor/pygments-main/pygments/lexers/markup.py +242 -91
- data/vendor/pygments-main/pygments/lexers/math.py +2 -1
- data/vendor/pygments-main/pygments/lexers/matlab.py +10 -12
- data/vendor/pygments-main/pygments/lexers/maxima.py +2 -3
- data/vendor/pygments-main/pygments/lexers/meson.py +2 -3
- data/vendor/pygments-main/pygments/lexers/mime.py +4 -4
- data/vendor/pygments-main/pygments/lexers/minecraft.py +24 -27
- data/vendor/pygments-main/pygments/lexers/mips.py +3 -1
- data/vendor/pygments-main/pygments/lexers/ml.py +59 -61
- data/vendor/pygments-main/pygments/lexers/modeling.py +19 -22
- data/vendor/pygments-main/pygments/lexers/modula2.py +2 -3
- data/vendor/pygments-main/pygments/lexers/mojo.py +704 -0
- data/vendor/pygments-main/pygments/lexers/monte.py +2 -3
- data/vendor/pygments-main/pygments/lexers/mosel.py +3 -3
- data/vendor/pygments-main/pygments/lexers/ncl.py +4 -3
- data/vendor/pygments-main/pygments/lexers/nimrod.py +7 -8
- data/vendor/pygments-main/pygments/lexers/nit.py +2 -3
- data/vendor/pygments-main/pygments/lexers/nix.py +40 -31
- data/vendor/pygments-main/pygments/lexers/oberon.py +3 -3
- data/vendor/pygments-main/pygments/lexers/objective.py +14 -6
- data/vendor/pygments-main/pygments/lexers/ooc.py +2 -3
- data/vendor/pygments-main/pygments/lexers/openscad.py +96 -0
- data/vendor/pygments-main/pygments/lexers/other.py +2 -1
- data/vendor/pygments-main/pygments/lexers/parasail.py +2 -3
- data/vendor/pygments-main/pygments/lexers/parsers.py +41 -44
- data/vendor/pygments-main/pygments/lexers/pascal.py +6 -3
- data/vendor/pygments-main/pygments/lexers/pawn.py +5 -5
- data/vendor/pygments-main/pygments/lexers/perl.py +3 -3
- data/vendor/pygments-main/pygments/lexers/phix.py +2 -3
- data/vendor/pygments-main/pygments/lexers/php.py +4 -5
- data/vendor/pygments-main/pygments/lexers/pointless.py +2 -3
- data/vendor/pygments-main/pygments/lexers/pony.py +3 -3
- data/vendor/pygments-main/pygments/lexers/praat.py +2 -3
- data/vendor/pygments-main/pygments/lexers/procfile.py +2 -3
- data/vendor/pygments-main/pygments/lexers/prolog.py +23 -9
- data/vendor/pygments-main/pygments/lexers/promql.py +2 -1
- data/vendor/pygments-main/pygments/lexers/prql.py +251 -0
- data/vendor/pygments-main/pygments/lexers/ptx.py +119 -0
- data/vendor/pygments-main/pygments/lexers/python.py +24 -24
- data/vendor/pygments-main/pygments/lexers/q.py +5 -6
- data/vendor/pygments-main/pygments/lexers/qlik.py +3 -3
- data/vendor/pygments-main/pygments/lexers/qvt.py +5 -3
- data/vendor/pygments-main/pygments/lexers/r.py +8 -6
- data/vendor/pygments-main/pygments/lexers/rdf.py +19 -13
- data/vendor/pygments-main/pygments/lexers/rebol.py +7 -7
- data/vendor/pygments-main/pygments/lexers/resource.py +5 -6
- data/vendor/pygments-main/pygments/lexers/ride.py +4 -5
- data/vendor/pygments-main/pygments/lexers/rita.py +2 -3
- data/vendor/pygments-main/pygments/lexers/rnc.py +2 -3
- data/vendor/pygments-main/pygments/lexers/roboconf.py +5 -5
- data/vendor/pygments-main/pygments/lexers/robotframework.py +2 -3
- data/vendor/pygments-main/pygments/lexers/ruby.py +8 -13
- data/vendor/pygments-main/pygments/lexers/rust.py +9 -10
- data/vendor/pygments-main/pygments/lexers/sas.py +3 -3
- data/vendor/pygments-main/pygments/lexers/savi.py +131 -130
- data/vendor/pygments-main/pygments/lexers/scdoc.py +13 -7
- data/vendor/pygments-main/pygments/lexers/scripting.py +354 -42
- data/vendor/pygments-main/pygments/lexers/sgf.py +2 -3
- data/vendor/pygments-main/pygments/lexers/shell.py +107 -129
- data/vendor/pygments-main/pygments/lexers/sieve.py +3 -3
- data/vendor/pygments-main/pygments/lexers/slash.py +4 -5
- data/vendor/pygments-main/pygments/lexers/smalltalk.py +3 -5
- data/vendor/pygments-main/pygments/lexers/smithy.py +2 -3
- data/vendor/pygments-main/pygments/lexers/smv.py +3 -3
- data/vendor/pygments-main/pygments/lexers/snobol.py +3 -3
- data/vendor/pygments-main/pygments/lexers/solidity.py +3 -3
- data/vendor/pygments-main/pygments/lexers/soong.py +78 -0
- data/vendor/pygments-main/pygments/lexers/sophia.py +3 -4
- data/vendor/pygments-main/pygments/lexers/special.py +8 -3
- data/vendor/pygments-main/pygments/lexers/spice.py +15 -16
- data/vendor/pygments-main/pygments/lexers/sql.py +24 -18
- data/vendor/pygments-main/pygments/lexers/srcinfo.py +3 -3
- data/vendor/pygments-main/pygments/lexers/stata.py +2 -3
- data/vendor/pygments-main/pygments/lexers/supercollider.py +2 -3
- data/vendor/pygments-main/pygments/lexers/tact.py +303 -0
- data/vendor/pygments-main/pygments/lexers/tal.py +13 -10
- data/vendor/pygments-main/pygments/lexers/tcl.py +2 -3
- data/vendor/pygments-main/pygments/lexers/teal.py +2 -3
- data/vendor/pygments-main/pygments/lexers/templates.py +131 -72
- data/vendor/pygments-main/pygments/lexers/teraterm.py +2 -3
- data/vendor/pygments-main/pygments/lexers/testing.py +4 -5
- data/vendor/pygments-main/pygments/lexers/text.py +2 -1
- data/vendor/pygments-main/pygments/lexers/textedit.py +9 -6
- data/vendor/pygments-main/pygments/lexers/textfmts.py +20 -15
- data/vendor/pygments-main/pygments/lexers/theorem.py +41 -115
- data/vendor/pygments-main/pygments/lexers/thingsdb.py +50 -26
- data/vendor/pygments-main/pygments/lexers/tlb.py +3 -1
- data/vendor/pygments-main/pygments/lexers/tls.py +54 -0
- data/vendor/pygments-main/pygments/lexers/tnt.py +2 -3
- data/vendor/pygments-main/pygments/lexers/trafficscript.py +3 -3
- data/vendor/pygments-main/pygments/lexers/typoscript.py +6 -7
- data/vendor/pygments-main/pygments/lexers/typst.py +104 -0
- data/vendor/pygments-main/pygments/lexers/ul4.py +47 -5
- data/vendor/pygments-main/pygments/lexers/unicon.py +9 -7
- data/vendor/pygments-main/pygments/lexers/urbi.py +3 -3
- data/vendor/pygments-main/pygments/lexers/usd.py +6 -11
- data/vendor/pygments-main/pygments/lexers/varnish.py +5 -5
- data/vendor/pygments-main/pygments/lexers/verification.py +4 -5
- data/vendor/pygments-main/pygments/lexers/verifpal.py +65 -0
- data/vendor/pygments-main/pygments/lexers/vip.py +150 -0
- data/vendor/pygments-main/pygments/lexers/vyper.py +140 -0
- data/vendor/pygments-main/pygments/lexers/web.py +2 -1
- data/vendor/pygments-main/pygments/lexers/webassembly.py +2 -3
- data/vendor/pygments-main/pygments/lexers/webidl.py +2 -3
- data/vendor/pygments-main/pygments/lexers/webmisc.py +11 -15
- data/vendor/pygments-main/pygments/lexers/wgsl.py +6 -7
- data/vendor/pygments-main/pygments/lexers/whiley.py +2 -3
- data/vendor/pygments-main/pygments/lexers/wowtoc.py +3 -3
- data/vendor/pygments-main/pygments/lexers/wren.py +3 -4
- data/vendor/pygments-main/pygments/lexers/x10.py +6 -7
- data/vendor/pygments-main/pygments/lexers/xorg.py +2 -1
- data/vendor/pygments-main/pygments/lexers/yang.py +2 -3
- data/vendor/pygments-main/pygments/lexers/yara.py +69 -0
- data/vendor/pygments-main/pygments/lexers/zig.py +2 -1
- data/vendor/pygments-main/pygments/modeline.py +4 -4
- data/vendor/pygments-main/pygments/plugin.py +3 -19
- data/vendor/pygments-main/pygments/regexopt.py +1 -1
- data/vendor/pygments-main/pygments/scanner.py +1 -1
- data/vendor/pygments-main/pygments/sphinxext.py +38 -8
- data/vendor/pygments-main/pygments/style.py +8 -2
- data/vendor/pygments-main/pygments/styles/__init__.py +17 -59
- data/vendor/pygments-main/pygments/styles/_mapping.py +54 -0
- data/vendor/pygments-main/pygments/styles/abap.py +5 -1
- data/vendor/pygments-main/pygments/styles/algol.py +5 -1
- data/vendor/pygments-main/pygments/styles/algol_nu.py +5 -1
- data/vendor/pygments-main/pygments/styles/arduino.py +76 -72
- data/vendor/pygments-main/pygments/styles/autumn.py +6 -1
- data/vendor/pygments-main/pygments/styles/borland.py +6 -1
- data/vendor/pygments-main/pygments/styles/bw.py +6 -1
- data/vendor/pygments-main/pygments/styles/coffee.py +80 -0
- data/vendor/pygments-main/pygments/styles/colorful.py +6 -1
- data/vendor/pygments-main/pygments/styles/default.py +6 -1
- data/vendor/pygments-main/pygments/styles/dracula.py +68 -80
- data/vendor/pygments-main/pygments/styles/emacs.py +6 -1
- data/vendor/pygments-main/pygments/styles/friendly.py +6 -1
- data/vendor/pygments-main/pygments/styles/friendly_grayscale.py +6 -1
- data/vendor/pygments-main/pygments/styles/fruity.py +7 -1
- data/vendor/pygments-main/pygments/styles/gh_dark.py +7 -1
- data/vendor/pygments-main/pygments/styles/gruvbox.py +10 -1
- data/vendor/pygments-main/pygments/styles/igor.py +6 -1
- data/vendor/pygments-main/pygments/styles/inkpot.py +7 -2
- data/vendor/pygments-main/pygments/styles/lightbulb.py +110 -0
- data/vendor/pygments-main/pygments/styles/lilypond.py +8 -2
- data/vendor/pygments-main/pygments/styles/lovelace.py +16 -10
- data/vendor/pygments-main/pygments/styles/manni.py +7 -2
- data/vendor/pygments-main/pygments/styles/material.py +21 -14
- data/vendor/pygments-main/pygments/styles/monokai.py +16 -10
- data/vendor/pygments-main/pygments/styles/murphy.py +7 -2
- data/vendor/pygments-main/pygments/styles/native.py +10 -5
- data/vendor/pygments-main/pygments/styles/nord.py +9 -3
- data/vendor/pygments-main/pygments/styles/onedark.py +6 -2
- data/vendor/pygments-main/pygments/styles/paraiso_dark.py +7 -2
- data/vendor/pygments-main/pygments/styles/paraiso_light.py +7 -2
- data/vendor/pygments-main/pygments/styles/pastie.py +7 -1
- data/vendor/pygments-main/pygments/styles/perldoc.py +7 -1
- data/vendor/pygments-main/pygments/styles/rainbow_dash.py +26 -19
- data/vendor/pygments-main/pygments/styles/rrt.py +8 -2
- data/vendor/pygments-main/pygments/styles/sas.py +6 -1
- data/vendor/pygments-main/pygments/styles/solarized.py +9 -1
- data/vendor/pygments-main/pygments/styles/staroffice.py +6 -1
- data/vendor/pygments-main/pygments/styles/stata_dark.py +6 -2
- data/vendor/pygments-main/pygments/styles/stata_light.py +6 -1
- data/vendor/pygments-main/pygments/styles/tango.py +7 -3
- data/vendor/pygments-main/pygments/styles/trac.py +7 -1
- data/vendor/pygments-main/pygments/styles/vim.py +7 -1
- data/vendor/pygments-main/pygments/styles/vs.py +7 -2
- data/vendor/pygments-main/pygments/styles/xcode.py +6 -1
- data/vendor/pygments-main/pygments/styles/zenburn.py +6 -1
- data/vendor/pygments-main/pygments/token.py +2 -1
- data/vendor/pygments-main/pygments/unistring.py +5 -5
- data/vendor/pygments-main/pygments/util.py +13 -19
- data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info}/METADATA +14 -13
- data/vendor/pygments-main/pygments-2.18.0.dist-info/RECORD +663 -0
- data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info}/WHEEL +1 -2
- data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info/licenses}/AUTHORS +13 -0
- metadata +41 -17
- data/vendor/pygments-main/Pygments-2.15.1.dist-info/RECORD +0 -614
- data/vendor/pygments-main/Pygments-2.15.1.dist-info/top_level.txt +0 -1
- /data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info}/INSTALLER +0 -0
- /data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info}/REQUESTED +0 -0
- /data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info}/entry_points.txt +0 -0
- /data/vendor/pygments-main/{Pygments-2.15.1.dist-info → pygments-2.18.0.dist-info/licenses}/LICENSE +0 -0
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for parser generators.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -38,14 +38,13 @@ class RagelLexer(RegexLexer):
|
|
38
38
|
:class:`RagelEmbeddedLexer` instead (or one of the
|
39
39
|
language-specific subclasses).
|
40
40
|
|
41
|
-
.. versionadded:: 1.1
|
42
|
-
|
43
41
|
"""
|
44
42
|
|
45
43
|
name = 'Ragel'
|
46
44
|
url = 'http://www.colm.net/open-source/ragel/'
|
47
45
|
aliases = ['ragel']
|
48
46
|
filenames = []
|
47
|
+
version_added = '1.1'
|
49
48
|
|
50
49
|
tokens = {
|
51
50
|
'whitespace': [
|
@@ -133,13 +132,13 @@ class RagelEmbeddedLexer(RegexLexer):
|
|
133
132
|
|
134
133
|
This will only highlight Ragel statements. If you want host language
|
135
134
|
highlighting then call the language-specific Ragel lexer.
|
136
|
-
|
137
|
-
.. versionadded:: 1.1
|
138
135
|
"""
|
139
136
|
|
140
137
|
name = 'Embedded Ragel'
|
141
138
|
aliases = ['ragel-em']
|
142
139
|
filenames = ['*.rl']
|
140
|
+
url = 'http://www.colm.net/open-source/ragel/'
|
141
|
+
version_added = '1.1'
|
143
142
|
|
144
143
|
tokens = {
|
145
144
|
'root': [
|
@@ -213,13 +212,13 @@ class RagelEmbeddedLexer(RegexLexer):
|
|
213
212
|
class RagelRubyLexer(DelegatingLexer):
|
214
213
|
"""
|
215
214
|
A lexer for Ragel in a Ruby host file.
|
216
|
-
|
217
|
-
.. versionadded:: 1.1
|
218
215
|
"""
|
219
216
|
|
220
217
|
name = 'Ragel in Ruby Host'
|
221
218
|
aliases = ['ragel-ruby', 'ragel-rb']
|
222
219
|
filenames = ['*.rl']
|
220
|
+
url = 'http://www.colm.net/open-source/ragel/'
|
221
|
+
version_added = '1.1'
|
223
222
|
|
224
223
|
def __init__(self, **options):
|
225
224
|
super().__init__(RubyLexer, RagelEmbeddedLexer, **options)
|
@@ -231,13 +230,13 @@ class RagelRubyLexer(DelegatingLexer):
|
|
231
230
|
class RagelCLexer(DelegatingLexer):
|
232
231
|
"""
|
233
232
|
A lexer for Ragel in a C host file.
|
234
|
-
|
235
|
-
.. versionadded:: 1.1
|
236
233
|
"""
|
237
234
|
|
238
235
|
name = 'Ragel in C Host'
|
239
236
|
aliases = ['ragel-c']
|
240
237
|
filenames = ['*.rl']
|
238
|
+
url = 'http://www.colm.net/open-source/ragel/'
|
239
|
+
version_added = '1.1'
|
241
240
|
|
242
241
|
def __init__(self, **options):
|
243
242
|
super().__init__(CLexer, RagelEmbeddedLexer, **options)
|
@@ -249,13 +248,13 @@ class RagelCLexer(DelegatingLexer):
|
|
249
248
|
class RagelDLexer(DelegatingLexer):
|
250
249
|
"""
|
251
250
|
A lexer for Ragel in a D host file.
|
252
|
-
|
253
|
-
.. versionadded:: 1.1
|
254
251
|
"""
|
255
252
|
|
256
253
|
name = 'Ragel in D Host'
|
257
254
|
aliases = ['ragel-d']
|
258
255
|
filenames = ['*.rl']
|
256
|
+
url = 'http://www.colm.net/open-source/ragel/'
|
257
|
+
version_added = '1.1'
|
259
258
|
|
260
259
|
def __init__(self, **options):
|
261
260
|
super().__init__(DLexer, RagelEmbeddedLexer, **options)
|
@@ -267,13 +266,13 @@ class RagelDLexer(DelegatingLexer):
|
|
267
266
|
class RagelCppLexer(DelegatingLexer):
|
268
267
|
"""
|
269
268
|
A lexer for Ragel in a C++ host file.
|
270
|
-
|
271
|
-
.. versionadded:: 1.1
|
272
269
|
"""
|
273
270
|
|
274
271
|
name = 'Ragel in CPP Host'
|
275
272
|
aliases = ['ragel-cpp']
|
276
273
|
filenames = ['*.rl']
|
274
|
+
url = 'http://www.colm.net/open-source/ragel/'
|
275
|
+
version_added = '1.1'
|
277
276
|
|
278
277
|
def __init__(self, **options):
|
279
278
|
super().__init__(CppLexer, RagelEmbeddedLexer, **options)
|
@@ -285,13 +284,13 @@ class RagelCppLexer(DelegatingLexer):
|
|
285
284
|
class RagelObjectiveCLexer(DelegatingLexer):
|
286
285
|
"""
|
287
286
|
A lexer for Ragel in an Objective C host file.
|
288
|
-
|
289
|
-
.. versionadded:: 1.1
|
290
287
|
"""
|
291
288
|
|
292
289
|
name = 'Ragel in Objective C Host'
|
293
290
|
aliases = ['ragel-objc']
|
294
291
|
filenames = ['*.rl']
|
292
|
+
url = 'http://www.colm.net/open-source/ragel/'
|
293
|
+
version_added = '1.1'
|
295
294
|
|
296
295
|
def __init__(self, **options):
|
297
296
|
super().__init__(ObjectiveCLexer, RagelEmbeddedLexer, **options)
|
@@ -303,13 +302,13 @@ class RagelObjectiveCLexer(DelegatingLexer):
|
|
303
302
|
class RagelJavaLexer(DelegatingLexer):
|
304
303
|
"""
|
305
304
|
A lexer for Ragel in a Java host file.
|
306
|
-
|
307
|
-
.. versionadded:: 1.1
|
308
305
|
"""
|
309
306
|
|
310
307
|
name = 'Ragel in Java Host'
|
311
308
|
aliases = ['ragel-java']
|
312
309
|
filenames = ['*.rl']
|
310
|
+
url = 'http://www.colm.net/open-source/ragel/'
|
311
|
+
version_added = '1.1'
|
313
312
|
|
314
313
|
def __init__(self, **options):
|
315
314
|
super().__init__(JavaLexer, RagelEmbeddedLexer, **options)
|
@@ -320,18 +319,16 @@ class RagelJavaLexer(DelegatingLexer):
|
|
320
319
|
|
321
320
|
class AntlrLexer(RegexLexer):
|
322
321
|
"""
|
323
|
-
Generic
|
322
|
+
Generic ANTLR Lexer.
|
324
323
|
Should not be called directly, instead
|
325
324
|
use DelegatingLexer for your target language.
|
326
|
-
|
327
|
-
.. versionadded:: 1.1
|
328
|
-
|
329
|
-
.. _ANTLR: http://www.antlr.org/
|
330
325
|
"""
|
331
326
|
|
332
327
|
name = 'ANTLR'
|
333
328
|
aliases = ['antlr']
|
334
329
|
filenames = []
|
330
|
+
url = 'https://www.antlr.org'
|
331
|
+
version_added = '1.1'
|
335
332
|
|
336
333
|
_id = r'[A-Za-z]\w*'
|
337
334
|
_TOKEN_REF = r'[A-Z]\w*'
|
@@ -516,13 +513,13 @@ class AntlrLexer(RegexLexer):
|
|
516
513
|
class AntlrCppLexer(DelegatingLexer):
|
517
514
|
"""
|
518
515
|
ANTLR with C++ Target
|
519
|
-
|
520
|
-
.. versionadded:: 1.1
|
521
516
|
"""
|
522
517
|
|
523
518
|
name = 'ANTLR With CPP Target'
|
524
519
|
aliases = ['antlr-cpp']
|
525
520
|
filenames = ['*.G', '*.g']
|
521
|
+
url = 'https://www.antlr.org'
|
522
|
+
version_added = '1.1'
|
526
523
|
|
527
524
|
def __init__(self, **options):
|
528
525
|
super().__init__(CppLexer, AntlrLexer, **options)
|
@@ -535,13 +532,13 @@ class AntlrCppLexer(DelegatingLexer):
|
|
535
532
|
class AntlrObjectiveCLexer(DelegatingLexer):
|
536
533
|
"""
|
537
534
|
ANTLR with Objective-C Target
|
538
|
-
|
539
|
-
.. versionadded:: 1.1
|
540
535
|
"""
|
541
536
|
|
542
537
|
name = 'ANTLR With ObjectiveC Target'
|
543
538
|
aliases = ['antlr-objc']
|
544
539
|
filenames = ['*.G', '*.g']
|
540
|
+
url = 'https://www.antlr.org'
|
541
|
+
version_added = '1.1'
|
545
542
|
|
546
543
|
def __init__(self, **options):
|
547
544
|
super().__init__(ObjectiveCLexer, AntlrLexer, **options)
|
@@ -554,13 +551,13 @@ class AntlrObjectiveCLexer(DelegatingLexer):
|
|
554
551
|
class AntlrCSharpLexer(DelegatingLexer):
|
555
552
|
"""
|
556
553
|
ANTLR with C# Target
|
557
|
-
|
558
|
-
.. versionadded:: 1.1
|
559
554
|
"""
|
560
555
|
|
561
556
|
name = 'ANTLR With C# Target'
|
562
557
|
aliases = ['antlr-csharp', 'antlr-c#']
|
563
558
|
filenames = ['*.G', '*.g']
|
559
|
+
url = 'https://www.antlr.org'
|
560
|
+
version_added = '1.1'
|
564
561
|
|
565
562
|
def __init__(self, **options):
|
566
563
|
super().__init__(CSharpLexer, AntlrLexer, **options)
|
@@ -573,13 +570,13 @@ class AntlrCSharpLexer(DelegatingLexer):
|
|
573
570
|
class AntlrPythonLexer(DelegatingLexer):
|
574
571
|
"""
|
575
572
|
ANTLR with Python Target
|
576
|
-
|
577
|
-
.. versionadded:: 1.1
|
578
573
|
"""
|
579
574
|
|
580
575
|
name = 'ANTLR With Python Target'
|
581
576
|
aliases = ['antlr-python']
|
582
577
|
filenames = ['*.G', '*.g']
|
578
|
+
url = 'https://www.antlr.org'
|
579
|
+
version_added = '1.1'
|
583
580
|
|
584
581
|
def __init__(self, **options):
|
585
582
|
super().__init__(PythonLexer, AntlrLexer, **options)
|
@@ -592,13 +589,13 @@ class AntlrPythonLexer(DelegatingLexer):
|
|
592
589
|
class AntlrJavaLexer(DelegatingLexer):
|
593
590
|
"""
|
594
591
|
ANTLR with Java Target
|
595
|
-
|
596
|
-
.. versionadded:: 1.
|
597
592
|
"""
|
598
593
|
|
599
594
|
name = 'ANTLR With Java Target'
|
600
595
|
aliases = ['antlr-java']
|
601
596
|
filenames = ['*.G', '*.g']
|
597
|
+
url = 'https://www.antlr.org'
|
598
|
+
version_added = '1.1'
|
602
599
|
|
603
600
|
def __init__(self, **options):
|
604
601
|
super().__init__(JavaLexer, AntlrLexer, **options)
|
@@ -611,13 +608,13 @@ class AntlrJavaLexer(DelegatingLexer):
|
|
611
608
|
class AntlrRubyLexer(DelegatingLexer):
|
612
609
|
"""
|
613
610
|
ANTLR with Ruby Target
|
614
|
-
|
615
|
-
.. versionadded:: 1.1
|
616
611
|
"""
|
617
612
|
|
618
613
|
name = 'ANTLR With Ruby Target'
|
619
614
|
aliases = ['antlr-ruby', 'antlr-rb']
|
620
615
|
filenames = ['*.G', '*.g']
|
616
|
+
url = 'https://www.antlr.org'
|
617
|
+
version_added = '1.1'
|
621
618
|
|
622
619
|
def __init__(self, **options):
|
623
620
|
super().__init__(RubyLexer, AntlrLexer, **options)
|
@@ -630,13 +627,13 @@ class AntlrRubyLexer(DelegatingLexer):
|
|
630
627
|
class AntlrPerlLexer(DelegatingLexer):
|
631
628
|
"""
|
632
629
|
ANTLR with Perl Target
|
633
|
-
|
634
|
-
.. versionadded:: 1.1
|
635
630
|
"""
|
636
631
|
|
637
632
|
name = 'ANTLR With Perl Target'
|
638
633
|
aliases = ['antlr-perl']
|
639
634
|
filenames = ['*.G', '*.g']
|
635
|
+
url = 'https://www.antlr.org'
|
636
|
+
version_added = '1.1'
|
640
637
|
|
641
638
|
def __init__(self, **options):
|
642
639
|
super().__init__(PerlLexer, AntlrLexer, **options)
|
@@ -649,13 +646,13 @@ class AntlrPerlLexer(DelegatingLexer):
|
|
649
646
|
class AntlrActionScriptLexer(DelegatingLexer):
|
650
647
|
"""
|
651
648
|
ANTLR with ActionScript Target
|
652
|
-
|
653
|
-
.. versionadded:: 1.1
|
654
649
|
"""
|
655
650
|
|
656
651
|
name = 'ANTLR With ActionScript Target'
|
657
652
|
aliases = ['antlr-actionscript', 'antlr-as']
|
658
653
|
filenames = ['*.G', '*.g']
|
654
|
+
url = 'https://www.antlr.org'
|
655
|
+
version_added = '1.1'
|
659
656
|
|
660
657
|
def __init__(self, **options):
|
661
658
|
from pygments.lexers.actionscript import ActionScriptLexer
|
@@ -737,14 +734,14 @@ class TreetopBaseLexer(RegexLexer):
|
|
737
734
|
|
738
735
|
class TreetopLexer(DelegatingLexer):
|
739
736
|
"""
|
740
|
-
A lexer for
|
741
|
-
|
742
|
-
.. versionadded:: 1.6
|
737
|
+
A lexer for Treetop grammars.
|
743
738
|
"""
|
744
739
|
|
745
740
|
name = 'Treetop'
|
746
741
|
aliases = ['treetop']
|
747
742
|
filenames = ['*.treetop', '*.tt']
|
743
|
+
url = 'https://cjheath.github.io/treetop'
|
744
|
+
version_added = '1.6'
|
748
745
|
|
749
746
|
def __init__(self, **options):
|
750
747
|
super().__init__(RubyLexer, TreetopBaseLexer, **options)
|
@@ -753,16 +750,16 @@ class TreetopLexer(DelegatingLexer):
|
|
753
750
|
class EbnfLexer(RegexLexer):
|
754
751
|
"""
|
755
752
|
Lexer for `ISO/IEC 14977 EBNF
|
756
|
-
<
|
753
|
+
<https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_Form>`_
|
757
754
|
grammars.
|
758
|
-
|
759
|
-
.. versionadded:: 2.0
|
760
755
|
"""
|
761
756
|
|
762
757
|
name = 'EBNF'
|
763
758
|
aliases = ['ebnf']
|
764
759
|
filenames = ['*.ebnf']
|
765
760
|
mimetypes = ['text/x-ebnf']
|
761
|
+
url = 'https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_Form'
|
762
|
+
version_added = '2.0'
|
766
763
|
|
767
764
|
tokens = {
|
768
765
|
'root': [
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for Pascal family languages.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -12,12 +12,12 @@ import re
|
|
12
12
|
|
13
13
|
from pygments.lexer import Lexer
|
14
14
|
from pygments.util import get_bool_opt, get_list_opt
|
15
|
-
from pygments.token import
|
15
|
+
from pygments.token import Comment, Operator, Keyword, Name, String, \
|
16
16
|
Number, Punctuation, Error, Whitespace
|
17
17
|
from pygments.scanner import Scanner
|
18
18
|
|
19
19
|
# compatibility import
|
20
|
-
from pygments.lexers.modula2 import Modula2Lexer
|
20
|
+
from pygments.lexers.modula2 import Modula2Lexer # noqa: F401
|
21
21
|
|
22
22
|
__all__ = ['DelphiLexer', 'PortugolLexer']
|
23
23
|
|
@@ -29,6 +29,7 @@ class PortugolLexer(Lexer):
|
|
29
29
|
filenames = ['*.alg', '*.portugol']
|
30
30
|
mimetypes = []
|
31
31
|
url = "https://www.apoioinformatica.inf.br/produtos/visualg/linguagem"
|
32
|
+
version_added = ''
|
32
33
|
|
33
34
|
def __init__(self, **options):
|
34
35
|
Lexer.__init__(self, **options)
|
@@ -60,6 +61,8 @@ class DelphiLexer(Lexer):
|
|
60
61
|
aliases = ['delphi', 'pas', 'pascal', 'objectpascal']
|
61
62
|
filenames = ['*.pas', '*.dpr']
|
62
63
|
mimetypes = ['text/x-pascal']
|
64
|
+
url = 'https://www.embarcadero.com/products/delphi'
|
65
|
+
version_added = ''
|
63
66
|
|
64
67
|
TURBO_PASCAL_KEYWORDS = (
|
65
68
|
'absolute', 'and', 'array', 'asm', 'begin', 'break', 'case',
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for the Pawn languages.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -19,13 +19,13 @@ __all__ = ['SourcePawnLexer', 'PawnLexer']
|
|
19
19
|
class SourcePawnLexer(RegexLexer):
|
20
20
|
"""
|
21
21
|
For SourcePawn source code with preprocessor directives.
|
22
|
-
|
23
|
-
.. versionadded:: 1.6
|
24
22
|
"""
|
25
23
|
name = 'SourcePawn'
|
26
24
|
aliases = ['sp']
|
27
25
|
filenames = ['*.sp']
|
28
26
|
mimetypes = ['text/x-sourcepawn']
|
27
|
+
url = 'https://github.com/alliedmodders/sourcepawn'
|
28
|
+
version_added = '1.6'
|
29
29
|
|
30
30
|
#: optional Comment or Whitespace
|
31
31
|
_ws = r'(?:\s|//.*?\n|/\*.*?\*/)+'
|
@@ -129,14 +129,14 @@ class SourcePawnLexer(RegexLexer):
|
|
129
129
|
class PawnLexer(RegexLexer):
|
130
130
|
"""
|
131
131
|
For Pawn source code.
|
132
|
-
|
133
|
-
.. versionadded:: 2.0
|
134
132
|
"""
|
135
133
|
|
136
134
|
name = 'Pawn'
|
137
135
|
aliases = ['pawn']
|
138
136
|
filenames = ['*.p', '*.pwn', '*.inc']
|
139
137
|
mimetypes = ['text/x-pawn']
|
138
|
+
url = 'https://www.compuphase.com/pawn/pawn.htm'
|
139
|
+
version_added = '2.0'
|
140
140
|
|
141
141
|
#: optional Comment or Whitespace
|
142
142
|
_ws = r'(?:\s|//.*?\n|/[*][\w\W]*?[*]/)+'
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for Perl, Raku and related languages.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -29,6 +29,7 @@ class PerlLexer(RegexLexer):
|
|
29
29
|
aliases = ['perl', 'pl']
|
30
30
|
filenames = ['*.pl', '*.pm', '*.t', '*.perl']
|
31
31
|
mimetypes = ['text/x-perl', 'application/x-perl']
|
32
|
+
version_added = ''
|
32
33
|
|
33
34
|
flags = re.DOTALL | re.MULTILINE
|
34
35
|
# TODO: give this to a perl guy who knows how to parse perl...
|
@@ -225,8 +226,6 @@ class PerlLexer(RegexLexer):
|
|
225
226
|
class Perl6Lexer(ExtendedRegexLexer):
|
226
227
|
"""
|
227
228
|
For Raku (a.k.a. Perl 6) source code.
|
228
|
-
|
229
|
-
.. versionadded:: 2.0
|
230
229
|
"""
|
231
230
|
|
232
231
|
name = 'Perl6'
|
@@ -236,6 +235,7 @@ class Perl6Lexer(ExtendedRegexLexer):
|
|
236
235
|
'*.6pm', '*.p6m', '*.pm6', '*.t', '*.raku', '*.rakumod',
|
237
236
|
'*.rakutest', '*.rakudoc']
|
238
237
|
mimetypes = ['text/x-perl6', 'application/x-perl6']
|
238
|
+
version_added = '2.0'
|
239
239
|
flags = re.MULTILINE | re.DOTALL
|
240
240
|
|
241
241
|
PERL6_IDENTIFIER_RANGE = r"['\w:-]"
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for Phix.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -21,8 +21,6 @@ class PhixLexer(RegexLexer):
|
|
21
21
|
"""
|
22
22
|
Pygments Lexer for Phix files (.exw).
|
23
23
|
See http://phix.x10.mx
|
24
|
-
|
25
|
-
.. versionadded:: 2.14.0
|
26
24
|
"""
|
27
25
|
|
28
26
|
name = 'Phix'
|
@@ -30,6 +28,7 @@ class PhixLexer(RegexLexer):
|
|
30
28
|
aliases = ['phix']
|
31
29
|
filenames = ['*.exw']
|
32
30
|
mimetypes = ['text/x-phix']
|
31
|
+
version_added = '2.14'
|
33
32
|
|
34
33
|
flags = re.MULTILINE # nb: **NOT** re.DOTALL! (totally spanners comment handling)
|
35
34
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for PHP and related languages.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -25,14 +25,13 @@ class ZephirLexer(RegexLexer):
|
|
25
25
|
|
26
26
|
Zephir is a compiled high level language aimed
|
27
27
|
to the creation of C-extensions for PHP.
|
28
|
-
|
29
|
-
.. versionadded:: 2.0
|
30
28
|
"""
|
31
29
|
|
32
30
|
name = 'Zephir'
|
33
31
|
url = 'http://zephir-lang.com/'
|
34
32
|
aliases = ['zephir']
|
35
33
|
filenames = ['*.zep']
|
34
|
+
version_added = '2.0'
|
36
35
|
|
37
36
|
zephir_keywords = ['fetch', 'echo', 'isset', 'empty']
|
38
37
|
zephir_type = ['bit', 'bits', 'string']
|
@@ -97,12 +96,11 @@ class PsyshConsoleLexer(Lexer):
|
|
97
96
|
=> Closure($name): string {#2371 …3}
|
98
97
|
>>> $greeting('World')
|
99
98
|
=> "Hello, World"
|
100
|
-
|
101
|
-
.. versionadded:: 2.7
|
102
99
|
"""
|
103
100
|
name = 'PsySH console session for PHP'
|
104
101
|
url = 'https://psysh.org/'
|
105
102
|
aliases = ['psysh']
|
103
|
+
version_added = '2.7'
|
106
104
|
|
107
105
|
def __init__(self, **options):
|
108
106
|
options['startinline'] = True
|
@@ -172,6 +170,7 @@ class PhpLexer(RegexLexer):
|
|
172
170
|
aliases = ['php', 'php3', 'php4', 'php5']
|
173
171
|
filenames = ['*.php', '*.php[345]', '*.inc']
|
174
172
|
mimetypes = ['text/x-php']
|
173
|
+
version_added = ''
|
175
174
|
|
176
175
|
# Note that a backslash is included, PHP uses a backslash as a namespace
|
177
176
|
# separator.
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for Pointless.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -18,14 +18,13 @@ __all__ = ['PointlessLexer']
|
|
18
18
|
class PointlessLexer(RegexLexer):
|
19
19
|
"""
|
20
20
|
For Pointless source code.
|
21
|
-
|
22
|
-
.. versionadded:: 2.7
|
23
21
|
"""
|
24
22
|
|
25
23
|
name = 'Pointless'
|
26
24
|
url = 'https://ptls.dev'
|
27
25
|
aliases = ['pointless']
|
28
26
|
filenames = ['*.ptls']
|
27
|
+
version_added = '2.7'
|
29
28
|
|
30
29
|
ops = words([
|
31
30
|
"+", "-", "*", "/", "**", "%", "+=", "-=", "*=",
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for Pony and related languages.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -18,13 +18,13 @@ __all__ = ['PonyLexer']
|
|
18
18
|
class PonyLexer(RegexLexer):
|
19
19
|
"""
|
20
20
|
For Pony source code.
|
21
|
-
|
22
|
-
.. versionadded:: 2.4
|
23
21
|
"""
|
24
22
|
|
25
23
|
name = 'Pony'
|
26
24
|
aliases = ['pony']
|
27
25
|
filenames = ['*.pony']
|
26
|
+
url = 'https://www.ponylang.io'
|
27
|
+
version_added = '2.4'
|
28
28
|
|
29
29
|
_caps = r'(iso|trn|ref|val|box|tag)'
|
30
30
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexer for Praat
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -18,14 +18,13 @@ __all__ = ['PraatLexer']
|
|
18
18
|
class PraatLexer(RegexLexer):
|
19
19
|
"""
|
20
20
|
For Praat scripts.
|
21
|
-
|
22
|
-
.. versionadded:: 2.1
|
23
21
|
"""
|
24
22
|
|
25
23
|
name = 'Praat'
|
26
24
|
url = 'http://www.praat.org'
|
27
25
|
aliases = ['praat']
|
28
26
|
filenames = ['*.praat', '*.proc', '*.psc']
|
27
|
+
version_added = '2.1'
|
29
28
|
|
30
29
|
keywords = (
|
31
30
|
'if', 'then', 'else', 'elsif', 'elif', 'endif', 'fi', 'for', 'from', 'to',
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexer for Procfile file format.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -20,13 +20,12 @@ 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
|
-
|
24
|
-
.. versionadded:: 2.10
|
25
23
|
"""
|
26
24
|
name = 'Procfile'
|
27
25
|
url = 'https://devcenter.heroku.com/articles/procfile#procfile-format'
|
28
26
|
aliases = ['procfile']
|
29
27
|
filenames = ['Procfile']
|
28
|
+
version_added = '2.10'
|
30
29
|
|
31
30
|
tokens = {
|
32
31
|
'root': [
|