pygments.rb 2.4.1 → 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 +9 -1
- data/README.adoc +2 -2
- data/lib/pygments/version.rb +1 -1
- data/pygments.rb.gemspec +2 -2
- 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 +39 -15
- 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
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
Run with `python -I` to regenerate.
|
9
9
|
|
10
|
-
:copyright: Copyright 2006-
|
10
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
11
11
|
:license: BSD, see LICENSE for details.
|
12
12
|
"""
|
13
13
|
|
@@ -3299,7 +3299,7 @@ if __name__ == '__main__': # pragma: no cover
|
|
3299
3299
|
download = urlretrieve(PHP_MANUAL_URL)
|
3300
3300
|
with tarfile.open(download[0]) as tar:
|
3301
3301
|
tar.extractall()
|
3302
|
-
yield from glob.glob("
|
3302
|
+
yield from glob.glob(f"{PHP_MANUAL_DIR}{PHP_REFERENCE_GLOB}")
|
3303
3303
|
os.remove(download[0])
|
3304
3304
|
|
3305
3305
|
def regenerate(filename, modules):
|
@@ -3311,7 +3311,7 @@ if __name__ == '__main__': # pragma: no cover
|
|
3311
3311
|
|
3312
3312
|
with open(filename, 'w', encoding='utf-8') as fp:
|
3313
3313
|
fp.write(header)
|
3314
|
-
fp.write('MODULES =
|
3314
|
+
fp.write(f'MODULES = {pprint.pformat(modules)}\n\n')
|
3315
3315
|
fp.write(footer)
|
3316
3316
|
|
3317
3317
|
def run():
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Run with `python -I` to update itself.
|
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
|
|
@@ -683,7 +683,8 @@ if __name__ == '__main__': # pragma: no cover
|
|
683
683
|
for t in tmp.split(']') if "(" not in t]:
|
684
684
|
for t in tmp.split(','):
|
685
685
|
t = t.strip()
|
686
|
-
if not t:
|
686
|
+
if not t:
|
687
|
+
continue
|
687
688
|
dt.add(" ".join(t.split()))
|
688
689
|
|
689
690
|
dt = list(dt)
|
@@ -724,11 +725,10 @@ if __name__ == '__main__': # pragma: no cover
|
|
724
725
|
data = f.read()
|
725
726
|
|
726
727
|
# Line to start/end inserting
|
727
|
-
re_match = re.compile(
|
728
|
+
re_match = re.compile(rf'^{constname}\s*=\s*\($.*?^\s*\)$', re.M | re.S)
|
728
729
|
m = re_match.search(data)
|
729
730
|
if not m:
|
730
|
-
raise ValueError('Could not find existing definition for
|
731
|
-
(constname,))
|
731
|
+
raise ValueError(f'Could not find existing definition for {constname}')
|
732
732
|
|
733
733
|
new_block = format_lines(constname, content)
|
734
734
|
data = data[:m.start()] + new_block + data[m.end():]
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Builtin list for the ScilabLexer.
|
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
|
|
@@ -3060,10 +3060,10 @@ if __name__ == '__main__': # pragma: no cover
|
|
3060
3060
|
def extract_completion(var_type):
|
3061
3061
|
s = subprocess.Popen(['scilab', '-nwni'], stdin=subprocess.PIPE,
|
3062
3062
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
3063
|
-
output = s.communicate('''\
|
3063
|
+
output = s.communicate(f'''\
|
3064
3064
|
fd = mopen("/dev/stderr", "wt");
|
3065
|
-
mputl(strcat(completion("", "
|
3066
|
-
mclose(fd)\n'''
|
3065
|
+
mputl(strcat(completion("", "{var_type}"), "||"), fd);
|
3066
|
+
mclose(fd)\n''')
|
3067
3067
|
if '||' not in output[1]:
|
3068
3068
|
raise Exception(output[0])
|
3069
3069
|
# Invalid DISPLAY causes this to be output:
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
Run with `python -I` to regenerate.
|
10
10
|
|
11
|
-
:copyright: Copyright 2006-
|
11
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
12
12
|
:license: BSD, see LICENSE for details.
|
13
13
|
"""
|
14
14
|
|
@@ -1136,13 +1136,13 @@ if __name__ == '__main__': # pragma: no cover
|
|
1136
1136
|
|
1137
1137
|
def run():
|
1138
1138
|
version = get_version()
|
1139
|
-
print('> Downloading function index for SourceMod
|
1139
|
+
print(f'> Downloading function index for SourceMod {version}')
|
1140
1140
|
functions = get_sm_functions()
|
1141
1141
|
print('> %d functions found:' % len(functions))
|
1142
1142
|
|
1143
1143
|
functionlist = []
|
1144
1144
|
for full_function_name in functions:
|
1145
|
-
print('>>
|
1145
|
+
print(f'>> {full_function_name}')
|
1146
1146
|
functionlist.append(full_function_name)
|
1147
1147
|
|
1148
1148
|
regenerate(__file__, functionlist)
|
@@ -5,7 +5,7 @@
|
|
5
5
|
This file contains the names of functions for Stan used by
|
6
6
|
``pygments.lexers.math.StanLexer. This is for Stan language version 2.29.0.
|
7
7
|
|
8
|
-
:copyright: Copyright 2006-
|
8
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
9
9
|
:license: BSD, see LICENSE for details.
|
10
10
|
"""
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
These are manually translated lists from
|
6
6
|
http://www.indusoft.com/pdf/VBScript%20Reference.pdf.
|
7
7
|
|
8
|
-
:copyright: Copyright 2006-
|
8
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
9
9
|
:license: BSD, see LICENSE for details.
|
10
10
|
"""
|
11
11
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for ActionScript and MXML.
|
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,8 +20,6 @@ __all__ = ['ActionScriptLexer', 'ActionScript3Lexer', 'MxmlLexer']
|
|
20
20
|
class ActionScriptLexer(RegexLexer):
|
21
21
|
"""
|
22
22
|
For ActionScript source code.
|
23
|
-
|
24
|
-
.. versionadded:: 0.9
|
25
23
|
"""
|
26
24
|
|
27
25
|
name = 'ActionScript'
|
@@ -29,6 +27,8 @@ class ActionScriptLexer(RegexLexer):
|
|
29
27
|
filenames = ['*.as']
|
30
28
|
mimetypes = ['application/x-actionscript', 'text/x-actionscript',
|
31
29
|
'text/actionscript']
|
30
|
+
url = 'https://en.wikipedia.org/wiki/ActionScript'
|
31
|
+
version_added = '0.9'
|
32
32
|
|
33
33
|
flags = re.DOTALL
|
34
34
|
tokens = {
|
@@ -118,8 +118,6 @@ class ActionScriptLexer(RegexLexer):
|
|
118
118
|
class ActionScript3Lexer(RegexLexer):
|
119
119
|
"""
|
120
120
|
For ActionScript 3 source code.
|
121
|
-
|
122
|
-
.. versionadded:: 0.11
|
123
121
|
"""
|
124
122
|
|
125
123
|
name = 'ActionScript 3'
|
@@ -128,6 +126,7 @@ class ActionScript3Lexer(RegexLexer):
|
|
128
126
|
filenames = ['*.as']
|
129
127
|
mimetypes = ['application/x-actionscript3', 'text/x-actionscript3',
|
130
128
|
'text/actionscript3']
|
129
|
+
version_added = '0.11'
|
131
130
|
|
132
131
|
identifier = r'[$a-zA-Z_]\w*'
|
133
132
|
typeidentifier = identifier + r'(?:\.<\w+>)?'
|
@@ -205,14 +204,13 @@ class MxmlLexer(RegexLexer):
|
|
205
204
|
"""
|
206
205
|
For MXML markup.
|
207
206
|
Nested AS3 in <script> tags is highlighted by the appropriate lexer.
|
208
|
-
|
209
|
-
.. versionadded:: 1.1
|
210
207
|
"""
|
211
208
|
flags = re.MULTILINE | re.DOTALL
|
212
209
|
name = 'MXML'
|
213
210
|
aliases = ['mxml']
|
214
211
|
filenames = ['*.mxml']
|
215
|
-
|
212
|
+
url = 'https://en.wikipedia.org/wiki/MXML'
|
213
|
+
version_added = '1.1'
|
216
214
|
|
217
215
|
tokens = {
|
218
216
|
'root': [
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for Ada 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
|
|
@@ -22,14 +22,14 @@ __all__ = ['AdaLexer']
|
|
22
22
|
class AdaLexer(RegexLexer):
|
23
23
|
"""
|
24
24
|
For Ada source code.
|
25
|
-
|
26
|
-
.. versionadded:: 1.3
|
27
25
|
"""
|
28
26
|
|
29
27
|
name = 'Ada'
|
30
28
|
aliases = ['ada', 'ada95', 'ada2005']
|
31
29
|
filenames = ['*.adb', '*.ads', '*.ada']
|
32
30
|
mimetypes = ['text/x-ada']
|
31
|
+
url = 'https://www.adaic.org'
|
32
|
+
version_added = '1.3'
|
33
33
|
|
34
34
|
flags = re.MULTILINE | re.IGNORECASE
|
35
35
|
|
@@ -4,10 +4,12 @@
|
|
4
4
|
|
5
5
|
Just export lexer classes previously contained in this module.
|
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
|
|
11
|
+
# ruff: noqa: F401
|
12
|
+
|
11
13
|
from pygments.lexers.lisp import SchemeLexer
|
12
14
|
from pygments.lexers.jvm import IokeLexer, ClojureLexer
|
13
15
|
from pygments.lexers.python import PythonLexer, PythonConsoleLexer, \
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for computer algebra systems.
|
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 @@ __all__ = ['GAPLexer', 'GAPConsoleLexer', 'MathematicaLexer', 'MuPADLexer',
|
|
21
21
|
class GAPLexer(RegexLexer):
|
22
22
|
"""
|
23
23
|
For GAP source code.
|
24
|
-
|
25
|
-
.. versionadded:: 2.0
|
26
24
|
"""
|
27
25
|
name = 'GAP'
|
28
|
-
url = '
|
26
|
+
url = 'https://www.gap-system.org'
|
29
27
|
aliases = ['gap']
|
30
28
|
filenames = ['*.g', '*.gd', '*.gi', '*.gap']
|
29
|
+
version_added = '2.0'
|
31
30
|
|
32
31
|
tokens = {
|
33
32
|
'root': [
|
@@ -92,12 +91,12 @@ class GAPLexer(RegexLexer):
|
|
92
91
|
class GAPConsoleLexer(Lexer):
|
93
92
|
"""
|
94
93
|
For GAP console sessions. Modeled after JuliaConsoleLexer.
|
95
|
-
|
96
|
-
.. versionadded:: 2.14
|
97
94
|
"""
|
98
95
|
name = 'GAP session'
|
99
96
|
aliases = ['gap-console', 'gap-repl']
|
100
97
|
filenames = ['*.tst']
|
98
|
+
url = 'https://www.gap-system.org'
|
99
|
+
version_added = '2.14'
|
101
100
|
|
102
101
|
def get_tokens_unprocessed(self, text):
|
103
102
|
gaplexer = GAPLexer(**self.options)
|
@@ -149,8 +148,6 @@ class GAPConsoleLexer(Lexer):
|
|
149
148
|
class MathematicaLexer(RegexLexer):
|
150
149
|
"""
|
151
150
|
Lexer for Mathematica source code.
|
152
|
-
|
153
|
-
.. versionadded:: 2.0
|
154
151
|
"""
|
155
152
|
name = 'Mathematica'
|
156
153
|
url = 'http://www.wolfram.com/mathematica/'
|
@@ -160,6 +157,7 @@ class MathematicaLexer(RegexLexer):
|
|
160
157
|
'application/vnd.wolfram.mathematica',
|
161
158
|
'application/vnd.wolfram.mathematica.package',
|
162
159
|
'application/vnd.wolfram.cdf']
|
160
|
+
version_added = '2.0'
|
163
161
|
|
164
162
|
# http://reference.wolfram.com/mathematica/guide/Syntax.html
|
165
163
|
operators = (
|
@@ -171,7 +169,7 @@ class MathematicaLexer(RegexLexer):
|
|
171
169
|
punctuation = (",", ";", "(", ")", "[", "]", "{", "}")
|
172
170
|
|
173
171
|
def _multi_escape(entries):
|
174
|
-
return '(
|
172
|
+
return '({})'.format('|'.join(re.escape(entry) for entry in entries))
|
175
173
|
|
176
174
|
tokens = {
|
177
175
|
'root': [
|
@@ -198,13 +196,12 @@ class MuPADLexer(RegexLexer):
|
|
198
196
|
"""
|
199
197
|
A MuPAD lexer.
|
200
198
|
Contributed by Christopher Creutzig <christopher@creutzig.de>.
|
201
|
-
|
202
|
-
.. versionadded:: 0.8
|
203
199
|
"""
|
204
200
|
name = 'MuPAD'
|
205
201
|
url = 'http://www.mupad.com'
|
206
202
|
aliases = ['mupad']
|
207
203
|
filenames = ['*.mu']
|
204
|
+
version_added = '0.8'
|
208
205
|
|
209
206
|
tokens = {
|
210
207
|
'root': [
|
@@ -270,13 +267,12 @@ class MuPADLexer(RegexLexer):
|
|
270
267
|
class BCLexer(RegexLexer):
|
271
268
|
"""
|
272
269
|
A BC lexer.
|
273
|
-
|
274
|
-
.. versionadded:: 2.1
|
275
270
|
"""
|
276
271
|
name = 'BC'
|
277
272
|
url = 'https://www.gnu.org/software/bc/'
|
278
273
|
aliases = ['bc']
|
279
274
|
filenames = ['*.bc']
|
275
|
+
version_added = '2.1'
|
280
276
|
|
281
277
|
tokens = {
|
282
278
|
'root': [
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for AmbientTalk language.
|
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,14 +20,13 @@ __all__ = ['AmbientTalkLexer']
|
|
20
20
|
class AmbientTalkLexer(RegexLexer):
|
21
21
|
"""
|
22
22
|
Lexer for AmbientTalk source code.
|
23
|
-
|
24
|
-
.. versionadded:: 2.0
|
25
23
|
"""
|
26
24
|
name = 'AmbientTalk'
|
27
25
|
url = 'https://code.google.com/p/ambienttalk'
|
28
26
|
filenames = ['*.at']
|
29
27
|
aliases = ['ambienttalk', 'ambienttalk/2', 'at']
|
30
28
|
mimetypes = ['text/x-ambienttalk']
|
29
|
+
version_added = '2.0'
|
31
30
|
|
32
31
|
flags = re.MULTILINE | re.DOTALL
|
33
32
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for the AMDGPU ISA assembly.
|
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,12 +19,12 @@ __all__ = ['AMDGPULexer']
|
|
19
19
|
class AMDGPULexer(RegexLexer):
|
20
20
|
"""
|
21
21
|
For AMD GPU assembly.
|
22
|
-
|
23
|
-
.. versionadded:: 2.8
|
24
22
|
"""
|
25
23
|
name = 'AMDGPU'
|
26
24
|
aliases = ['amdgpu']
|
27
25
|
filenames = ['*.isa']
|
26
|
+
url = 'https://gpuopen.com/amd-isa-documentation'
|
27
|
+
version_added = '2.8'
|
28
28
|
|
29
29
|
flags = re.IGNORECASE
|
30
30
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for the AMPL language.
|
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,12 @@ __all__ = ['AmplLexer']
|
|
18
18
|
class AmplLexer(RegexLexer):
|
19
19
|
"""
|
20
20
|
For AMPL source code.
|
21
|
-
|
22
|
-
.. versionadded:: 2.2
|
23
21
|
"""
|
24
22
|
name = 'Ampl'
|
25
23
|
url = 'http://ampl.com/'
|
26
24
|
aliases = ['ampl']
|
27
25
|
filenames = ['*.run']
|
26
|
+
version_added = '2.2'
|
28
27
|
|
29
28
|
tokens = {
|
30
29
|
'root': [
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for ANSYS Parametric Design Language.
|
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,12 +20,13 @@ __all__ = ['apdlexer']
|
|
20
20
|
class apdlexer(RegexLexer):
|
21
21
|
"""
|
22
22
|
For APDL source code.
|
23
|
-
|
24
|
-
.. versionadded:: 2.9
|
25
23
|
"""
|
26
24
|
name = 'ANSYS parametric design language'
|
27
25
|
aliases = ['ansys', 'apdl']
|
28
26
|
filenames = ['*.ans']
|
27
|
+
url = 'https://www.ansys.com'
|
28
|
+
version_added = '2.9'
|
29
|
+
|
29
30
|
flags = re.IGNORECASE
|
30
31
|
|
31
32
|
# list of elements
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexers for APL.
|
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,8 +18,6 @@ __all__ = ['APLLexer']
|
|
18
18
|
class APLLexer(RegexLexer):
|
19
19
|
"""
|
20
20
|
A simple APL lexer.
|
21
|
-
|
22
|
-
.. versionadded:: 2.0
|
23
21
|
"""
|
24
22
|
name = 'APL'
|
25
23
|
url = 'https://en.m.wikipedia.org/wiki/APL_(programming_language)'
|
@@ -28,6 +26,7 @@ class APLLexer(RegexLexer):
|
|
28
26
|
'*.apl', '*.aplf', '*.aplo', '*.apln',
|
29
27
|
'*.aplc', '*.apli', '*.dyalog',
|
30
28
|
]
|
29
|
+
version_added = '2.0'
|
31
30
|
|
32
31
|
tokens = {
|
33
32
|
'root': [
|
@@ -2,18 +2,14 @@
|
|
2
2
|
pygments.lexers.archetype
|
3
3
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
4
4
|
|
5
|
-
Lexer for Archetype-related syntaxes, including
|
6
|
-
|
7
|
-
- ODIN syntax <https://github.com/openEHR/odin>
|
8
|
-
- ADL syntax <http://www.openehr.org/releases/trunk/architecture/am/adl2.pdf>
|
9
|
-
- cADL sub-syntax of ADL
|
5
|
+
Lexer for Archetype-related syntaxes, including ODIN, ADL and cADL.
|
10
6
|
|
11
7
|
For uses of this syntax, see the openEHR archetypes <http://www.openEHR.org/ckm>
|
12
8
|
|
13
9
|
Contributed by Thomas Beale <https://github.com/wolandscat>,
|
14
10
|
<https://bitbucket.org/thomas_beale>.
|
15
11
|
|
16
|
-
:copyright: Copyright 2006-
|
12
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
17
13
|
:license: BSD, see LICENSE for details.
|
18
14
|
"""
|
19
15
|
|
@@ -139,13 +135,13 @@ class AtomsLexer(RegexLexer):
|
|
139
135
|
class OdinLexer(AtomsLexer):
|
140
136
|
"""
|
141
137
|
Lexer for ODIN syntax.
|
142
|
-
|
143
|
-
.. versionadded:: 2.1
|
144
138
|
"""
|
145
139
|
name = 'ODIN'
|
146
140
|
aliases = ['odin']
|
147
141
|
filenames = ['*.odin']
|
148
142
|
mimetypes = ['text/odin']
|
143
|
+
url = 'https://github.com/openEHR/odin'
|
144
|
+
version_added = '2.1'
|
149
145
|
|
150
146
|
tokens = {
|
151
147
|
'path': [
|
@@ -188,12 +184,12 @@ class OdinLexer(AtomsLexer):
|
|
188
184
|
class CadlLexer(AtomsLexer):
|
189
185
|
"""
|
190
186
|
Lexer for cADL syntax.
|
191
|
-
|
192
|
-
.. versionadded:: 2.1
|
193
187
|
"""
|
194
188
|
name = 'cADL'
|
195
189
|
aliases = ['cadl']
|
196
190
|
filenames = ['*.cadl']
|
191
|
+
url = 'https://specifications.openehr.org/releases/AM/latest/ADL2.html#_cadl_constraint_adl'
|
192
|
+
version_added = '2.1'
|
197
193
|
|
198
194
|
tokens = {
|
199
195
|
'path': [
|
@@ -253,13 +249,13 @@ class CadlLexer(AtomsLexer):
|
|
253
249
|
class AdlLexer(AtomsLexer):
|
254
250
|
"""
|
255
251
|
Lexer for ADL syntax.
|
256
|
-
|
257
|
-
.. versionadded:: 2.1
|
258
252
|
"""
|
259
253
|
|
260
254
|
name = 'ADL'
|
261
255
|
aliases = ['adl']
|
262
256
|
filenames = ['*.adl', '*.adls', '*.adlf', '*.adlx']
|
257
|
+
url = 'https://specifications.openehr.org/releases/AM/latest/ADL2.html'
|
258
|
+
version_added = '2.1'
|
263
259
|
|
264
260
|
tokens = {
|
265
261
|
'whitespace': [
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexer for Arrow.
|
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
|
|
@@ -22,14 +22,13 @@ DECL = TYPES + r'(\s+)' + IDENT
|
|
22
22
|
class ArrowLexer(RegexLexer):
|
23
23
|
"""
|
24
24
|
Lexer for Arrow
|
25
|
-
|
26
|
-
.. versionadded:: 2.7
|
27
25
|
"""
|
28
26
|
|
29
27
|
name = 'Arrow'
|
30
28
|
url = 'https://pypi.org/project/py-arrow-lang/'
|
31
29
|
aliases = ['arrow']
|
32
30
|
filenames = ['*.arw']
|
31
|
+
version_added = '2.7'
|
33
32
|
|
34
33
|
tokens = {
|
35
34
|
'root': [
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexer for the Arturo language.
|
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
|
|
@@ -24,14 +24,13 @@ class ArturoLexer(RegexLexer):
|
|
24
24
|
|
25
25
|
See `Arturo's Github <https://github.com/arturo-lang/arturo>`_
|
26
26
|
and `Arturo's Website <https://arturo-lang.io/>`_.
|
27
|
-
|
28
|
-
.. versionadded:: 2.14.0
|
29
27
|
"""
|
30
28
|
|
31
29
|
name = 'Arturo'
|
32
30
|
aliases = ['arturo', 'art']
|
33
31
|
filenames = ['*.art']
|
34
32
|
url = 'https://arturo-lang.io/'
|
33
|
+
version_added = '2.14'
|
35
34
|
|
36
35
|
def __init__(self, **options):
|
37
36
|
self.handle_annotateds = get_bool_opt(options, 'handle_annotateds',
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Lexer for various ASCII armored files.
|
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
|
import re
|
@@ -19,8 +19,6 @@ class AscLexer(RegexLexer):
|
|
19
19
|
"""
|
20
20
|
Lexer for ASCII armored files, containing `-----BEGIN/END ...-----` wrapped
|
21
21
|
base64 data.
|
22
|
-
|
23
|
-
.. versionadded:: 2.10
|
24
22
|
"""
|
25
23
|
name = 'ASCII armored'
|
26
24
|
aliases = ['asc', 'pem']
|
@@ -31,7 +29,9 @@ class AscLexer(RegexLexer):
|
|
31
29
|
'id_rsa', # SSH private keys
|
32
30
|
]
|
33
31
|
mimetypes = ['application/pgp-keys', 'application/pgp-encrypted',
|
34
|
-
'application/pgp-signature']
|
32
|
+
'application/pgp-signature', 'application/pem-certificate-chain']
|
33
|
+
url = 'https://www.openpgp.org'
|
34
|
+
version_added = '2.10'
|
35
35
|
|
36
36
|
flags = re.MULTILINE
|
37
37
|
|