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
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Arduino® Syntax highlighting 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
|
|
@@ -13,84 +13,88 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Number, Operator, Generic, Whitespace
|
14
14
|
|
15
15
|
|
16
|
+
__all__ = ['ArduinoStyle']
|
17
|
+
|
18
|
+
|
16
19
|
class ArduinoStyle(Style):
|
17
20
|
"""
|
18
21
|
The Arduino® language style. This style is designed to highlight the
|
19
22
|
Arduino source code, so expect the best results with it.
|
20
23
|
"""
|
24
|
+
name = 'arduino'
|
21
25
|
|
22
26
|
background_color = "#ffffff"
|
23
27
|
|
24
28
|
styles = {
|
25
|
-
Whitespace: "",
|
26
|
-
Error: "#a61717",
|
27
|
-
|
28
|
-
Comment: "#95a5a6",
|
29
|
-
Comment.Multiline: "",
|
30
|
-
Comment.Preproc: "#728E00",
|
31
|
-
Comment.Single: "",
|
32
|
-
Comment.Special: "",
|
33
|
-
|
34
|
-
Keyword: "#728E00",
|
35
|
-
Keyword.Constant: "#00979D",
|
36
|
-
Keyword.Declaration: "",
|
37
|
-
Keyword.Namespace: "",
|
38
|
-
Keyword.Pseudo: "#00979D",
|
39
|
-
Keyword.Reserved: "#00979D",
|
40
|
-
Keyword.Type: "#00979D",
|
41
|
-
|
42
|
-
Operator: "#728E00",
|
43
|
-
Operator.Word: "",
|
44
|
-
|
45
|
-
Name: "#434f54",
|
46
|
-
Name.Attribute: "",
|
47
|
-
Name.Builtin: "#728E00",
|
48
|
-
Name.Builtin.Pseudo: "",
|
49
|
-
Name.Class: "",
|
50
|
-
Name.Constant: "",
|
51
|
-
Name.Decorator: "",
|
52
|
-
Name.Entity: "",
|
53
|
-
Name.Exception: "",
|
54
|
-
Name.Function: "#D35400",
|
55
|
-
Name.Property: "",
|
56
|
-
Name.Label: "",
|
57
|
-
Name.Namespace: "",
|
58
|
-
Name.Other: "#728E00",
|
59
|
-
Name.Tag: "",
|
60
|
-
Name.Variable: "",
|
61
|
-
Name.Variable.Class: "",
|
62
|
-
Name.Variable.Global: "",
|
63
|
-
Name.Variable.Instance: "",
|
64
|
-
|
65
|
-
Number: "#8A7B52",
|
66
|
-
Number.Float: "",
|
67
|
-
Number.Hex: "",
|
68
|
-
Number.Integer: "",
|
69
|
-
Number.Integer.Long: "",
|
70
|
-
Number.Oct: "",
|
71
|
-
|
72
|
-
String: "#7F8C8D",
|
73
|
-
String.Backtick: "",
|
74
|
-
String.Char: "",
|
75
|
-
String.Doc: "",
|
76
|
-
String.Double: "",
|
77
|
-
String.Escape: "",
|
78
|
-
String.Heredoc: "",
|
79
|
-
String.Interpol: "",
|
80
|
-
String.Other: "",
|
81
|
-
String.Regex: "",
|
82
|
-
String.Single: "",
|
83
|
-
String.Symbol: "",
|
84
|
-
|
85
|
-
Generic: "",
|
86
|
-
Generic.Deleted: "",
|
87
|
-
Generic.Emph: "",
|
88
|
-
Generic.Error: "",
|
89
|
-
Generic.Heading: "",
|
90
|
-
Generic.Inserted: "",
|
91
|
-
Generic.Output: "",
|
92
|
-
Generic.Prompt: "",
|
93
|
-
Generic.Strong: "",
|
94
|
-
Generic.Subheading: "",
|
95
|
-
Generic.Traceback: "",
|
29
|
+
Whitespace: "", # class: 'w'
|
30
|
+
Error: "#a61717", # class: 'err'
|
31
|
+
|
32
|
+
Comment: "#95a5a6", # class: 'c'
|
33
|
+
Comment.Multiline: "", # class: 'cm'
|
34
|
+
Comment.Preproc: "#728E00", # class: 'cp'
|
35
|
+
Comment.Single: "", # class: 'c1'
|
36
|
+
Comment.Special: "", # class: 'cs'
|
37
|
+
|
38
|
+
Keyword: "#728E00", # class: 'k'
|
39
|
+
Keyword.Constant: "#00979D", # class: 'kc'
|
40
|
+
Keyword.Declaration: "", # class: 'kd'
|
41
|
+
Keyword.Namespace: "", # class: 'kn'
|
42
|
+
Keyword.Pseudo: "#00979D", # class: 'kp'
|
43
|
+
Keyword.Reserved: "#00979D", # class: 'kr'
|
44
|
+
Keyword.Type: "#00979D", # class: 'kt'
|
45
|
+
|
46
|
+
Operator: "#728E00", # class: 'o'
|
47
|
+
Operator.Word: "", # class: 'ow'
|
48
|
+
|
49
|
+
Name: "#434f54", # class: 'n'
|
50
|
+
Name.Attribute: "", # class: 'na'
|
51
|
+
Name.Builtin: "#728E00", # class: 'nb'
|
52
|
+
Name.Builtin.Pseudo: "", # class: 'bp'
|
53
|
+
Name.Class: "", # class: 'nc'
|
54
|
+
Name.Constant: "", # class: 'no'
|
55
|
+
Name.Decorator: "", # class: 'nd'
|
56
|
+
Name.Entity: "", # class: 'ni'
|
57
|
+
Name.Exception: "", # class: 'ne'
|
58
|
+
Name.Function: "#D35400", # class: 'nf'
|
59
|
+
Name.Property: "", # class: 'py'
|
60
|
+
Name.Label: "", # class: 'nl'
|
61
|
+
Name.Namespace: "", # class: 'nn'
|
62
|
+
Name.Other: "#728E00", # class: 'nx'
|
63
|
+
Name.Tag: "", # class: 'nt'
|
64
|
+
Name.Variable: "", # class: 'nv'
|
65
|
+
Name.Variable.Class: "", # class: 'vc'
|
66
|
+
Name.Variable.Global: "", # class: 'vg'
|
67
|
+
Name.Variable.Instance: "", # class: 'vi'
|
68
|
+
|
69
|
+
Number: "#8A7B52", # class: 'm'
|
70
|
+
Number.Float: "", # class: 'mf'
|
71
|
+
Number.Hex: "", # class: 'mh'
|
72
|
+
Number.Integer: "", # class: 'mi'
|
73
|
+
Number.Integer.Long: "", # class: 'il'
|
74
|
+
Number.Oct: "", # class: 'mo'
|
75
|
+
|
76
|
+
String: "#7F8C8D", # class: 's'
|
77
|
+
String.Backtick: "", # class: 'sb'
|
78
|
+
String.Char: "", # class: 'sc'
|
79
|
+
String.Doc: "", # class: 'sd'
|
80
|
+
String.Double: "", # class: 's2'
|
81
|
+
String.Escape: "", # class: 'se'
|
82
|
+
String.Heredoc: "", # class: 'sh'
|
83
|
+
String.Interpol: "", # class: 'si'
|
84
|
+
String.Other: "", # class: 'sx'
|
85
|
+
String.Regex: "", # class: 'sr'
|
86
|
+
String.Single: "", # class: 's1'
|
87
|
+
String.Symbol: "", # class: 'ss'
|
88
|
+
|
89
|
+
Generic: "", # class: 'g'
|
90
|
+
Generic.Deleted: "", # class: 'gd',
|
91
|
+
Generic.Emph: "", # class: 'ge'
|
92
|
+
Generic.Error: "", # class: 'gr'
|
93
|
+
Generic.Heading: "", # class: 'gh'
|
94
|
+
Generic.Inserted: "", # class: 'gi'
|
95
|
+
Generic.Output: "", # class: 'go'
|
96
|
+
Generic.Prompt: "", # class: 'gp'
|
97
|
+
Generic.Strong: "", # class: 'gs'
|
98
|
+
Generic.Subheading: "", # class: 'gu'
|
99
|
+
Generic.Traceback: "", # class: 'gt'
|
96
100
|
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
A colorful style, inspired by the terminal highlighting 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
|
|
@@ -13,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Number, Operator, Generic, Whitespace
|
14
14
|
|
15
15
|
|
16
|
+
__all__ = ['AutumnStyle']
|
17
|
+
|
18
|
+
|
16
19
|
class AutumnStyle(Style):
|
17
20
|
"""
|
18
21
|
A colorful style, inspired by the terminal highlighting style.
|
19
22
|
"""
|
23
|
+
name = 'autumn'
|
20
24
|
|
21
25
|
styles = {
|
22
26
|
Whitespace: '#bbbbbb',
|
@@ -54,6 +58,7 @@ class AutumnStyle(Style):
|
|
54
58
|
Generic.Error: '#aa0000',
|
55
59
|
Generic.Emph: 'italic',
|
56
60
|
Generic.Strong: 'bold',
|
61
|
+
Generic.EmphStrong: 'bold italic',
|
57
62
|
Generic.Prompt: '#555555',
|
58
63
|
Generic.Output: '#888888',
|
59
64
|
Generic.Traceback: '#aa0000',
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Style similar to the style used in the Borland IDEs.
|
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,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Number, Operator, Generic, Whitespace
|
14
14
|
|
15
15
|
|
16
|
+
__all__ = ['BorlandStyle']
|
17
|
+
|
18
|
+
|
16
19
|
class BorlandStyle(Style):
|
17
20
|
"""
|
18
21
|
Style similar to the style used in the borland IDEs.
|
19
22
|
"""
|
23
|
+
name = 'borland'
|
20
24
|
|
21
25
|
styles = {
|
22
26
|
Whitespace: '#bbbbbb',
|
@@ -40,6 +44,7 @@ class BorlandStyle(Style):
|
|
40
44
|
Generic.Error: '#aa0000',
|
41
45
|
Generic.Emph: 'italic',
|
42
46
|
Generic.Strong: 'bold',
|
47
|
+
Generic.EmphStrong: 'bold italic',
|
43
48
|
Generic.Prompt: '#555555',
|
44
49
|
Generic.Output: '#888888',
|
45
50
|
Generic.Traceback: '#aa0000',
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Simple black/white only 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
|
|
@@ -13,7 +13,11 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Operator, Generic
|
14
14
|
|
15
15
|
|
16
|
+
__all__ = ['BlackWhiteStyle']
|
17
|
+
|
18
|
+
|
16
19
|
class BlackWhiteStyle(Style):
|
20
|
+
name = 'bw'
|
17
21
|
|
18
22
|
background_color = "#ffffff"
|
19
23
|
|
@@ -41,6 +45,7 @@ class BlackWhiteStyle(Style):
|
|
41
45
|
Generic.Subheading: "bold",
|
42
46
|
Generic.Emph: "italic",
|
43
47
|
Generic.Strong: "bold",
|
48
|
+
Generic.EmphStrong: "bold italic",
|
44
49
|
Generic.Prompt: "bold",
|
45
50
|
|
46
51
|
Error: "border:#FF0000"
|
@@ -0,0 +1,80 @@
|
|
1
|
+
"""
|
2
|
+
pygments.styles.coffee
|
3
|
+
~~~~~~~~~~~~~~~~~~~~~~
|
4
|
+
|
5
|
+
A warm and cozy theme based off gruvbox
|
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 (Comment, Error, Generic, Keyword, Literal, Name,
|
13
|
+
Number, Operator, Punctuation, String, Token)
|
14
|
+
|
15
|
+
__all__ = ["CoffeeStyle"]
|
16
|
+
|
17
|
+
|
18
|
+
class CoffeeStyle(Style):
|
19
|
+
"""
|
20
|
+
A warm and cozy theme based off gruvbox
|
21
|
+
"""
|
22
|
+
|
23
|
+
name = "coffee"
|
24
|
+
|
25
|
+
background_color = "#262220"
|
26
|
+
highlight_color = "#ddd0c0"
|
27
|
+
|
28
|
+
line_number_color = "#4e4e4e"
|
29
|
+
line_number_special_color = "#8f9494"
|
30
|
+
|
31
|
+
styles = {
|
32
|
+
Comment: "#70757A",
|
33
|
+
Comment.Hashbang: "#8f9f9f",
|
34
|
+
Comment.Preproc: "#fdd0c0",
|
35
|
+
Comment.PreprocFile: "#c9b98f",
|
36
|
+
Comment.Special: "#af5f5f",
|
37
|
+
Error: "#af5f5f",
|
38
|
+
Generic.Deleted: "#bb6868",
|
39
|
+
Generic.Emph: "italic",
|
40
|
+
Generic.Error: "#af5f5f",
|
41
|
+
Generic.Inserted: "#849155",
|
42
|
+
Generic.Output: "#ddd0c0",
|
43
|
+
Generic.Strong: "bold",
|
44
|
+
Generic.Traceback: "#af5f5f",
|
45
|
+
Keyword: "#919191",
|
46
|
+
Keyword.Constant: "#875f5f",
|
47
|
+
Keyword.Declaration: "#875f5f",
|
48
|
+
Keyword.Namespace: "#875f5f",
|
49
|
+
Keyword.Reserved: "#b46276",
|
50
|
+
Keyword.Type: "#af875f",
|
51
|
+
Literal: "#af875f",
|
52
|
+
Name: "#ddd0c0",
|
53
|
+
Name.Attribute: "#ddd0c0",
|
54
|
+
Name.Builtin: "#ddd0c0",
|
55
|
+
Name.Builtin.Pseudo: "#87afaf",
|
56
|
+
Name.Class: "#875f5f",
|
57
|
+
Name.Constant: "#af8787",
|
58
|
+
Name.Decorator: "#fdd0c0",
|
59
|
+
Name.Entity: "#ddd0c0",
|
60
|
+
Name.Exception: "#877575",
|
61
|
+
Name.Function: "#fdd0c0",
|
62
|
+
Name.Function.Magic: "#fdd0c0",
|
63
|
+
Name.Other: "#ddd0c0",
|
64
|
+
Name.Property: "#dfaf87",
|
65
|
+
Name.Tag: "#87afaf",
|
66
|
+
Name.Variable: "#ddd0c0",
|
67
|
+
Number: "#87afaf",
|
68
|
+
Operator: "#878787",
|
69
|
+
Operator.Word: "#878787",
|
70
|
+
Punctuation: "#ddd0c0",
|
71
|
+
String: "#c9b98f",
|
72
|
+
String.Affix: "#dfaf87",
|
73
|
+
String.Doc: "#878787",
|
74
|
+
String.Escape: "#af5f5f",
|
75
|
+
String.Interpol: "#af5f5f",
|
76
|
+
String.Other: "#fdd0c0",
|
77
|
+
String.Regex: "#af5f5f",
|
78
|
+
String.Symbol: "#af5f5f",
|
79
|
+
Token: "#ddd0c0",
|
80
|
+
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
A colorful style, inspired by 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,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Number, Operator, Generic, Whitespace
|
14
14
|
|
15
15
|
|
16
|
+
__all__ = ['ColorfulStyle']
|
17
|
+
|
18
|
+
|
16
19
|
class ColorfulStyle(Style):
|
17
20
|
"""
|
18
21
|
A colorful style, inspired by CodeRay.
|
19
22
|
"""
|
23
|
+
name = 'colorful'
|
20
24
|
|
21
25
|
styles = {
|
22
26
|
Whitespace: "#bbbbbb",
|
@@ -70,6 +74,7 @@ class ColorfulStyle(Style):
|
|
70
74
|
Generic.Error: "#FF0000",
|
71
75
|
Generic.Emph: "italic",
|
72
76
|
Generic.Strong: "bold",
|
77
|
+
Generic.EmphStrong: "bold italic",
|
73
78
|
Generic.Prompt: "bold #c65d09",
|
74
79
|
Generic.Output: "#888",
|
75
80
|
Generic.Traceback: "#04D",
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
The default highlighting 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
|
|
@@ -13,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Number, Operator, Generic, Whitespace
|
14
14
|
|
15
15
|
|
16
|
+
__all__ = ['DefaultStyle']
|
17
|
+
|
18
|
+
|
16
19
|
class DefaultStyle(Style):
|
17
20
|
"""
|
18
21
|
The default style (inspired by Emacs 22).
|
19
22
|
"""
|
23
|
+
name = 'default'
|
20
24
|
|
21
25
|
background_color = "#f8f8f8"
|
22
26
|
|
@@ -63,6 +67,7 @@ class DefaultStyle(Style):
|
|
63
67
|
Generic.Error: "#E40000",
|
64
68
|
Generic.Emph: "italic",
|
65
69
|
Generic.Strong: "bold",
|
70
|
+
Generic.EmphStrong: "bold italic",
|
66
71
|
Generic.Prompt: "bold #000080",
|
67
72
|
Generic.Output: "#717171",
|
68
73
|
Generic.Traceback: "#04D",
|
@@ -7,7 +7,7 @@
|
|
7
7
|
Based on the Dracula Theme for pygments by Chris Bracco.
|
8
8
|
See https://github.com/dracula/pygments/tree/fee9ed5613d1086bc01b9d0a5a0e9867a009f571
|
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,87 +16,75 @@ from pygments.token import Keyword, Name, Comment, String, Error, Literal, \
|
|
16
16
|
Number, Operator, Other, Punctuation, Text, Generic, Whitespace
|
17
17
|
|
18
18
|
|
19
|
+
__all__ = ['DraculaStyle']
|
20
|
+
|
21
|
+
background = "#282a36"
|
22
|
+
foreground = "#f8f8f2"
|
23
|
+
selection = "#44475a"
|
24
|
+
comment = "#6272a4"
|
25
|
+
cyan = "#8be9fd"
|
26
|
+
green = "#50fa7b"
|
27
|
+
orange = "#ffb86c"
|
28
|
+
pink = "#ff79c6"
|
29
|
+
purple = "#bd93f9"
|
30
|
+
red = "#ff5555"
|
31
|
+
yellow = "#f1fa8c"
|
32
|
+
|
33
|
+
deletion = "#8b080b"
|
34
|
+
|
19
35
|
class DraculaStyle(Style):
|
36
|
+
name = 'dracula'
|
20
37
|
|
21
|
-
background_color =
|
22
|
-
highlight_color =
|
23
|
-
line_number_color =
|
24
|
-
line_number_background_color =
|
25
|
-
line_number_special_color =
|
26
|
-
line_number_special_background_color =
|
38
|
+
background_color = background
|
39
|
+
highlight_color = selection
|
40
|
+
line_number_color = yellow
|
41
|
+
line_number_background_color = selection
|
42
|
+
line_number_special_color = green
|
43
|
+
line_number_special_background_color = comment
|
27
44
|
|
28
45
|
styles = {
|
29
|
-
Whitespace:
|
30
|
-
|
31
|
-
Comment:
|
32
|
-
Comment.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
Generic: "
|
39
|
-
Generic.
|
40
|
-
Generic.
|
41
|
-
Generic.
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
Name: "
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
Name.Tag: "#ff79c6",
|
74
|
-
Name.Variable: "#8be9fd italic",
|
75
|
-
Name.Variable.Class: "#8be9fd italic",
|
76
|
-
Name.Variable.Global: "#8be9fd italic",
|
77
|
-
Name.Variable.Instance: "#8be9fd italic",
|
78
|
-
Number: "#ffb86c",
|
79
|
-
Number.Bin: "#ffb86c",
|
80
|
-
Number.Float: "#ffb86c",
|
81
|
-
Number.Hex: "#ffb86c",
|
82
|
-
Number.Integer: "#ffb86c",
|
83
|
-
Number.Integer.Long: "#ffb86c",
|
84
|
-
Number.Oct: "#ffb86c",
|
85
|
-
Operator: "#ff79c6",
|
86
|
-
Operator.Word: "#ff79c6",
|
87
|
-
Other: "#f8f8f2",
|
88
|
-
Punctuation: "#f8f8f2",
|
89
|
-
String: "#bd93f9",
|
90
|
-
String.Backtick: "#bd93f9",
|
91
|
-
String.Char: "#bd93f9",
|
92
|
-
String.Doc: "#bd93f9",
|
93
|
-
String.Double: "#bd93f9",
|
94
|
-
String.Escape: "#bd93f9",
|
95
|
-
String.Heredoc: "#bd93f9",
|
96
|
-
String.Interpol: "#bd93f9",
|
97
|
-
String.Other: "#bd93f9",
|
98
|
-
String.Regex: "#bd93f9",
|
99
|
-
String.Single: "#bd93f9",
|
100
|
-
String.Symbol: "#bd93f9",
|
101
|
-
Text: "#f8f8f2",
|
46
|
+
Whitespace: foreground,
|
47
|
+
|
48
|
+
Comment: comment,
|
49
|
+
Comment.Preproc: pink,
|
50
|
+
|
51
|
+
Generic: foreground,
|
52
|
+
Generic.Deleted: deletion,
|
53
|
+
Generic.Emph: "underline",
|
54
|
+
Generic.Heading: "bold",
|
55
|
+
Generic.Inserted: "bold",
|
56
|
+
Generic.Output: selection,
|
57
|
+
Generic.EmphStrong: "underline",
|
58
|
+
Generic.Subheading: "bold",
|
59
|
+
|
60
|
+
Error: foreground,
|
61
|
+
|
62
|
+
Keyword: pink,
|
63
|
+
Keyword.Constant: pink,
|
64
|
+
Keyword.Declaration: cyan + " italic",
|
65
|
+
Keyword.Type: cyan,
|
66
|
+
|
67
|
+
Literal: foreground,
|
68
|
+
|
69
|
+
Name: foreground,
|
70
|
+
Name.Attribute: green,
|
71
|
+
Name.Builtin: cyan + " italic",
|
72
|
+
Name.Builtin.Pseudo: foreground,
|
73
|
+
Name.Class: green,
|
74
|
+
Name.Function: green,
|
75
|
+
Name.Label: cyan + " italic",
|
76
|
+
Name.Tag: pink,
|
77
|
+
Name.Variable: cyan + " italic",
|
78
|
+
|
79
|
+
Number: orange,
|
80
|
+
|
81
|
+
Operator: pink,
|
82
|
+
|
83
|
+
Other: foreground,
|
84
|
+
|
85
|
+
Punctuation: foreground,
|
86
|
+
|
87
|
+
String: purple,
|
88
|
+
|
89
|
+
Text: foreground,
|
102
90
|
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
A highlighting style for Pygments, inspired by Emacs.
|
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,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Number, Operator, Generic, Whitespace
|
14
14
|
|
15
15
|
|
16
|
+
__all__ = ['EmacsStyle']
|
17
|
+
|
18
|
+
|
16
19
|
class EmacsStyle(Style):
|
17
20
|
"""
|
18
21
|
The default style (inspired by Emacs 22).
|
19
22
|
"""
|
23
|
+
name = 'emacs'
|
20
24
|
|
21
25
|
background_color = "#f8f8f8"
|
22
26
|
|
@@ -62,6 +66,7 @@ class EmacsStyle(Style):
|
|
62
66
|
Generic.Error: "#FF0000",
|
63
67
|
Generic.Emph: "italic",
|
64
68
|
Generic.Strong: "bold",
|
69
|
+
Generic.EmphStrong: "bold italic",
|
65
70
|
Generic.Prompt: "bold #000080",
|
66
71
|
Generic.Output: "#888",
|
67
72
|
Generic.Traceback: "#04D",
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
A modern style based on the VIM pyte 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,10 +13,14 @@ from pygments.token import Keyword, Name, Comment, String, Error, \
|
|
13
13
|
Number, Operator, Generic, Whitespace
|
14
14
|
|
15
15
|
|
16
|
+
__all__ = ['FriendlyStyle']
|
17
|
+
|
18
|
+
|
16
19
|
class FriendlyStyle(Style):
|
17
20
|
"""
|
18
21
|
A modern style based on the VIM pyte theme.
|
19
22
|
"""
|
23
|
+
name = 'friendly'
|
20
24
|
|
21
25
|
background_color = "#f0f0f0"
|
22
26
|
line_number_color = "#666666"
|
@@ -63,6 +67,7 @@ class FriendlyStyle(Style):
|
|
63
67
|
Generic.Error: "#FF0000",
|
64
68
|
Generic.Emph: "italic",
|
65
69
|
Generic.Strong: "bold",
|
70
|
+
Generic.EmphStrong: "bold italic",
|
66
71
|
Generic.Prompt: "bold #c65d09",
|
67
72
|
Generic.Output: "#888",
|
68
73
|
Generic.Traceback: "#04D",
|