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
@@ -5,7 +5,7 @@
|
|
5
5
|
pygments version of the "nord" theme by Arctic Ice Studio
|
6
6
|
https://www.nordtheme.com/
|
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
|
|
@@ -14,11 +14,15 @@ from pygments.token import Keyword, Name, Comment, String, Error, Number, \
|
|
14
14
|
Operator, Generic, Whitespace, Punctuation, Text, Token
|
15
15
|
|
16
16
|
|
17
|
+
__all__ = ['NordStyle', 'NordDarkerStyle']
|
18
|
+
|
19
|
+
|
17
20
|
class NordStyle(Style):
|
18
21
|
"""
|
19
22
|
Pygments version of the "nord" theme by Arctic Ice Studio.
|
20
23
|
"""
|
21
|
-
|
24
|
+
name = 'nord'
|
25
|
+
|
22
26
|
line_number_color = "#D8DEE9"
|
23
27
|
line_number_background_color = "#242933"
|
24
28
|
line_number_special_color = "#242933"
|
@@ -73,6 +77,7 @@ class NordStyle(Style):
|
|
73
77
|
Generic.Error: '#bf616a',
|
74
78
|
Generic.Emph: 'italic',
|
75
79
|
Generic.Strong: 'bold',
|
80
|
+
Generic.EmphStrong: 'bold italic',
|
76
81
|
Generic.Prompt: 'bold #616e88',
|
77
82
|
Generic.Output: '#d8dee9',
|
78
83
|
Generic.Traceback: '#bf616a',
|
@@ -86,7 +91,8 @@ class NordDarkerStyle(Style):
|
|
86
91
|
"""
|
87
92
|
Pygments version of a darker "nord" theme by Arctic Ice Studio
|
88
93
|
"""
|
89
|
-
|
94
|
+
name = 'nord-darker'
|
95
|
+
|
90
96
|
line_number_color = "#D8DEE9"
|
91
97
|
line_number_background_color = "#242933"
|
92
98
|
line_number_special_color = "#242933"
|
@@ -7,7 +7,7 @@
|
|
7
7
|
Inspired by one-dark-ui for the code editor Atom
|
8
8
|
(https://atom.io/themes/one-dark-ui).
|
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
|
|
@@ -16,13 +16,17 @@ from pygments.token import Comment, Keyword, Name, Number, Operator, \
|
|
16
16
|
Punctuation, String, Token
|
17
17
|
|
18
18
|
|
19
|
+
__all__ = ['OneDarkStyle']
|
20
|
+
|
21
|
+
|
19
22
|
class OneDarkStyle(Style):
|
20
23
|
"""
|
21
24
|
Theme inspired by One Dark Pro for Atom.
|
22
25
|
|
23
26
|
.. versionadded:: 2.11
|
24
27
|
"""
|
25
|
-
|
28
|
+
name = 'one-dark'
|
29
|
+
|
26
30
|
background_color = '#282C34'
|
27
31
|
|
28
32
|
styles = {
|
@@ -8,7 +8,7 @@
|
|
8
8
|
Created with Base16 Builder by Chris Kempson
|
9
9
|
(https://github.com/chriskempson/base16-builder).
|
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
|
|
@@ -17,6 +17,9 @@ from pygments.token import Keyword, Name, Comment, String, Error, Text, \
|
|
17
17
|
Number, Operator, Generic, Whitespace, Punctuation, Other, Literal
|
18
18
|
|
19
19
|
|
20
|
+
__all__ = ['ParaisoDarkStyle']
|
21
|
+
|
22
|
+
|
20
23
|
BACKGROUND = "#2f1e2e"
|
21
24
|
CURRENT_LINE = "#41323f"
|
22
25
|
SELECTION = "#4f424c"
|
@@ -32,7 +35,8 @@ PURPLE = "#815ba4"
|
|
32
35
|
|
33
36
|
|
34
37
|
class ParaisoDarkStyle(Style):
|
35
|
-
|
38
|
+
name = 'paraiso-dark'
|
39
|
+
|
36
40
|
background_color = BACKGROUND
|
37
41
|
highlight_color = SELECTION
|
38
42
|
|
@@ -114,6 +118,7 @@ class ParaisoDarkStyle(Style):
|
|
114
118
|
Generic.Output: "", # class: 'go'
|
115
119
|
Generic.Prompt: "bold " + COMMENT, # class: 'gp'
|
116
120
|
Generic.Strong: "bold", # class: 'gs'
|
121
|
+
Generic.EmphStrong: "bold italic", # class: 'ges'
|
117
122
|
Generic.Subheading: "bold " + AQUA, # class: 'gu'
|
118
123
|
Generic.Traceback: "", # class: 'gt'
|
119
124
|
}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
Created with Base16 Builder by Chris Kempson
|
9
9
|
(https://github.com/chriskempson/base16-builder).
|
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
|
|
@@ -17,6 +17,9 @@ from pygments.token import Keyword, Name, Comment, String, Error, Text, \
|
|
17
17
|
Number, Operator, Generic, Whitespace, Punctuation, Other, Literal
|
18
18
|
|
19
19
|
|
20
|
+
__all__ = ['ParaisoLightStyle']
|
21
|
+
|
22
|
+
|
20
23
|
BACKGROUND = "#e7e9db"
|
21
24
|
CURRENT_LINE = "#b9b6b0"
|
22
25
|
SELECTION = "#a39e9b"
|
@@ -32,7 +35,8 @@ PURPLE = "#815ba4"
|
|
32
35
|
|
33
36
|
|
34
37
|
class ParaisoLightStyle(Style):
|
35
|
-
|
38
|
+
name = 'paraiso-light'
|
39
|
+
|
36
40
|
background_color = BACKGROUND
|
37
41
|
highlight_color = SELECTION
|
38
42
|
|
@@ -114,6 +118,7 @@ class ParaisoLightStyle(Style):
|
|
114
118
|
Generic.Output: "", # class: 'go'
|
115
119
|
Generic.Prompt: "bold " + COMMENT, # class: 'gp'
|
116
120
|
Generic.Strong: "bold", # class: 'gs'
|
121
|
+
Generic.EmphStrong: "bold italic", # class: 'ges'
|
117
122
|
Generic.Subheading: "bold " + AQUA, # class: 'gu'
|
118
123
|
Generic.Traceback: "", # class: 'gt'
|
119
124
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
.. _pastie: http://pastie.caboo.se/
|
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
|
|
@@ -15,11 +15,16 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
15
15
|
Number, Operator, Generic, Whitespace
|
16
16
|
|
17
17
|
|
18
|
+
__all__ = ['PastieStyle']
|
19
|
+
|
20
|
+
|
18
21
|
class PastieStyle(Style):
|
19
22
|
"""
|
20
23
|
Style similar to the pastie default style.
|
21
24
|
"""
|
22
25
|
|
26
|
+
name = 'pastie'
|
27
|
+
|
23
28
|
styles = {
|
24
29
|
Whitespace: '#bbbbbb',
|
25
30
|
Comment: '#888888',
|
@@ -64,6 +69,7 @@ class PastieStyle(Style):
|
|
64
69
|
Generic.Error: '#aa0000',
|
65
70
|
Generic.Emph: 'italic',
|
66
71
|
Generic.Strong: 'bold',
|
72
|
+
Generic.EmphStrong: 'bold italic',
|
67
73
|
Generic.Prompt: '#555555',
|
68
74
|
Generic.Output: '#888888',
|
69
75
|
Generic.Traceback: '#aa0000',
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
.. _perldoc: http://perldoc.perl.org/
|
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
|
|
@@ -15,11 +15,16 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
15
15
|
Number, Operator, Generic, Whitespace
|
16
16
|
|
17
17
|
|
18
|
+
__all__ = ['PerldocStyle']
|
19
|
+
|
20
|
+
|
18
21
|
class PerldocStyle(Style):
|
19
22
|
"""
|
20
23
|
Style similar to the style used in the perldoc code blocks.
|
21
24
|
"""
|
22
25
|
|
26
|
+
name = 'perldoc'
|
27
|
+
|
23
28
|
background_color = '#eeeedd'
|
24
29
|
|
25
30
|
styles = {
|
@@ -59,6 +64,7 @@ class PerldocStyle(Style):
|
|
59
64
|
Generic.Error: '#aa0000',
|
60
65
|
Generic.Emph: 'italic',
|
61
66
|
Generic.Strong: 'bold',
|
67
|
+
Generic.EmphStrong: 'bold italic',
|
62
68
|
Generic.Prompt: '#555555',
|
63
69
|
Generic.Output: '#888888',
|
64
70
|
Generic.Traceback: '#aa0000',
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
.. _theme: http://sanssecours.github.io/Rainbow-Dash.tmbundle
|
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
|
|
@@ -14,6 +14,10 @@ from pygments.style import Style
|
|
14
14
|
from pygments.token import Comment, Error, Generic, Name, Number, Operator, \
|
15
15
|
String, Text, Whitespace, Keyword
|
16
16
|
|
17
|
+
|
18
|
+
__all__ = ['RainbowDashStyle']
|
19
|
+
|
20
|
+
|
17
21
|
BLUE_LIGHT = '#0080ff'
|
18
22
|
BLUE = '#2c5dcd'
|
19
23
|
GREEN = '#00cc66'
|
@@ -37,50 +41,53 @@ class RainbowDashStyle(Style):
|
|
37
41
|
A bright and colorful syntax highlighting theme.
|
38
42
|
"""
|
39
43
|
|
44
|
+
name = 'rainbow_dash'
|
45
|
+
|
40
46
|
background_color = WHITE
|
41
47
|
|
42
48
|
styles = {
|
43
|
-
Comment: 'italic {}'
|
49
|
+
Comment: f'italic {BLUE_LIGHT}',
|
44
50
|
Comment.Preproc: 'noitalic',
|
45
51
|
Comment.Special: 'bold',
|
46
52
|
|
47
|
-
Error: 'bg:{} {}'
|
53
|
+
Error: f'bg:{RED} {WHITE}',
|
48
54
|
|
49
|
-
Generic.Deleted: 'border:{} bg:{}'
|
55
|
+
Generic.Deleted: f'border:{RED_DARK} bg:{RED_LIGHT}',
|
50
56
|
Generic.Emph: 'italic',
|
51
57
|
Generic.Error: RED_BRIGHT,
|
52
|
-
Generic.Heading: 'bold {}'
|
53
|
-
Generic.Inserted: 'border:{} bg:{}'
|
58
|
+
Generic.Heading: f'bold {BLUE}',
|
59
|
+
Generic.Inserted: f'border:{GREEN_NEON} bg:{GREEN_LIGHT}',
|
54
60
|
Generic.Output: GREY,
|
55
|
-
Generic.Prompt: 'bold {}'
|
61
|
+
Generic.Prompt: f'bold {BLUE}',
|
56
62
|
Generic.Strong: 'bold',
|
57
|
-
Generic.
|
63
|
+
Generic.EmphStrong: 'bold italic',
|
64
|
+
Generic.Subheading: f'bold {BLUE}',
|
58
65
|
Generic.Traceback: RED_DARK,
|
59
66
|
|
60
|
-
Keyword: 'bold {}'
|
67
|
+
Keyword: f'bold {BLUE}',
|
61
68
|
Keyword.Pseudo: 'nobold',
|
62
69
|
Keyword.Type: PURPLE,
|
63
70
|
|
64
|
-
Name.Attribute: 'italic {}'
|
65
|
-
Name.Builtin: 'bold {}'
|
71
|
+
Name.Attribute: f'italic {BLUE}',
|
72
|
+
Name.Builtin: f'bold {PURPLE}',
|
66
73
|
Name.Class: 'underline',
|
67
74
|
Name.Constant: TURQUOISE,
|
68
|
-
Name.Decorator: 'bold {}'
|
69
|
-
Name.Entity: 'bold {}'
|
70
|
-
Name.Exception: 'bold {}'
|
71
|
-
Name.Function: 'bold {}'
|
72
|
-
Name.Tag: 'bold {}'
|
75
|
+
Name.Decorator: f'bold {ORANGE}',
|
76
|
+
Name.Entity: f'bold {PURPLE}',
|
77
|
+
Name.Exception: f'bold {PURPLE}',
|
78
|
+
Name.Function: f'bold {ORANGE}',
|
79
|
+
Name.Tag: f'bold {BLUE}',
|
73
80
|
|
74
|
-
Number: 'bold {}'
|
81
|
+
Number: f'bold {PURPLE}',
|
75
82
|
|
76
83
|
Operator: BLUE,
|
77
84
|
Operator.Word: 'bold',
|
78
85
|
|
79
86
|
String: GREEN,
|
80
87
|
String.Doc: 'italic',
|
81
|
-
String.Escape: 'bold {}'
|
88
|
+
String.Escape: f'bold {RED_DARK}',
|
82
89
|
String.Other: TURQUOISE,
|
83
|
-
String.Symbol: 'bold {}'
|
90
|
+
String.Symbol: f'bold {RED_DARK}',
|
84
91
|
|
85
92
|
Text: GREY_DARK,
|
86
93
|
|
@@ -4,12 +4,15 @@
|
|
4
4
|
|
5
5
|
pygments "rrt" theme, based on Zap and Emacs defaults.
|
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
11
|
from pygments.style import Style
|
12
|
-
from pygments.token import Token, Comment, Name, Keyword, String
|
12
|
+
from pygments.token import Token, Comment, Name, Keyword, String, Number
|
13
|
+
|
14
|
+
|
15
|
+
__all__ = ['RrtStyle']
|
13
16
|
|
14
17
|
|
15
18
|
class RrtStyle(Style):
|
@@ -17,6 +20,8 @@ class RrtStyle(Style):
|
|
17
20
|
Minimalistic "rrt" theme, based on Zap and Emacs defaults.
|
18
21
|
"""
|
19
22
|
|
23
|
+
name = 'rrt'
|
24
|
+
|
20
25
|
background_color = '#000000'
|
21
26
|
highlight_color = '#0000ff'
|
22
27
|
|
@@ -30,4 +35,5 @@ class RrtStyle(Style):
|
|
30
35
|
Comment.Preproc: '#e5e5e5',
|
31
36
|
String: '#87ceeb',
|
32
37
|
Keyword.Type: '#ee82ee',
|
38
|
+
Number: '#ff00ff',
|
33
39
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
meant to be a complete style. It's merely meant to mimic SAS'
|
7
7
|
program editor syntax highlighting.
|
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
|
|
@@ -15,6 +15,9 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
15
15
|
Number, Other, Whitespace, Generic
|
16
16
|
|
17
17
|
|
18
|
+
__all__ = ['SasStyle']
|
19
|
+
|
20
|
+
|
18
21
|
class SasStyle(Style):
|
19
22
|
"""
|
20
23
|
Style inspired by SAS' enhanced program editor. Note This is not
|
@@ -22,6 +25,8 @@ class SasStyle(Style):
|
|
22
25
|
program editor syntax highlighting.
|
23
26
|
"""
|
24
27
|
|
28
|
+
name = 'sas'
|
29
|
+
|
25
30
|
styles = {
|
26
31
|
Whitespace: '#bbbbbb',
|
27
32
|
Comment: 'italic #008800',
|
@@ -7,7 +7,7 @@
|
|
7
7
|
A Pygments style for the Solarized themes (licensed under MIT).
|
8
8
|
See: https://github.com/altercation/solarized
|
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
|
|
@@ -16,6 +16,9 @@ from pygments.token import Comment, Error, Generic, Keyword, Name, Number, \
|
|
16
16
|
Operator, String, Token
|
17
17
|
|
18
18
|
|
19
|
+
__all__ = ['SolarizedLightStyle', 'SolarizedDarkStyle']
|
20
|
+
|
21
|
+
|
19
22
|
def make_style(colors):
|
20
23
|
return {
|
21
24
|
Token: colors['base0'],
|
@@ -67,6 +70,7 @@ def make_style(colors):
|
|
67
70
|
Generic.Output: colors['base0'],
|
68
71
|
Generic.Prompt: 'bold ' + colors['blue'],
|
69
72
|
Generic.Strong: 'bold',
|
73
|
+
Generic.EmphStrong: 'bold italic',
|
70
74
|
Generic.Traceback: colors['blue'],
|
71
75
|
|
72
76
|
Error: 'bg:' + colors['red'],
|
@@ -117,6 +121,8 @@ class SolarizedDarkStyle(Style):
|
|
117
121
|
The solarized style, dark.
|
118
122
|
"""
|
119
123
|
|
124
|
+
name = 'solarized-dark'
|
125
|
+
|
120
126
|
styles = make_style(DARK_COLORS)
|
121
127
|
background_color = DARK_COLORS['base03']
|
122
128
|
highlight_color = DARK_COLORS['base02']
|
@@ -129,6 +135,8 @@ class SolarizedLightStyle(SolarizedDarkStyle):
|
|
129
135
|
The solarized style, light.
|
130
136
|
"""
|
131
137
|
|
138
|
+
name = 'solarized-light'
|
139
|
+
|
132
140
|
styles = make_style(LIGHT_COLORS)
|
133
141
|
background_color = LIGHT_COLORS['base03']
|
134
142
|
highlight_color = LIGHT_COLORS['base02']
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Style similar to StarOffice style, also in OpenOffice and LibreOffice.
|
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,11 +12,16 @@ from pygments.style import Style
|
|
12
12
|
from pygments.token import Comment, Error, Literal, Name, Token
|
13
13
|
|
14
14
|
|
15
|
+
__all__ = ['StarofficeStyle']
|
16
|
+
|
17
|
+
|
15
18
|
class StarofficeStyle(Style):
|
16
19
|
"""
|
17
20
|
Style similar to StarOffice style, also in OpenOffice and LibreOffice.
|
18
21
|
"""
|
22
|
+
name = 'staroffice'
|
19
23
|
|
24
|
+
|
20
25
|
styles = {
|
21
26
|
Token: '#000080', # Blue
|
22
27
|
Comment: '#696969', # DimGray
|
@@ -6,7 +6,7 @@
|
|
6
6
|
meant to be a complete style, just for Stata's file formats.
|
7
7
|
|
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
|
|
@@ -15,8 +15,12 @@ from pygments.token import Token, Keyword, Name, Comment, String, Error, \
|
|
15
15
|
Number, Operator, Whitespace, Generic
|
16
16
|
|
17
17
|
|
18
|
-
|
18
|
+
__all__ = ['StataDarkStyle']
|
19
|
+
|
19
20
|
|
21
|
+
class StataDarkStyle(Style):
|
22
|
+
name = 'stata-dark'
|
23
|
+
|
20
24
|
background_color = "#232629"
|
21
25
|
highlight_color = "#49483e"
|
22
26
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
Light Style inspired by Stata's do-file editor. Note this is not
|
6
6
|
meant to be a complete style, just for Stata's file formats.
|
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
|
|
@@ -14,12 +14,17 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
14
14
|
Number, Operator, Whitespace, Text
|
15
15
|
|
16
16
|
|
17
|
+
__all__ = ['StataLightStyle']
|
18
|
+
|
19
|
+
|
17
20
|
class StataLightStyle(Style):
|
18
21
|
"""
|
19
22
|
Light mode style inspired by Stata's do-file editor. This is not
|
20
23
|
meant to be a complete style, just for use with Stata.
|
21
24
|
"""
|
22
25
|
|
26
|
+
name = 'stata-light'
|
27
|
+
|
23
28
|
styles = {
|
24
29
|
Text: '#111111',
|
25
30
|
Whitespace: '#bbbbbb',
|
@@ -32,7 +32,7 @@
|
|
32
32
|
have been chosen to have the same style. Similarly, keywords (Keyword.*),
|
33
33
|
and Operator.Word (and, or, in) have been assigned the same style.
|
34
34
|
|
35
|
-
:copyright: Copyright 2006-
|
35
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
36
36
|
:license: BSD, see LICENSE for details.
|
37
37
|
"""
|
38
38
|
|
@@ -41,14 +41,17 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
41
41
|
Number, Operator, Generic, Whitespace, Punctuation, Other, Literal
|
42
42
|
|
43
43
|
|
44
|
+
__all__ = ['TangoStyle']
|
45
|
+
|
46
|
+
|
44
47
|
class TangoStyle(Style):
|
45
48
|
"""
|
46
49
|
The Crunchy default Style inspired from the color palette from
|
47
50
|
the Tango Icon Theme Guidelines.
|
48
51
|
"""
|
49
52
|
|
50
|
-
|
51
|
-
|
53
|
+
name = 'tango'
|
54
|
+
|
52
55
|
background_color = "#f8f8f8"
|
53
56
|
|
54
57
|
styles = {
|
@@ -134,6 +137,7 @@ class TangoStyle(Style):
|
|
134
137
|
Generic.Output: "italic #000000", # class: 'go'
|
135
138
|
Generic.Prompt: "#8f5902", # class: 'gp'
|
136
139
|
Generic.Strong: "bold #000000", # class: 'gs'
|
140
|
+
Generic.EmphStrong: "bold italic #000000", # class: 'ges'
|
137
141
|
Generic.Subheading: "bold #800080", # class: 'gu'
|
138
142
|
Generic.Traceback: "bold #a40000", # class: 'gt'
|
139
143
|
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Port of the default trac highlighter design.
|
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
|
|
@@ -13,11 +13,16 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Number, Operator, Generic, Whitespace
|
14
14
|
|
15
15
|
|
16
|
+
__all__ = ['TracStyle']
|
17
|
+
|
18
|
+
|
16
19
|
class TracStyle(Style):
|
17
20
|
"""
|
18
21
|
Port of the default trac highlighter design.
|
19
22
|
"""
|
20
23
|
|
24
|
+
name = 'trac'
|
25
|
+
|
21
26
|
styles = {
|
22
27
|
Whitespace: '#bbbbbb',
|
23
28
|
Comment: 'italic #999988',
|
@@ -52,6 +57,7 @@ class TracStyle(Style):
|
|
52
57
|
Generic.Error: '#aa0000',
|
53
58
|
Generic.Emph: 'italic',
|
54
59
|
Generic.Strong: 'bold',
|
60
|
+
Generic.EmphStrong: 'bold italic',
|
55
61
|
Generic.Prompt: '#555555',
|
56
62
|
Generic.Output: '#888888',
|
57
63
|
Generic.Traceback: '#aa0000',
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
A highlighting style for Pygments, inspired by vim.
|
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
|
|
@@ -13,11 +13,16 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Number, Operator, Generic, Whitespace, Token
|
14
14
|
|
15
15
|
|
16
|
+
__all__ = ['VimStyle']
|
17
|
+
|
18
|
+
|
16
19
|
class VimStyle(Style):
|
17
20
|
"""
|
18
21
|
Styles somewhat like vim 7.0
|
19
22
|
"""
|
20
23
|
|
24
|
+
name = 'vim'
|
25
|
+
|
21
26
|
background_color = "#000000"
|
22
27
|
highlight_color = "#222222"
|
23
28
|
|
@@ -53,6 +58,7 @@ class VimStyle(Style):
|
|
53
58
|
Generic.Error: "#FF0000",
|
54
59
|
Generic.Emph: "italic",
|
55
60
|
Generic.Strong: "bold",
|
61
|
+
Generic.EmphStrong: "bold italic",
|
56
62
|
Generic.Prompt: "bold #000080",
|
57
63
|
Generic.Output: "#888",
|
58
64
|
Generic.Traceback: "#04D",
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Simple style with MS Visual Studio colors.
|
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
|
|
@@ -13,8 +13,12 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Operator, Generic
|
14
14
|
|
15
15
|
|
16
|
-
|
16
|
+
__all__ = ['VisualStudioStyle']
|
17
|
+
|
17
18
|
|
19
|
+
class VisualStudioStyle(Style):
|
20
|
+
name = 'vs'
|
21
|
+
|
18
22
|
background_color = "#ffffff"
|
19
23
|
|
20
24
|
styles = {
|
@@ -30,6 +34,7 @@ class VisualStudioStyle(Style):
|
|
30
34
|
Generic.Subheading: "bold",
|
31
35
|
Generic.Emph: "italic",
|
32
36
|
Generic.Strong: "bold",
|
37
|
+
Generic.EmphStrong: "bold italic",
|
33
38
|
Generic.Prompt: "bold",
|
34
39
|
|
35
40
|
Error: "border:#FF0000"
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Style similar to the `Xcode` default theme.
|
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
|
|
@@ -13,11 +13,16 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Number, Operator, Literal
|
14
14
|
|
15
15
|
|
16
|
+
__all__ = ['XcodeStyle']
|
17
|
+
|
18
|
+
|
16
19
|
class XcodeStyle(Style):
|
17
20
|
"""
|
18
21
|
Style similar to the Xcode default colouring theme.
|
19
22
|
"""
|
20
23
|
|
24
|
+
name = 'xcode'
|
25
|
+
|
21
26
|
styles = {
|
22
27
|
Comment: '#177500',
|
23
28
|
Comment.Preproc: '#633820',
|
@@ -7,7 +7,7 @@
|
|
7
7
|
See: https://kippura.org/zenburnpage/
|
8
8
|
https://github.com/jnurmine/Zenburn
|
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
|
|
@@ -16,11 +16,16 @@ from pygments.token import Token, Name, Operator, Keyword, Generic, Comment, \
|
|
16
16
|
Number, String, Literal, Punctuation, Error
|
17
17
|
|
18
18
|
|
19
|
+
__all__ = ['ZenburnStyle']
|
20
|
+
|
21
|
+
|
19
22
|
class ZenburnStyle(Style):
|
20
23
|
"""
|
21
24
|
Low contrast Zenburn style.
|
22
25
|
"""
|
23
26
|
|
27
|
+
name = 'zenburn'
|
28
|
+
|
24
29
|
background_color = '#3f3f3f'
|
25
30
|
highlight_color = '#484848'
|
26
31
|
line_number_color = '#5d6262'
|