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
@@ -0,0 +1,303 @@
|
|
1
|
+
"""
|
2
|
+
pygments.lexers.tact
|
3
|
+
~~~~~~~~~~~~~~~~~~~~
|
4
|
+
|
5
|
+
Lexers for Tact.
|
6
|
+
|
7
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
8
|
+
:license: BSD, see LICENSE for details.
|
9
|
+
"""
|
10
|
+
|
11
|
+
from pygments.lexer import RegexLexer, include, bygroups, words
|
12
|
+
from pygments.token import Comment, Operator, Keyword, Name, String, \
|
13
|
+
Number, Whitespace, Punctuation
|
14
|
+
|
15
|
+
__all__ = ['TactLexer']
|
16
|
+
|
17
|
+
|
18
|
+
class TactLexer(RegexLexer):
|
19
|
+
"""For Tact source code."""
|
20
|
+
|
21
|
+
name = 'Tact'
|
22
|
+
aliases = ['tact']
|
23
|
+
filenames = ['*.tact']
|
24
|
+
url = "https://tact-lang.org"
|
25
|
+
version_added = '2.18'
|
26
|
+
|
27
|
+
tokens = {
|
28
|
+
'root': [
|
29
|
+
(r'\s+', Whitespace),
|
30
|
+
(r'[.;(),\[\]{}]', Punctuation),
|
31
|
+
(r'\?|!!', Operator),
|
32
|
+
include('comments'),
|
33
|
+
include('import-in'),
|
34
|
+
include('struct-in'),
|
35
|
+
include('contract-or-trait-in'),
|
36
|
+
include('annotation-in'),
|
37
|
+
include('fun-declaration-in'),
|
38
|
+
include('const-declaration-in'),
|
39
|
+
include('statements'),
|
40
|
+
],
|
41
|
+
'import-in': [
|
42
|
+
(r'((?<=\.\.\.)|(?<![.$]))\b(import)\b(\s*)', bygroups(Punctuation, Keyword, Whitespace), 'import'),
|
43
|
+
],
|
44
|
+
'import': [
|
45
|
+
(r';', Punctuation, '#pop'),
|
46
|
+
include('comments'),
|
47
|
+
include('string-in'),
|
48
|
+
(r'\s+', Whitespace),
|
49
|
+
],
|
50
|
+
'struct-in': [
|
51
|
+
(r'((?<=\.\.\.)|(?<![.$]))\b(struct|message)\b', bygroups(Punctuation, Keyword), 'struct'),
|
52
|
+
],
|
53
|
+
'struct': [
|
54
|
+
include('comments'),
|
55
|
+
include('struct-header'),
|
56
|
+
include('struct-body-in'),
|
57
|
+
(r'\s+', Whitespace),
|
58
|
+
],
|
59
|
+
'struct-header': [
|
60
|
+
include('comments'),
|
61
|
+
(r'\b\w+', Name.Class),
|
62
|
+
(r'(\()((?:\b0[xX])[0-9a-fA-F][0-9a-fA-F_]*\b)(\))', bygroups(Punctuation, Number.Hex, Punctuation)),
|
63
|
+
(r'(\()((?:\b[0-9]+\b))(\))', bygroups(Punctuation, Number.Integer, Punctuation)),
|
64
|
+
],
|
65
|
+
'struct-body-in': [
|
66
|
+
(r'\{', Punctuation, 'struct-body'),
|
67
|
+
],
|
68
|
+
'struct-body': [
|
69
|
+
(r'\}', Punctuation, '#pop:2'),
|
70
|
+
include('comments'),
|
71
|
+
include('field-declaration-in'),
|
72
|
+
],
|
73
|
+
'contract-or-trait-in': [
|
74
|
+
(r'((?<=\.\.\.)|(?<![.$]))\b(contract|trait)\b', Keyword, 'contract-or-trait'),
|
75
|
+
],
|
76
|
+
'contract-or-trait': [
|
77
|
+
include('comments'),
|
78
|
+
(r'with', Keyword),
|
79
|
+
(r'\b\w+', Name.Class),
|
80
|
+
include('contract-or-trait-body-in'),
|
81
|
+
(r'\s+', Whitespace),
|
82
|
+
(r',', Punctuation),
|
83
|
+
],
|
84
|
+
'contract-or-trait-body-in': [
|
85
|
+
(r'\{', Punctuation, 'contract-or-trait-body'),
|
86
|
+
],
|
87
|
+
'contract-or-trait-body': [
|
88
|
+
(r'\}', Punctuation, '#pop:2'),
|
89
|
+
include('comments'),
|
90
|
+
include('init-declaration-in'),
|
91
|
+
include('receive-declaration-in'),
|
92
|
+
include('bounce-declaration-in'),
|
93
|
+
include('fun-declaration-in'),
|
94
|
+
include('const-declaration-in'),
|
95
|
+
include('field-declaration-in'),
|
96
|
+
(r'\s+', Whitespace),
|
97
|
+
],
|
98
|
+
'field-declaration-in': [
|
99
|
+
(r'\b\w+', Name.Property, 'field-declaration'),
|
100
|
+
],
|
101
|
+
'field-declaration': [
|
102
|
+
(r';', Punctuation, '#pop'),
|
103
|
+
include('comments'),
|
104
|
+
include('type-annotation-in'),
|
105
|
+
include('variable-init-in'),
|
106
|
+
],
|
107
|
+
'const-declaration-in': [
|
108
|
+
(r'(?=\b(?:(?:get|native|extends|mutates|virtual|override|inline|abstract)\s*)*const\b)', Keyword, 'const-declaration'),
|
109
|
+
],
|
110
|
+
'const-declaration': [
|
111
|
+
(r'(;)', Punctuation, '#pop'),
|
112
|
+
(r'const', Keyword),
|
113
|
+
(words(('get', 'native', 'extends', 'mutates', 'virtual', 'override', 'inline', 'abstract'), suffix=r'\b'), Keyword),
|
114
|
+
(r'\b\w+\b', Name.Constant),
|
115
|
+
include('comments'),
|
116
|
+
include('type-annotation-in'),
|
117
|
+
include('variable-init-in'),
|
118
|
+
(r'\s+', Whitespace),
|
119
|
+
],
|
120
|
+
'init-declaration-in': [
|
121
|
+
(r'(init)', Keyword, 'init-declaration')
|
122
|
+
],
|
123
|
+
'init-declaration': [
|
124
|
+
(r'(?<=\})', Punctuation, '#pop'),
|
125
|
+
include('comments'),
|
126
|
+
include('fun-arguments-in'),
|
127
|
+
include('block-declaration-in'),
|
128
|
+
(r'\s+', Whitespace),
|
129
|
+
],
|
130
|
+
'receive-declaration-in': [
|
131
|
+
(r'(receive|exernal)', Keyword, 'receive-declaration')
|
132
|
+
],
|
133
|
+
'receive-declaration': [
|
134
|
+
(r'(?<=\})', Punctuation, '#pop'),
|
135
|
+
include('comments'),
|
136
|
+
include('fun-arguments-in'),
|
137
|
+
include('block-declaration-in'),
|
138
|
+
],
|
139
|
+
'bounce-declaration-in': [
|
140
|
+
(r'(bounced)', Keyword, 'bounce-declaration')
|
141
|
+
],
|
142
|
+
'bounce-declaration': [
|
143
|
+
(r'(?<=\})', Punctuation, '#pop'),
|
144
|
+
include('comments'),
|
145
|
+
include('fun-arguments-in'),
|
146
|
+
include('block-declaration-in'),
|
147
|
+
],
|
148
|
+
'fun-declaration-in': [
|
149
|
+
(r'(?=\b(?:(?:get|native|extends|mutates|virtual|override|inline|abstract)\s*)*fun\b)', Keyword, 'fun-declaration')
|
150
|
+
],
|
151
|
+
'fun-declaration': [
|
152
|
+
(r'(?<=\}|\;)', Punctuation, '#pop'),
|
153
|
+
(r'fun', Keyword),
|
154
|
+
(r'\b(get|native|extends|mutates|virtual|override|inline|abstract)\b', Keyword),
|
155
|
+
(r'\b[\w]+', Name.Function),
|
156
|
+
include('fun-declaration-body'),
|
157
|
+
(r'[,;]', Punctuation),
|
158
|
+
],
|
159
|
+
'fun-declaration-body': [
|
160
|
+
include('comments'),
|
161
|
+
include('fun-arguments-in'),
|
162
|
+
include('type-annotation-in'),
|
163
|
+
include('block-declaration-in'),
|
164
|
+
(r'\s+', Whitespace),
|
165
|
+
],
|
166
|
+
'fun-arguments-in': [
|
167
|
+
(r'\(', Punctuation, 'fun-arguments'),
|
168
|
+
],
|
169
|
+
'fun-arguments': [
|
170
|
+
(r'\)', Punctuation, '#pop'),
|
171
|
+
include('comments'),
|
172
|
+
include('string-in'),
|
173
|
+
include('type-annotation-in'),
|
174
|
+
(r'(self)|(\b[\w]+\b)', bygroups(Name.Variable.Instance, Name.Variable)),
|
175
|
+
(r',', Punctuation),
|
176
|
+
(r'\s+', Whitespace),
|
177
|
+
],
|
178
|
+
'block-declaration-in': [
|
179
|
+
(r'\{', Punctuation, 'block-declaration')
|
180
|
+
],
|
181
|
+
'block-declaration': [
|
182
|
+
(r'\}', Punctuation, '#pop'),
|
183
|
+
include('statements'),
|
184
|
+
],
|
185
|
+
'statements': [
|
186
|
+
include('comments'),
|
187
|
+
include('block-declaration-in'),
|
188
|
+
include('expressions'),
|
189
|
+
],
|
190
|
+
'annotation-in': [
|
191
|
+
(r'(@)(\w+)(\()', bygroups(Keyword.Pseudo, Keyword, Punctuation), 'annotation')
|
192
|
+
],
|
193
|
+
'annotation': [
|
194
|
+
(r'\)', Punctuation, '#pop'),
|
195
|
+
include('annotation-argument'),
|
196
|
+
(r'\s+', Whitespace),
|
197
|
+
],
|
198
|
+
'annotation-argument': [
|
199
|
+
(r'\w+', Name.Function.Magic),
|
200
|
+
],
|
201
|
+
'expressions': [
|
202
|
+
include('comments'),
|
203
|
+
include('type-annotation-in'),
|
204
|
+
include('keywords'),
|
205
|
+
include('numeric'),
|
206
|
+
include('string-in'),
|
207
|
+
include('variable'),
|
208
|
+
include('function-call'),
|
209
|
+
include('struct-init-in'),
|
210
|
+
],
|
211
|
+
'struct-init-in': [
|
212
|
+
(r'(\b\w+)(\s*)(\{)', bygroups(Name.Class, Whitespace, Punctuation), 'struct-init')
|
213
|
+
],
|
214
|
+
'struct-init': [
|
215
|
+
(r'(\})', Punctuation, '#pop'),
|
216
|
+
include('comments'),
|
217
|
+
include('struct-property-in'),
|
218
|
+
(r'\s+', Whitespace),
|
219
|
+
(r',', Punctuation),
|
220
|
+
],
|
221
|
+
'struct-property-in': [
|
222
|
+
(r'(\b[\w]+)(\s*)(:)', bygroups(Name.Property, Whitespace, Punctuation), 'struct-property')
|
223
|
+
],
|
224
|
+
'struct-property': [
|
225
|
+
(r'(?=\}|\,)', Punctuation, '#pop'),
|
226
|
+
include('comments'),
|
227
|
+
include('expressions'),
|
228
|
+
(r'\s+', Whitespace),
|
229
|
+
],
|
230
|
+
'variable-init-in': [
|
231
|
+
(r'(=)', Operator, 'variable-init')
|
232
|
+
],
|
233
|
+
'variable-init': [
|
234
|
+
(r'(?=\}|\{|\,|\;)',Punctuation, '#pop'),
|
235
|
+
include('comments'),
|
236
|
+
include('expressions'),
|
237
|
+
(r'\s+', Whitespace),
|
238
|
+
],
|
239
|
+
'type-annotation-in': [
|
240
|
+
(r'(:)(\s+)', bygroups(Punctuation, Whitespace), 'type-annotation')
|
241
|
+
],
|
242
|
+
'type-annotation': [
|
243
|
+
(r'(?=\{|\;|\=|\,|\))', Punctuation, '#pop'),
|
244
|
+
include('comments'),
|
245
|
+
include('type-as-in'),
|
246
|
+
include('type-generic-in'),
|
247
|
+
(r'\?', Operator),
|
248
|
+
(r'\b\w+', Keyword.Type),
|
249
|
+
(r'\s+', Whitespace),
|
250
|
+
],
|
251
|
+
'type-generic-in': [
|
252
|
+
(r'<', Punctuation, 'type-generic'),
|
253
|
+
],
|
254
|
+
'type-generic': [
|
255
|
+
(r'>', Punctuation, '#pop'),
|
256
|
+
include('comments'),
|
257
|
+
include('type-as-in'),
|
258
|
+
(r'\b\w+', Keyword.Type),
|
259
|
+
(r'\s+', Whitespace),
|
260
|
+
(r',', Punctuation),
|
261
|
+
],
|
262
|
+
'type-as-in': [
|
263
|
+
(r'\b(as)(\s+)', bygroups(Keyword, Whitespace), 'type-as'),
|
264
|
+
],
|
265
|
+
'type-as': [
|
266
|
+
(r'(?=\{|\;|\=|\,|\)|\>)', Punctuation, '#pop'),
|
267
|
+
include('comments'),
|
268
|
+
(r'\b\w+', Keyword.Type),
|
269
|
+
(r'\s+', Whitespace),
|
270
|
+
],
|
271
|
+
'keywords': [
|
272
|
+
(words(('if', 'else', 'while', 'do', 'until', 'repeat', 'return', 'extends', 'mutates', 'virtual', 'override', 'inline', 'native', 'let', 'const', 'fun', 'self', 'is', 'initOf', 'map', 'bounced', 'get', 'as'), prefix=r'\b', suffix=r'\b'), Keyword),
|
273
|
+
(r'(<=>|>=|<=|!=|==|\^>>|~>>|>>|<<|\/%|\^%|~%|\^\/|~\/|\+=|-=|\*=|\/=|~\/=|\^\/=|%=|\^%=|<<=|>>=|~>>=|\^>>=|&=|\|=|\^=|\^|=|~|\/|%|-|\*|\+|>|<|&|\||:|\?)', Operator),
|
274
|
+
(words(('true', 'false'), prefix=r'\b', suffix=r'\b'), Keyword.Constant),
|
275
|
+
],
|
276
|
+
'string-in': [
|
277
|
+
(r'"', String, 'string'),
|
278
|
+
],
|
279
|
+
'string': [
|
280
|
+
(r'"', String, '#pop'),
|
281
|
+
(r'\\.', String.Escape),
|
282
|
+
(r'[^\\"]+', String.Double),
|
283
|
+
],
|
284
|
+
'numeric': [
|
285
|
+
(r'(?:\b0[xX])[0-9a-fA-F][0-9a-fA-F_]*\b', Number.Hex),
|
286
|
+
(r'(?:\b[0-9]+\b)', Number.Integer),
|
287
|
+
],
|
288
|
+
'comments': [
|
289
|
+
(r'//.*', Comment.Single),
|
290
|
+
(r'/\*', Comment.Multiline, 'comments-multiline'),
|
291
|
+
],
|
292
|
+
'comments-multiline': [
|
293
|
+
(r'\*/', Comment.Multiline, '#pop'),
|
294
|
+
(r'[^*]+', Comment.Multiline),
|
295
|
+
(r'[*]', Comment.Multiline),
|
296
|
+
],
|
297
|
+
'variable': [
|
298
|
+
(r'\b\w+\b(?!\s*\()(?!\s*\{)', Name.Variable)
|
299
|
+
],
|
300
|
+
'function-call': [
|
301
|
+
(r'\b\w+\b(?=\s*\()(?!\s*\{)', Name.Function)
|
302
|
+
],
|
303
|
+
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
.. versionadded:: 2.12
|
8
8
|
|
9
|
-
:copyright: Copyright 2006-
|
9
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
10
10
|
:license: BSD, see LICENSE for details.
|
11
11
|
"""
|
12
12
|
|
@@ -19,15 +19,15 @@ __all__ = ['TalLexer']
|
|
19
19
|
|
20
20
|
class TalLexer(RegexLexer):
|
21
21
|
"""
|
22
|
-
For
|
23
|
-
|
24
|
-
.. versionadded:: 2.12
|
22
|
+
For Uxntal source code.
|
25
23
|
"""
|
26
24
|
|
27
25
|
name = 'Tal'
|
28
26
|
aliases = ['tal', 'uxntal']
|
29
27
|
filenames = ['*.tal']
|
30
28
|
mimetypes = ['text/x-uxntal']
|
29
|
+
url = 'https://wiki.xxiivv.com/site/uxntal.html'
|
30
|
+
version_added = '2.12'
|
31
31
|
|
32
32
|
instructions = [
|
33
33
|
'BRK', 'LIT', 'INC', 'POP', 'DUP', 'NIP', 'SWP', 'OVR', 'ROT',
|
@@ -54,19 +54,22 @@ class TalLexer(RegexLexer):
|
|
54
54
|
(r'[][{}](?!\S)', Punctuation), # delimiters
|
55
55
|
(r'#([0-9a-f]{2}){1,2}(?!\S)', Number.Hex), # integer
|
56
56
|
(r'"\S+', String), # raw string
|
57
|
-
(r"'\S(?!\S)", String.Char), # raw char
|
58
57
|
(r'([0-9a-f]{2}){1,2}(?!\S)', Literal), # raw integer
|
59
58
|
(r'[|$][0-9a-f]{1,4}(?!\S)', Keyword.Declaration), # abs/rel pad
|
60
59
|
(r'%\S+', Name.Decorator), # macro
|
61
60
|
(r'@\S+', Name.Function), # label
|
62
61
|
(r'&\S+', Name.Label), # sublabel
|
63
62
|
(r'/\S+', Name.Tag), # spacer
|
64
|
-
(r'\.\S+', Name.Variable.Magic), # zero page addr
|
65
|
-
(r',\S+', Name.Variable.Instance), # rel addr
|
66
|
-
(r';\S+', Name.Variable.Global), # abs addr
|
67
|
-
(r'
|
63
|
+
(r'\.\S+', Name.Variable.Magic), # literal zero page addr
|
64
|
+
(r',\S+', Name.Variable.Instance), # literal rel addr
|
65
|
+
(r';\S+', Name.Variable.Global), # literal abs addr
|
66
|
+
(r'-\S+', Literal), # raw zero page addr
|
67
|
+
(r'_\S+', Literal), # raw relative addr
|
68
|
+
(r'=\S+', Literal), # raw absolute addr
|
69
|
+
(r'!\S+', Name.Function), # immediate jump
|
70
|
+
(r'\?\S+', Name.Function), # conditional immediate jump
|
68
71
|
(r'~\S+', Keyword.Namespace), # include
|
69
|
-
(r'\S+', Name),
|
72
|
+
(r'\S+', Name.Function), # macro invocation, immediate subroutine
|
70
73
|
]
|
71
74
|
}
|
72
75
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for Tcl 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
|
|
@@ -19,8 +19,6 @@ __all__ = ['TclLexer']
|
|
19
19
|
class TclLexer(RegexLexer):
|
20
20
|
"""
|
21
21
|
For Tcl source code.
|
22
|
-
|
23
|
-
.. versionadded:: 0.10
|
24
22
|
"""
|
25
23
|
|
26
24
|
keyword_cmds_re = words((
|
@@ -48,6 +46,7 @@ class TclLexer(RegexLexer):
|
|
48
46
|
aliases = ['tcl']
|
49
47
|
filenames = ['*.tcl', '*.rvt']
|
50
48
|
mimetypes = ['text/x-tcl', 'text/x-script.tcl', 'application/x-tcl']
|
49
|
+
version_added = '0.10'
|
51
50
|
|
52
51
|
def _gen_command_rules(keyword_cmds_re, builtin_cmds_re, context=""):
|
53
52
|
return [
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexer for TEAL.
|
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,13 +21,12 @@ class TealLexer(RegexLexer):
|
|
21
21
|
|
22
22
|
For more information about the grammar, see:
|
23
23
|
https://github.com/algorand/go-algorand/blob/master/data/transactions/logic/assembler.go
|
24
|
-
|
25
|
-
.. versionadded:: 2.9
|
26
24
|
"""
|
27
25
|
name = 'teal'
|
28
26
|
url = 'https://developer.algorand.org/docs/reference/teal/specification/'
|
29
27
|
aliases = ['teal']
|
30
28
|
filenames = ['*.teal']
|
29
|
+
version_added = '2.9'
|
31
30
|
|
32
31
|
keywords = words({
|
33
32
|
'Sender', 'Fee', 'FirstValid', 'FirstValidTime', 'LastValid', 'Note',
|