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
|
using the luminosity value calculated by
|
8
8
|
http://www.workwithcolor.com/color-converter-01.htm
|
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,12 +16,16 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
16
16
|
Number, Operator, Generic, Whitespace
|
17
17
|
|
18
18
|
|
19
|
+
__all__ = ['FriendlyGrayscaleStyle']
|
20
|
+
|
21
|
+
|
19
22
|
class FriendlyGrayscaleStyle(Style):
|
20
23
|
"""
|
21
24
|
A modern grayscale style based on the friendly style.
|
22
25
|
|
23
26
|
.. versionadded:: 2.11
|
24
27
|
"""
|
28
|
+
name = 'friendly_grayscale'
|
25
29
|
|
26
30
|
background_color = "#f0f0f0"
|
27
31
|
|
@@ -67,6 +71,7 @@ class FriendlyGrayscaleStyle(Style):
|
|
67
71
|
Generic.Error: "#898989",
|
68
72
|
Generic.Emph: "italic",
|
69
73
|
Generic.Strong: "bold",
|
74
|
+
Generic.EmphStrong: "bold italic",
|
70
75
|
Generic.Prompt: "bold #7E7E7E",
|
71
76
|
Generic.Output: "#888888",
|
72
77
|
Generic.Traceback: "#6D6D6D",
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
pygments version of my "fruity" vim 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
|
|
@@ -12,11 +12,17 @@ from pygments.style import Style
|
|
12
12
|
from pygments.token import Token, Comment, Name, Keyword, \
|
13
13
|
Generic, Number, String, Whitespace
|
14
14
|
|
15
|
+
|
16
|
+
__all__ = ['FruityStyle']
|
17
|
+
|
18
|
+
|
15
19
|
class FruityStyle(Style):
|
16
20
|
"""
|
17
21
|
Pygments version of the "native" vim theme.
|
18
22
|
"""
|
19
23
|
|
24
|
+
name = 'fruity'
|
25
|
+
|
20
26
|
background_color = '#111111'
|
21
27
|
highlight_color = '#333333'
|
22
28
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
Github's Dark-Colorscheme based theme for Pygments
|
6
6
|
Colors extracted from https://github.com/primer/primitives
|
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,6 +14,9 @@ from pygments.token import Keyword, Name, Comment, Error, Number, Operator, \
|
|
14
14
|
Generic, Text, Literal, String, Token
|
15
15
|
|
16
16
|
|
17
|
+
__all__ = ['GhDarkStyle']
|
18
|
+
|
19
|
+
|
17
20
|
# vars are defined to match the defs in
|
18
21
|
# - [GitHub's VS Code theme](https://github.com/primer/github-vscode-theme) and
|
19
22
|
# - [Primer styles](https://github.com/primer/primitives)
|
@@ -40,6 +43,8 @@ class GhDarkStyle(Style):
|
|
40
43
|
"""
|
41
44
|
Github's Dark-Colorscheme based theme for Pygments
|
42
45
|
"""
|
46
|
+
|
47
|
+
name = 'github-dark'
|
43
48
|
|
44
49
|
background_color = BG_DEFAULT
|
45
50
|
|
@@ -99,6 +104,7 @@ class GhDarkStyle(Style):
|
|
99
104
|
Generic.Output: GRAY_3,
|
100
105
|
Generic.Prompt: GRAY_3,
|
101
106
|
Generic.Strong: "bold",
|
107
|
+
Generic.EmphStrong: "bold italic",
|
102
108
|
Generic.Subheading: BLUE_2,
|
103
109
|
Generic.Traceback: RED_3,
|
104
110
|
Generic.Underline: "underline",
|
@@ -5,7 +5,7 @@
|
|
5
5
|
pygments version of the "gruvbox" vim theme.
|
6
6
|
https://github.com/morhetz/gruvbox
|
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,10 +14,15 @@ from pygments.token import Token, Keyword, Name, Comment, String, Error, \
|
|
14
14
|
Number, Operator, Generic
|
15
15
|
|
16
16
|
|
17
|
+
__all__ = ['GruvboxDarkStyle', 'GruvboxLightStyle']
|
18
|
+
|
19
|
+
|
17
20
|
class GruvboxDarkStyle(Style):
|
18
21
|
"""
|
19
22
|
Pygments version of the "gruvbox" dark vim theme.
|
20
23
|
"""
|
24
|
+
|
25
|
+
name = 'gruvbox-dark'
|
21
26
|
|
22
27
|
background_color = '#282828'
|
23
28
|
highlight_color = '#ebdbb2'
|
@@ -55,6 +60,7 @@ class GruvboxDarkStyle(Style):
|
|
55
60
|
Generic.Error: '#fb4934',
|
56
61
|
Generic.Emph: 'italic',
|
57
62
|
Generic.Strong: 'bold',
|
63
|
+
Generic.EmphStrong: 'bold italic',
|
58
64
|
Generic.Prompt: '#a89984',
|
59
65
|
Generic.Output: '#f2e5bc',
|
60
66
|
Generic.Traceback: '#fb4934',
|
@@ -62,11 +68,14 @@ class GruvboxDarkStyle(Style):
|
|
62
68
|
Error: 'bg:#fb4934 #282828'
|
63
69
|
}
|
64
70
|
|
71
|
+
|
65
72
|
class GruvboxLightStyle(Style):
|
66
73
|
"""
|
67
74
|
Pygments version of the "gruvbox" Light vim theme.
|
68
75
|
"""
|
69
76
|
|
77
|
+
name = 'gruvbox-light'
|
78
|
+
|
70
79
|
background_color = '#fbf1c7'
|
71
80
|
highlight_color = '#3c3836'
|
72
81
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Igor Pro default style.
|
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 Keyword, Name, Comment, String
|
13
13
|
|
14
14
|
|
15
|
+
__all__ = ['IgorStyle']
|
16
|
+
|
17
|
+
|
15
18
|
class IgorStyle(Style):
|
16
19
|
"""
|
17
20
|
Pygments version of the official colors for Igor Pro procedures.
|
18
21
|
"""
|
19
22
|
|
23
|
+
name = 'igor'
|
24
|
+
|
20
25
|
styles = {
|
21
26
|
Comment: 'italic #FF0000',
|
22
27
|
Keyword: '#0000FF',
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
A highlighting style for Pygments, inspired by the Inkpot theme for 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,8 +13,12 @@ from pygments.token import Text, Other, Keyword, Name, Comment, String, \
|
|
13
13
|
Error, Number, Operator, Generic, Whitespace, Punctuation
|
14
14
|
|
15
15
|
|
16
|
-
|
16
|
+
__all__ = ['InkPotStyle']
|
17
|
+
|
17
18
|
|
19
|
+
class InkPotStyle(Style):
|
20
|
+
name = 'inkpot'
|
21
|
+
|
18
22
|
background_color = "#1e1e27"
|
19
23
|
|
20
24
|
styles = {
|
@@ -59,6 +63,7 @@ class InkPotStyle(Style):
|
|
59
63
|
Generic.Error: "#FF0000",
|
60
64
|
Generic.Emph: "italic",
|
61
65
|
Generic.Strong: "bold",
|
66
|
+
Generic.EmphStrong: "bold italic",
|
62
67
|
Generic.Prompt: "bold #000080",
|
63
68
|
Generic.Output: "#888",
|
64
69
|
Generic.Traceback: "#04D",
|
@@ -0,0 +1,110 @@
|
|
1
|
+
"""
|
2
|
+
pygments.styles.lightbulb
|
3
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~
|
4
|
+
|
5
|
+
A minimal dark theme based on the Lightbulb theme for VSCode.
|
6
|
+
|
7
|
+
:copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
|
8
|
+
:license: BSD, see LICENSE for details.
|
9
|
+
"""
|
10
|
+
|
11
|
+
from pygments.style import Style
|
12
|
+
from pygments.token import (
|
13
|
+
Comment,
|
14
|
+
Error,
|
15
|
+
Generic,
|
16
|
+
Keyword,
|
17
|
+
Literal,
|
18
|
+
Name,
|
19
|
+
Number,
|
20
|
+
Operator,
|
21
|
+
Punctuation,
|
22
|
+
String,
|
23
|
+
Token,
|
24
|
+
)
|
25
|
+
|
26
|
+
|
27
|
+
__all__ = ['LightbulbStyle']
|
28
|
+
|
29
|
+
|
30
|
+
COLORS = {
|
31
|
+
"bg": "#1d2331",
|
32
|
+
"blue_1": "#73D0FF",
|
33
|
+
"gray_1": "#7e8aa1",
|
34
|
+
"gray_2": "#3c4354",
|
35
|
+
"gray_3": "#6e7681",
|
36
|
+
"red_1": "#f88f7f",
|
37
|
+
"red_2": "#3d1e20",
|
38
|
+
"orange_1": "#FFAD66",
|
39
|
+
"orange_2": "#F29E74",
|
40
|
+
"yellow_1": "#FFD173",
|
41
|
+
"white": "#d4d2c8",
|
42
|
+
"magenta_1": "#DFBFFF",
|
43
|
+
"green_1": "#D5FF80",
|
44
|
+
"green_2": "#19362c",
|
45
|
+
"cyan_1": "#95E6CB",
|
46
|
+
}
|
47
|
+
|
48
|
+
|
49
|
+
class LightbulbStyle(Style):
|
50
|
+
"""
|
51
|
+
A minimal dark theme based on the Lightbulb theme for VSCode.
|
52
|
+
"""
|
53
|
+
|
54
|
+
name = 'lightbulb'
|
55
|
+
|
56
|
+
background_color = COLORS['bg']
|
57
|
+
highlight_color = COLORS['gray_3']
|
58
|
+
|
59
|
+
line_number_color = COLORS['gray_2']
|
60
|
+
line_number_special_color = COLORS['gray_2']
|
61
|
+
|
62
|
+
styles = {
|
63
|
+
Comment: COLORS["gray_1"],
|
64
|
+
Comment.Hashbang: "italic " + COLORS['red_1'],
|
65
|
+
Comment.Preproc: "bold " + COLORS['orange_1'],
|
66
|
+
Comment.Special: "italic " + COLORS['gray_1'],
|
67
|
+
Error: COLORS['red_1'],
|
68
|
+
Generic.Deleted: f"bg:{COLORS['red_2']} #f88f7f",
|
69
|
+
Generic.Emph: "italic",
|
70
|
+
Generic.Error: "#f88f7f",
|
71
|
+
Generic.Inserted: f"bg:{COLORS['green_2']} #6ad4af",
|
72
|
+
Generic.Output: COLORS['gray_1'],
|
73
|
+
Generic.Strong: "bold",
|
74
|
+
Generic.Traceback: COLORS['red_1'],
|
75
|
+
Keyword: COLORS['orange_1'],
|
76
|
+
Keyword.Constant: COLORS['orange_1'],
|
77
|
+
Keyword.Declaration: COLORS['orange_1'],
|
78
|
+
Keyword.Namespace: COLORS['orange_1'],
|
79
|
+
Keyword.Reserved: COLORS['orange_1'],
|
80
|
+
Keyword.Type: COLORS['blue_1'],
|
81
|
+
Literal: COLORS['green_1'],
|
82
|
+
Name: COLORS['white'],
|
83
|
+
Name.Attribute: COLORS['yellow_1'],
|
84
|
+
Name.Builtin: COLORS['yellow_1'],
|
85
|
+
Name.Builtin.Pseudo: "#5CCFE6",
|
86
|
+
Name.Class: COLORS['blue_1'],
|
87
|
+
Name.Constant: COLORS['yellow_1'],
|
88
|
+
Name.Decorator: "bold italic " + COLORS['gray_1'],
|
89
|
+
Name.Entity: COLORS['cyan_1'],
|
90
|
+
Name.Exception: COLORS['blue_1'],
|
91
|
+
Name.Function: COLORS['yellow_1'],
|
92
|
+
Name.Function.Magic: COLORS['yellow_1'],
|
93
|
+
Name.Other: COLORS['white'],
|
94
|
+
Name.Property: COLORS['yellow_1'],
|
95
|
+
Name.Tag: "#5CCFE6",
|
96
|
+
Name.Variable: COLORS['white'],
|
97
|
+
Number: COLORS['magenta_1'],
|
98
|
+
Operator: COLORS['orange_1'],
|
99
|
+
Operator.Word: COLORS['orange_1'],
|
100
|
+
Punctuation: COLORS['white'],
|
101
|
+
String: COLORS['green_1'],
|
102
|
+
String.Affix: COLORS['orange_2'],
|
103
|
+
String.Doc: COLORS['gray_1'],
|
104
|
+
String.Escape: COLORS['cyan_1'],
|
105
|
+
String.Interpol: COLORS['cyan_1'],
|
106
|
+
String.Other: COLORS['cyan_1'],
|
107
|
+
String.Regex: COLORS['cyan_1'],
|
108
|
+
String.Symbol: COLORS['magenta_1'],
|
109
|
+
Token: COLORS['white'],
|
110
|
+
}
|
@@ -4,20 +4,26 @@
|
|
4
4
|
|
5
5
|
LilyPond-specific style.
|
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
12
|
from pygments.token import Token
|
13
13
|
|
14
|
+
|
15
|
+
__all__ = ['LilyPondStyle']
|
16
|
+
|
17
|
+
|
14
18
|
class LilyPondStyle(Style):
|
15
19
|
"""
|
16
20
|
Style for the LilyPond language.
|
17
|
-
|
21
|
+
|
18
22
|
.. versionadded:: 2.11
|
19
23
|
"""
|
20
24
|
|
25
|
+
name = 'lilypond'
|
26
|
+
|
21
27
|
# Don't show it in the gallery, it's intended for LilyPond
|
22
28
|
# input only and doesn't show good output on Python code.
|
23
29
|
web_style_gallery_exclude = True
|
@@ -8,7 +8,7 @@
|
|
8
8
|
A desaturated, somewhat subdued style created for the Lovelace interactive
|
9
9
|
learning environment.
|
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,20 +17,25 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
17
17
|
Number, Operator, Punctuation, Generic, Whitespace
|
18
18
|
|
19
19
|
|
20
|
+
__all__ = ['LovelaceStyle']
|
21
|
+
|
22
|
+
|
20
23
|
class LovelaceStyle(Style):
|
21
24
|
"""
|
22
25
|
The style used in Lovelace interactive learning environment. Tries to avoid
|
23
26
|
the "angry fruit salad" effect with desaturated and dim colours.
|
24
27
|
"""
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
28
|
+
name = 'lovelace'
|
29
|
+
|
30
|
+
_KW_BLUE = '#2838b0'
|
31
|
+
_NAME_GREEN = '#388038'
|
32
|
+
_DOC_ORANGE = '#b85820'
|
33
|
+
_OW_PURPLE = '#a848a8'
|
34
|
+
_FUN_BROWN = '#785840'
|
35
|
+
_STR_RED = '#b83838'
|
36
|
+
_CLS_CYAN = '#287088'
|
37
|
+
_ESCAPE_LIME = '#709030'
|
38
|
+
_LABEL_CYAN = '#289870'
|
34
39
|
_EXCEPT_YELLOW = '#908828'
|
35
40
|
|
36
41
|
styles = {
|
@@ -88,6 +93,7 @@ class LovelaceStyle(Style):
|
|
88
93
|
Generic.Output: '#666666',
|
89
94
|
Generic.Prompt: '#444444',
|
90
95
|
Generic.Strong: 'bold',
|
96
|
+
Generic.EmphStrong: 'bold italic',
|
91
97
|
Generic.Traceback: _KW_BLUE,
|
92
98
|
|
93
99
|
Error: 'bg:'+_OW_PURPLE,
|
@@ -7,7 +7,7 @@
|
|
7
7
|
This is a port of the style used in the `php port`_ of pygments
|
8
8
|
by Manni. The style is called 'default' there.
|
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,15 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
16
16
|
Number, Operator, Generic, Whitespace
|
17
17
|
|
18
18
|
|
19
|
+
__all__ = ['ManniStyle']
|
20
|
+
|
21
|
+
|
19
22
|
class ManniStyle(Style):
|
20
23
|
"""
|
21
24
|
A colorful style, inspired by the terminal highlighting style.
|
22
25
|
"""
|
23
|
-
|
26
|
+
name = 'manni'
|
27
|
+
|
24
28
|
background_color = '#f0f3f3'
|
25
29
|
|
26
30
|
styles = {
|
@@ -66,6 +70,7 @@ class ManniStyle(Style):
|
|
66
70
|
Generic.Error: '#FF0000',
|
67
71
|
Generic.Emph: 'italic',
|
68
72
|
Generic.Strong: 'bold',
|
73
|
+
Generic.EmphStrong: 'bold italic',
|
69
74
|
Generic.Prompt: 'bold #000099',
|
70
75
|
Generic.Output: '#AAAAAA',
|
71
76
|
Generic.Traceback: '#99CC66',
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
https://github.com/material-theme/vsc-material-theme
|
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,24 +14,30 @@ from pygments.style import Style
|
|
14
14
|
from pygments.token import Keyword, Name, Comment, String, Escape, \
|
15
15
|
Error, Text, Number, Operator, Generic, Punctuation, Literal
|
16
16
|
|
17
|
+
|
18
|
+
__all__ = ['MaterialStyle']
|
19
|
+
|
20
|
+
|
17
21
|
class MaterialStyle(Style):
|
18
22
|
"""
|
19
23
|
This style mimics the Material Theme color scheme.
|
20
24
|
"""
|
25
|
+
name = 'material'
|
26
|
+
|
21
27
|
dark_teal = '#263238'
|
22
|
-
white= '#FFFFFF'
|
23
|
-
black= '#000000'
|
24
|
-
red= '#FF5370'
|
25
|
-
orange= '#F78C6C'
|
26
|
-
yellow= '#FFCB6B'
|
27
|
-
green= '#C3E88D'
|
28
|
-
cyan= '#89DDFF'
|
29
|
-
blue= '#82AAFF'
|
30
|
-
paleblue= '#B2CCD6'
|
31
|
-
purple= '#C792EA'
|
32
|
-
brown= '#C17E70'
|
33
|
-
pink= '#F07178'
|
34
|
-
violet= '#BB80B3'
|
28
|
+
white = '#FFFFFF'
|
29
|
+
black = '#000000'
|
30
|
+
red = '#FF5370'
|
31
|
+
orange = '#F78C6C'
|
32
|
+
yellow = '#FFCB6B'
|
33
|
+
green = '#C3E88D'
|
34
|
+
cyan = '#89DDFF'
|
35
|
+
blue = '#82AAFF'
|
36
|
+
paleblue = '#B2CCD6'
|
37
|
+
purple = '#C792EA'
|
38
|
+
brown = '#C17E70'
|
39
|
+
pink = '#F07178'
|
40
|
+
violet = '#BB80B3'
|
35
41
|
foreground = '#EEFFFF'
|
36
42
|
faded = '#546E7A'
|
37
43
|
|
@@ -112,6 +118,7 @@ class MaterialStyle(Style):
|
|
112
118
|
Generic.Output: faded,
|
113
119
|
Generic.Prompt: yellow,
|
114
120
|
Generic.Strong: red,
|
121
|
+
Generic.EmphStrong: yellow,
|
115
122
|
Generic.Subheading: cyan,
|
116
123
|
Generic.Traceback: red,
|
117
124
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
http://www.monokai.nl/blog/2006/07/15/textmate-color-theme/
|
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,11 +14,16 @@ from pygments.style import Style
|
|
14
14
|
from pygments.token import Keyword, Name, Comment, String, Error, Token, \
|
15
15
|
Number, Operator, Generic, Whitespace, Punctuation, Other, Literal
|
16
16
|
|
17
|
+
|
18
|
+
__all__ = ['MonokaiStyle']
|
19
|
+
|
20
|
+
|
17
21
|
class MonokaiStyle(Style):
|
18
22
|
"""
|
19
23
|
This style mimics the Monokai color scheme.
|
20
24
|
"""
|
21
|
-
|
25
|
+
name = 'monokai'
|
26
|
+
|
22
27
|
background_color = "#272822"
|
23
28
|
highlight_color = "#49483e"
|
24
29
|
|
@@ -26,10 +31,10 @@ class MonokaiStyle(Style):
|
|
26
31
|
# No corresponding class for the following:
|
27
32
|
Token: "#f8f8f2", # class: ''
|
28
33
|
Whitespace: "", # class: 'w'
|
29
|
-
Error: "#
|
34
|
+
Error: "#ed007e bg:#1e0010", # class: 'err'
|
30
35
|
Other: "", # class 'x'
|
31
36
|
|
32
|
-
Comment: "#
|
37
|
+
Comment: "#959077", # class: 'c'
|
33
38
|
Comment.Multiline: "", # class: 'cm'
|
34
39
|
Comment.Preproc: "", # class: 'cp'
|
35
40
|
Comment.Single: "", # class: 'c1'
|
@@ -38,12 +43,12 @@ class MonokaiStyle(Style):
|
|
38
43
|
Keyword: "#66d9ef", # class: 'k'
|
39
44
|
Keyword.Constant: "", # class: 'kc'
|
40
45
|
Keyword.Declaration: "", # class: 'kd'
|
41
|
-
Keyword.Namespace: "#
|
46
|
+
Keyword.Namespace: "#ff4689", # class: 'kn'
|
42
47
|
Keyword.Pseudo: "", # class: 'kp'
|
43
48
|
Keyword.Reserved: "", # class: 'kr'
|
44
49
|
Keyword.Type: "", # class: 'kt'
|
45
50
|
|
46
|
-
Operator: "#
|
51
|
+
Operator: "#ff4689", # class: 'o'
|
47
52
|
Operator.Word: "", # class: 'ow' - like keywords
|
48
53
|
|
49
54
|
Punctuation: "#f8f8f2", # class: 'p'
|
@@ -62,7 +67,7 @@ class MonokaiStyle(Style):
|
|
62
67
|
Name.Label: "", # class: 'nl'
|
63
68
|
Name.Namespace: "", # class: 'nn' - to be revised
|
64
69
|
Name.Other: "#a6e22e", # class: 'nx'
|
65
|
-
Name.Tag: "#
|
70
|
+
Name.Tag: "#ff4689", # class: 'nt' - like a keyword
|
66
71
|
Name.Variable: "", # class: 'nv' - to be revised
|
67
72
|
Name.Variable.Class: "", # class: 'vc' - to be revised
|
68
73
|
Name.Variable.Global: "", # class: 'vg' - to be revised
|
@@ -93,14 +98,15 @@ class MonokaiStyle(Style):
|
|
93
98
|
|
94
99
|
|
95
100
|
Generic: "", # class: 'g'
|
96
|
-
Generic.Deleted: "#
|
101
|
+
Generic.Deleted: "#ff4689", # class: 'gd',
|
97
102
|
Generic.Emph: "italic", # class: 'ge'
|
98
103
|
Generic.Error: "", # class: 'gr'
|
99
104
|
Generic.Heading: "", # class: 'gh'
|
100
105
|
Generic.Inserted: "#a6e22e", # class: 'gi'
|
101
106
|
Generic.Output: "#66d9ef", # class: 'go'
|
102
|
-
Generic.Prompt: "bold #
|
107
|
+
Generic.Prompt: "bold #ff4689", # class: 'gp'
|
103
108
|
Generic.Strong: "bold", # class: 'gs'
|
104
|
-
Generic.
|
109
|
+
Generic.EmphStrong: "bold italic", # class: 'ges'
|
110
|
+
Generic.Subheading: "#959077", # class: 'gu'
|
105
111
|
Generic.Traceback: "", # class: 'gt'
|
106
112
|
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Murphy's style from CodeRay.
|
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,15 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Number, Operator, Generic, Whitespace
|
14
14
|
|
15
15
|
|
16
|
+
__all__ = ['MurphyStyle']
|
17
|
+
|
18
|
+
|
16
19
|
class MurphyStyle(Style):
|
17
20
|
"""
|
18
21
|
Murphy's style from CodeRay.
|
19
22
|
"""
|
20
|
-
|
23
|
+
name = 'murphy'
|
24
|
+
|
21
25
|
styles = {
|
22
26
|
Whitespace: "#bbbbbb",
|
23
27
|
Comment: "#666 italic",
|
@@ -69,6 +73,7 @@ class MurphyStyle(Style):
|
|
69
73
|
Generic.Error: "#FF0000",
|
70
74
|
Generic.Emph: "italic",
|
71
75
|
Generic.Strong: "bold",
|
76
|
+
Generic.EmphStrong: "bold italic",
|
72
77
|
Generic.Prompt: "bold #c65d09",
|
73
78
|
Generic.Output: "#888",
|
74
79
|
Generic.Traceback: "#04D",
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
pygments version of my "native" vim 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,15 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Number, Operator, Generic, Token, Whitespace
|
14
14
|
|
15
15
|
|
16
|
+
__all__ = ['NativeStyle']
|
17
|
+
|
18
|
+
|
16
19
|
class NativeStyle(Style):
|
17
20
|
"""
|
18
21
|
Pygments version of the "native" vim theme.
|
19
22
|
"""
|
20
|
-
|
23
|
+
name = 'native'
|
24
|
+
|
21
25
|
background_color = '#202020'
|
22
26
|
highlight_color = '#404040'
|
23
27
|
line_number_color = '#aaaaaa'
|
@@ -52,14 +56,15 @@ class NativeStyle(Style):
|
|
52
56
|
|
53
57
|
Generic.Heading: 'bold #ffffff',
|
54
58
|
Generic.Subheading: 'underline #ffffff',
|
55
|
-
Generic.Deleted: '#
|
59
|
+
Generic.Deleted: '#ff3a3a',
|
56
60
|
Generic.Inserted: '#589819',
|
57
|
-
Generic.Error: '#
|
61
|
+
Generic.Error: '#ff3a3a',
|
58
62
|
Generic.Emph: 'italic',
|
59
63
|
Generic.Strong: 'bold',
|
64
|
+
Generic.EmphStrong: 'bold italic',
|
60
65
|
Generic.Prompt: '#aaaaaa',
|
61
66
|
Generic.Output: '#cccccc',
|
62
|
-
Generic.Traceback: '#
|
67
|
+
Generic.Traceback: '#ff3a3a',
|
63
68
|
|
64
69
|
Error: 'bg:#e3d2d2 #a61717'
|
65
70
|
}
|