pygments.rb 2.3.1 → 2.4.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 +1 -1
- data/.rubocop.yml +7 -0
- data/CHANGELOG.adoc +4 -0
- data/README.adoc +1 -1
- data/bench.rb +1 -1
- data/lib/pygments/popen.rb +3 -7
- data/lib/pygments/version.rb +1 -1
- data/pygments.rb.gemspec +2 -2
- data/test/test_pygments.rb +0 -19
- data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/AUTHORS +21 -1
- data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/LICENSE +1 -1
- data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/METADATA +19 -11
- data/vendor/pygments-main/Pygments-2.15.1.dist-info/RECORD +614 -0
- data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/WHEEL +1 -1
- data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/entry_points.txt +0 -1
- data/vendor/pygments-main/bin/pygmentize +1 -1
- data/vendor/pygments-main/pygments/__init__.py +20 -22
- data/vendor/pygments-main/pygments/__main__.py +1 -1
- data/vendor/pygments-main/pygments/cmdline.py +74 -8
- data/vendor/pygments-main/pygments/console.py +1 -1
- data/vendor/pygments-main/pygments/filter.py +1 -1
- data/vendor/pygments-main/pygments/filters/__init__.py +6 -3
- data/vendor/pygments-main/pygments/formatter.py +41 -11
- data/vendor/pygments-main/pygments/formatters/__init__.py +21 -16
- data/vendor/pygments-main/pygments/formatters/_mapping.py +5 -65
- data/vendor/pygments-main/pygments/formatters/bbcode.py +1 -1
- data/vendor/pygments-main/pygments/formatters/groff.py +170 -0
- data/vendor/pygments-main/pygments/formatters/html.py +54 -32
- data/vendor/pygments-main/pygments/formatters/img.py +9 -5
- data/vendor/pygments-main/pygments/formatters/irc.py +6 -33
- data/vendor/pygments-main/pygments/formatters/latex.py +24 -14
- data/vendor/pygments-main/pygments/formatters/other.py +1 -1
- data/vendor/pygments-main/pygments/formatters/pangomarkup.py +1 -1
- data/vendor/pygments-main/pygments/formatters/rtf.py +1 -1
- data/vendor/pygments-main/pygments/formatters/svg.py +1 -1
- data/vendor/pygments-main/pygments/formatters/terminal.py +1 -3
- data/vendor/pygments-main/pygments/formatters/terminal256.py +2 -4
- data/vendor/pygments-main/pygments/lexer.py +101 -32
- data/vendor/pygments-main/pygments/lexers/__init__.py +50 -29
- data/vendor/pygments-main/pygments/lexers/_ada_builtins.py +103 -0
- 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 +21 -6
- data/vendor/pygments-main/pygments/lexers/_css_builtins.py +558 -0
- data/vendor/pygments-main/pygments/lexers/_julia_builtins.py +10 -0
- data/vendor/pygments-main/pygments/lexers/_lasso_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_lilypond_builtins.py +4932 -0
- data/vendor/pygments-main/pygments/lexers/_lua_builtins.py +11 -18
- data/vendor/pygments-main/pygments/lexers/_mapping.py +71 -82
- data/vendor/pygments-main/pygments/lexers/_mql_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_mysql_builtins.py +58 -4
- data/vendor/pygments-main/pygments/lexers/_openedge_builtins.py +1 -1
- data/vendor/pygments-main/pygments/lexers/_php_builtins.py +408 -1835
- data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +70 -8
- data/vendor/pygments-main/pygments/lexers/_qlik_builtins.py +666 -0
- data/vendor/pygments-main/pygments/lexers/_scheme_builtins.py +1609 -0
- data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +3 -3
- data/vendor/pygments-main/pygments/lexers/_sourcemod_builtins.py +9 -18
- data/vendor/pygments-main/pygments/lexers/_stan_builtins.py +185 -94
- 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 +15 -14
- data/vendor/pygments-main/pygments/lexers/ada.py +144 -0
- data/vendor/pygments-main/pygments/lexers/agile.py +1 -1
- data/vendor/pygments-main/pygments/lexers/algebra.py +72 -9
- data/vendor/pygments-main/pygments/lexers/ambient.py +8 -7
- data/vendor/pygments-main/pygments/lexers/amdgpu.py +4 -3
- data/vendor/pygments-main/pygments/lexers/ampl.py +10 -8
- data/vendor/pygments-main/pygments/lexers/apdlexer.py +164 -20
- data/vendor/pygments-main/pygments/lexers/apl.py +6 -5
- data/vendor/pygments-main/pygments/lexers/archetype.py +23 -21
- data/vendor/pygments-main/pygments/lexers/arrow.py +10 -9
- data/vendor/pygments-main/pygments/lexers/arturo.py +250 -0
- data/vendor/pygments-main/pygments/lexers/asc.py +9 -5
- data/vendor/pygments-main/pygments/lexers/asm.py +68 -63
- data/vendor/pygments-main/pygments/lexers/automation.py +7 -5
- data/vendor/pygments-main/pygments/lexers/bare.py +20 -21
- data/vendor/pygments-main/pygments/lexers/basic.py +45 -41
- data/vendor/pygments-main/pygments/lexers/bdd.py +58 -0
- data/vendor/pygments-main/pygments/lexers/berry.py +99 -0
- data/vendor/pygments-main/pygments/lexers/bibtex.py +6 -6
- data/vendor/pygments-main/pygments/lexers/boa.py +4 -8
- data/vendor/pygments-main/pygments/lexers/business.py +18 -18
- data/vendor/pygments-main/pygments/lexers/c_cpp.py +80 -40
- data/vendor/pygments-main/pygments/lexers/c_like.py +21 -19
- data/vendor/pygments-main/pygments/lexers/capnproto.py +6 -8
- data/vendor/pygments-main/pygments/lexers/carbon.py +96 -0
- data/vendor/pygments-main/pygments/lexers/cddl.py +16 -33
- data/vendor/pygments-main/pygments/lexers/chapel.py +14 -9
- data/vendor/pygments-main/pygments/lexers/clean.py +3 -2
- data/vendor/pygments-main/pygments/lexers/comal.py +80 -0
- data/vendor/pygments-main/pygments/lexers/compiled.py +3 -2
- data/vendor/pygments-main/pygments/lexers/configs.py +235 -120
- data/vendor/pygments-main/pygments/lexers/console.py +5 -4
- data/vendor/pygments-main/pygments/lexers/cplint.py +44 -0
- data/vendor/pygments-main/pygments/lexers/crystal.py +22 -23
- data/vendor/pygments-main/pygments/lexers/csound.py +19 -17
- data/vendor/pygments-main/pygments/lexers/css.py +67 -159
- data/vendor/pygments-main/pygments/lexers/d.py +15 -12
- data/vendor/pygments-main/pygments/lexers/dalvik.py +14 -11
- data/vendor/pygments-main/pygments/lexers/data.py +119 -49
- data/vendor/pygments-main/pygments/lexers/dax.py +136 -0
- data/vendor/pygments-main/pygments/lexers/devicetree.py +9 -8
- data/vendor/pygments-main/pygments/lexers/diff.py +23 -19
- data/vendor/pygments-main/pygments/lexers/dotnet.py +216 -81
- data/vendor/pygments-main/pygments/lexers/dsls.py +86 -64
- data/vendor/pygments-main/pygments/lexers/dylan.py +16 -15
- data/vendor/pygments-main/pygments/lexers/ecl.py +46 -38
- data/vendor/pygments-main/pygments/lexers/eiffel.py +15 -10
- data/vendor/pygments-main/pygments/lexers/elm.py +12 -8
- data/vendor/pygments-main/pygments/lexers/elpi.py +165 -0
- data/vendor/pygments-main/pygments/lexers/email.py +21 -39
- data/vendor/pygments-main/pygments/lexers/erlang.py +21 -22
- data/vendor/pygments-main/pygments/lexers/esoteric.py +28 -30
- data/vendor/pygments-main/pygments/lexers/ezhil.py +10 -9
- data/vendor/pygments-main/pygments/lexers/factor.py +104 -83
- data/vendor/pygments-main/pygments/lexers/fantom.py +31 -29
- data/vendor/pygments-main/pygments/lexers/felix.py +18 -14
- data/vendor/pygments-main/pygments/lexers/fift.py +67 -0
- data/vendor/pygments-main/pygments/lexers/floscript.py +7 -7
- data/vendor/pygments-main/pygments/lexers/forth.py +8 -6
- data/vendor/pygments-main/pygments/lexers/fortran.py +16 -11
- data/vendor/pygments-main/pygments/lexers/foxpro.py +2 -2
- data/vendor/pygments-main/pygments/lexers/freefem.py +7 -10
- data/vendor/pygments-main/pygments/lexers/func.py +108 -0
- data/vendor/pygments-main/pygments/lexers/functional.py +1 -1
- data/vendor/pygments-main/pygments/lexers/futhark.py +12 -17
- data/vendor/pygments-main/pygments/lexers/gcodelexer.py +1 -2
- data/vendor/pygments-main/pygments/lexers/gdscript.py +76 -233
- data/vendor/pygments-main/pygments/lexers/go.py +12 -14
- data/vendor/pygments-main/pygments/lexers/grammar_notation.py +22 -26
- data/vendor/pygments-main/pygments/lexers/graph.py +36 -15
- data/vendor/pygments-main/pygments/lexers/graphics.py +37 -38
- data/vendor/pygments-main/pygments/lexers/graphviz.py +2 -1
- data/vendor/pygments-main/pygments/lexers/gsql.py +39 -27
- data/vendor/pygments-main/pygments/lexers/haskell.py +73 -71
- data/vendor/pygments-main/pygments/lexers/haxe.py +13 -11
- data/vendor/pygments-main/pygments/lexers/hdl.py +31 -34
- data/vendor/pygments-main/pygments/lexers/hexdump.py +21 -21
- data/vendor/pygments-main/pygments/lexers/html.py +11 -19
- data/vendor/pygments-main/pygments/lexers/idl.py +10 -5
- data/vendor/pygments-main/pygments/lexers/igor.py +3 -2
- data/vendor/pygments-main/pygments/lexers/inferno.py +9 -8
- data/vendor/pygments-main/pygments/lexers/installers.py +39 -33
- data/vendor/pygments-main/pygments/lexers/int_fiction.py +35 -20
- data/vendor/pygments-main/pygments/lexers/iolang.py +9 -9
- data/vendor/pygments-main/pygments/lexers/j.py +20 -13
- data/vendor/pygments-main/pygments/lexers/javascript.py +183 -149
- data/vendor/pygments-main/pygments/lexers/jmespath.py +68 -0
- data/vendor/pygments-main/pygments/lexers/jslt.py +4 -3
- data/vendor/pygments-main/pygments/lexers/jsonnet.py +168 -0
- data/vendor/pygments-main/pygments/lexers/julia.py +44 -32
- data/vendor/pygments-main/pygments/lexers/jvm.py +161 -140
- data/vendor/pygments-main/pygments/lexers/kuin.py +93 -59
- data/vendor/pygments-main/pygments/lexers/lilypond.py +226 -0
- data/vendor/pygments-main/pygments/lexers/lisp.py +244 -107
- data/vendor/pygments-main/pygments/lexers/macaulay2.py +1739 -0
- data/vendor/pygments-main/pygments/lexers/make.py +21 -16
- data/vendor/pygments-main/pygments/lexers/markup.py +752 -11
- data/vendor/pygments-main/pygments/lexers/math.py +1 -1
- data/vendor/pygments-main/pygments/lexers/matlab.py +18 -3
- data/vendor/pygments-main/pygments/lexers/maxima.py +85 -0
- data/vendor/pygments-main/pygments/lexers/meson.py +10 -25
- data/vendor/pygments-main/pygments/lexers/mime.py +2 -2
- data/vendor/pygments-main/pygments/lexers/minecraft.py +394 -0
- data/vendor/pygments-main/pygments/lexers/mips.py +128 -0
- data/vendor/pygments-main/pygments/lexers/ml.py +9 -6
- data/vendor/pygments-main/pygments/lexers/modeling.py +12 -8
- data/vendor/pygments-main/pygments/lexers/modula2.py +3 -2
- data/vendor/pygments-main/pygments/lexers/monte.py +3 -2
- data/vendor/pygments-main/pygments/lexers/mosel.py +1 -1
- data/vendor/pygments-main/pygments/lexers/ncl.py +1 -1
- data/vendor/pygments-main/pygments/lexers/nimrod.py +62 -20
- data/vendor/pygments-main/pygments/lexers/nit.py +3 -2
- data/vendor/pygments-main/pygments/lexers/nix.py +5 -5
- data/vendor/pygments-main/pygments/lexers/oberon.py +2 -2
- data/vendor/pygments-main/pygments/lexers/objective.py +6 -4
- data/vendor/pygments-main/pygments/lexers/ooc.py +3 -2
- data/vendor/pygments-main/pygments/lexers/other.py +1 -1
- data/vendor/pygments-main/pygments/lexers/parasail.py +3 -2
- data/vendor/pygments-main/pygments/lexers/parsers.py +23 -21
- data/vendor/pygments-main/pygments/lexers/pascal.py +196 -198
- data/vendor/pygments-main/pygments/lexers/pawn.py +1 -1
- data/vendor/pygments-main/pygments/lexers/perl.py +17 -15
- data/vendor/pygments-main/pygments/lexers/phix.py +364 -0
- data/vendor/pygments-main/pygments/lexers/php.py +35 -20
- data/vendor/pygments-main/pygments/lexers/pointless.py +3 -2
- data/vendor/pygments-main/pygments/lexers/pony.py +1 -1
- data/vendor/pygments-main/pygments/lexers/praat.py +41 -38
- data/vendor/pygments-main/pygments/lexers/procfile.py +2 -3
- data/vendor/pygments-main/pygments/lexers/prolog.py +7 -8
- data/vendor/pygments-main/pygments/lexers/promql.py +5 -12
- data/vendor/pygments-main/pygments/lexers/python.py +145 -119
- data/vendor/pygments-main/pygments/lexers/q.py +188 -0
- data/vendor/pygments-main/pygments/lexers/qlik.py +117 -0
- data/vendor/pygments-main/pygments/lexers/qvt.py +1 -1
- data/vendor/pygments-main/pygments/lexers/r.py +4 -4
- data/vendor/pygments-main/pygments/lexers/rdf.py +3 -3
- data/vendor/pygments-main/pygments/lexers/rebol.py +1 -12
- data/vendor/pygments-main/pygments/lexers/resource.py +1 -1
- data/vendor/pygments-main/pygments/lexers/ride.py +3 -2
- data/vendor/pygments-main/pygments/lexers/rita.py +43 -0
- data/vendor/pygments-main/pygments/lexers/rnc.py +3 -2
- data/vendor/pygments-main/pygments/lexers/roboconf.py +3 -3
- data/vendor/pygments-main/pygments/lexers/robotframework.py +6 -5
- data/vendor/pygments-main/pygments/lexers/ruby.py +24 -24
- data/vendor/pygments-main/pygments/lexers/rust.py +3 -2
- data/vendor/pygments-main/pygments/lexers/sas.py +2 -2
- data/vendor/pygments-main/pygments/lexers/savi.py +170 -0
- data/vendor/pygments-main/pygments/lexers/scdoc.py +4 -7
- data/vendor/pygments-main/pygments/lexers/scripting.py +24 -21
- data/vendor/pygments-main/pygments/lexers/sgf.py +6 -6
- data/vendor/pygments-main/pygments/lexers/shell.py +29 -21
- data/vendor/pygments-main/pygments/lexers/sieve.py +14 -4
- data/vendor/pygments-main/pygments/lexers/slash.py +1 -1
- data/vendor/pygments-main/pygments/lexers/smalltalk.py +5 -3
- data/vendor/pygments-main/pygments/lexers/smithy.py +5 -6
- data/vendor/pygments-main/pygments/lexers/smv.py +1 -1
- data/vendor/pygments-main/pygments/lexers/snobol.py +1 -1
- data/vendor/pygments-main/pygments/lexers/solidity.py +3 -7
- data/vendor/pygments-main/pygments/lexers/sophia.py +103 -0
- data/vendor/pygments-main/pygments/lexers/special.py +2 -5
- data/vendor/pygments-main/pygments/lexers/spice.py +71 -0
- data/vendor/pygments-main/pygments/lexers/sql.py +212 -17
- data/vendor/pygments-main/pygments/lexers/srcinfo.py +62 -0
- data/vendor/pygments-main/pygments/lexers/stata.py +4 -3
- data/vendor/pygments-main/pygments/lexers/supercollider.py +4 -3
- data/vendor/pygments-main/pygments/lexers/tal.py +74 -0
- data/vendor/pygments-main/pygments/lexers/tcl.py +21 -16
- data/vendor/pygments-main/pygments/lexers/teal.py +9 -8
- data/vendor/pygments-main/pygments/lexers/templates.py +62 -29
- data/vendor/pygments-main/pygments/lexers/teraterm.py +12 -20
- data/vendor/pygments-main/pygments/lexers/testing.py +6 -2
- data/vendor/pygments-main/pygments/lexers/text.py +3 -2
- data/vendor/pygments-main/pygments/lexers/textedit.py +41 -7
- data/vendor/pygments-main/pygments/lexers/textfmts.py +7 -5
- data/vendor/pygments-main/pygments/lexers/theorem.py +42 -36
- data/vendor/pygments-main/pygments/lexers/thingsdb.py +2 -4
- data/vendor/pygments-main/pygments/lexers/tlb.py +57 -0
- data/vendor/pygments-main/pygments/lexers/tnt.py +3 -4
- data/vendor/pygments-main/pygments/lexers/trafficscript.py +2 -4
- data/vendor/pygments-main/pygments/lexers/typoscript.py +2 -3
- data/vendor/pygments-main/pygments/lexers/ul4.py +267 -0
- data/vendor/pygments-main/pygments/lexers/unicon.py +1 -1
- data/vendor/pygments-main/pygments/lexers/urbi.py +4 -4
- data/vendor/pygments-main/pygments/lexers/usd.py +2 -1
- data/vendor/pygments-main/pygments/lexers/varnish.py +5 -5
- data/vendor/pygments-main/pygments/lexers/verification.py +4 -3
- data/vendor/pygments-main/pygments/lexers/web.py +1 -1
- data/vendor/pygments-main/pygments/lexers/webassembly.py +5 -5
- data/vendor/pygments-main/pygments/lexers/webidl.py +2 -1
- data/vendor/pygments-main/pygments/lexers/webmisc.py +90 -71
- data/vendor/pygments-main/pygments/lexers/wgsl.py +407 -0
- data/vendor/pygments-main/pygments/lexers/whiley.py +2 -1
- data/vendor/pygments-main/pygments/lexers/wowtoc.py +120 -0
- data/vendor/pygments-main/pygments/lexers/wren.py +99 -0
- data/vendor/pygments-main/pygments/lexers/x10.py +5 -6
- data/vendor/pygments-main/pygments/lexers/xorg.py +3 -2
- data/vendor/pygments-main/pygments/lexers/yang.py +6 -5
- data/vendor/pygments-main/pygments/lexers/zig.py +3 -2
- data/vendor/pygments-main/pygments/modeline.py +1 -1
- data/vendor/pygments-main/pygments/plugin.py +28 -9
- data/vendor/pygments-main/pygments/regexopt.py +1 -1
- data/vendor/pygments-main/pygments/scanner.py +2 -2
- data/vendor/pygments-main/pygments/sphinxext.py +63 -1
- data/vendor/pygments-main/pygments/style.py +7 -1
- data/vendor/pygments-main/pygments/styles/__init__.py +19 -5
- data/vendor/pygments-main/pygments/styles/abap.py +2 -2
- data/vendor/pygments-main/pygments/styles/algol.py +1 -2
- data/vendor/pygments-main/pygments/styles/algol_nu.py +1 -2
- data/vendor/pygments-main/pygments/styles/arduino.py +2 -3
- data/vendor/pygments-main/pygments/styles/autumn.py +1 -3
- data/vendor/pygments-main/pygments/styles/borland.py +1 -3
- data/vendor/pygments-main/pygments/styles/bw.py +1 -2
- data/vendor/pygments-main/pygments/styles/colorful.py +1 -3
- data/vendor/pygments-main/pygments/styles/default.py +13 -14
- data/vendor/pygments-main/pygments/styles/dracula.py +102 -0
- data/vendor/pygments-main/pygments/styles/emacs.py +1 -2
- data/vendor/pygments-main/pygments/styles/friendly.py +1 -2
- data/vendor/pygments-main/pygments/styles/friendly_grayscale.py +75 -0
- data/vendor/pygments-main/pygments/styles/fruity.py +1 -1
- data/vendor/pygments-main/pygments/styles/gh_dark.py +107 -0
- data/vendor/pygments-main/pygments/styles/gruvbox.py +4 -2
- data/vendor/pygments-main/pygments/styles/igor.py +1 -2
- data/vendor/pygments-main/pygments/styles/inkpot.py +3 -2
- data/vendor/pygments-main/pygments/styles/lilypond.py +56 -0
- data/vendor/pygments-main/pygments/styles/lovelace.py +1 -3
- data/vendor/pygments-main/pygments/styles/manni.py +1 -1
- data/vendor/pygments-main/pygments/styles/material.py +1 -2
- data/vendor/pygments-main/pygments/styles/monokai.py +3 -3
- data/vendor/pygments-main/pygments/styles/murphy.py +1 -3
- data/vendor/pygments-main/pygments/styles/native.py +11 -11
- data/vendor/pygments-main/pygments/styles/nord.py +150 -0
- data/vendor/pygments-main/pygments/styles/onedark.py +59 -0
- data/vendor/pygments-main/pygments/styles/paraiso_dark.py +1 -6
- data/vendor/pygments-main/pygments/styles/paraiso_light.py +1 -6
- data/vendor/pygments-main/pygments/styles/pastie.py +1 -3
- data/vendor/pygments-main/pygments/styles/perldoc.py +1 -2
- data/vendor/pygments-main/pygments/styles/rainbow_dash.py +3 -3
- data/vendor/pygments-main/pygments/styles/rrt.py +3 -2
- data/vendor/pygments-main/pygments/styles/sas.py +2 -4
- data/vendor/pygments-main/pygments/styles/solarized.py +1 -1
- data/vendor/pygments-main/pygments/styles/staroffice.py +26 -0
- data/vendor/pygments-main/pygments/styles/stata_dark.py +4 -6
- data/vendor/pygments-main/pygments/styles/stata_light.py +1 -2
- data/vendor/pygments-main/pygments/styles/tango.py +2 -3
- data/vendor/pygments-main/pygments/styles/trac.py +1 -3
- data/vendor/pygments-main/pygments/styles/vim.py +1 -2
- data/vendor/pygments-main/pygments/styles/vs.py +1 -2
- data/vendor/pygments-main/pygments/styles/xcode.py +1 -3
- data/vendor/pygments-main/pygments/styles/zenburn.py +4 -6
- data/vendor/pygments-main/pygments/token.py +2 -1
- data/vendor/pygments-main/pygments/unistring.py +4 -6
- data/vendor/pygments-main/pygments/util.py +27 -5
- metadata +59 -14
- data/vendor/pygments-main/Pygments-2.10.0.dist-info/RECORD +0 -524
- /data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/INSTALLER +0 -0
- /data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/REQUESTED +0 -0
- /data/vendor/pygments-main/{Pygments-2.10.0.dist-info → Pygments-2.15.1.dist-info}/top_level.txt +0 -0
@@ -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-2023 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -19,7 +19,6 @@ class FriendlyStyle(Style):
|
|
19
19
|
"""
|
20
20
|
|
21
21
|
background_color = "#f0f0f0"
|
22
|
-
default_style = ""
|
23
22
|
line_number_color = "#666666"
|
24
23
|
|
25
24
|
styles = {
|
@@ -0,0 +1,75 @@
|
|
1
|
+
"""
|
2
|
+
pygments.styles.friendly_grayscale
|
3
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
4
|
+
|
5
|
+
A style based on friendly style.
|
6
|
+
The color values of the friendly style have been converted to grayscale
|
7
|
+
using the luminosity value calculated by
|
8
|
+
http://www.workwithcolor.com/color-converter-01.htm
|
9
|
+
|
10
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
11
|
+
:license: BSD, see LICENSE for details.
|
12
|
+
"""
|
13
|
+
|
14
|
+
from pygments.style import Style
|
15
|
+
from pygments.token import Keyword, Name, Comment, String, Error, \
|
16
|
+
Number, Operator, Generic, Whitespace
|
17
|
+
|
18
|
+
|
19
|
+
class FriendlyGrayscaleStyle(Style):
|
20
|
+
"""
|
21
|
+
A modern grayscale style based on the friendly style.
|
22
|
+
|
23
|
+
.. versionadded:: 2.11
|
24
|
+
"""
|
25
|
+
|
26
|
+
background_color = "#f0f0f0"
|
27
|
+
|
28
|
+
styles = {
|
29
|
+
Whitespace: "#bbbbbb",
|
30
|
+
Comment: "italic #959595",
|
31
|
+
Comment.Preproc: "noitalic #575757",
|
32
|
+
Comment.Special: "noitalic bg:#F4F4F4",
|
33
|
+
|
34
|
+
Keyword: "bold #575757",
|
35
|
+
Keyword.Pseudo: "nobold",
|
36
|
+
Keyword.Type: "nobold #4F4F4F",
|
37
|
+
|
38
|
+
Operator: "#666666",
|
39
|
+
Operator.Word: "bold #575757",
|
40
|
+
|
41
|
+
Name.Builtin: "#575757",
|
42
|
+
Name.Function: "#3F3F3F",
|
43
|
+
Name.Class: "bold #7E7E7E",
|
44
|
+
Name.Namespace: "bold #7E7E7E",
|
45
|
+
Name.Exception: "#575757",
|
46
|
+
Name.Variable: "#9A9A9A",
|
47
|
+
Name.Constant: "#A5A5A5",
|
48
|
+
Name.Label: "bold #363636",
|
49
|
+
Name.Entity: "bold #848484",
|
50
|
+
Name.Attribute: "#707070",
|
51
|
+
Name.Tag: "bold #3B3B3B",
|
52
|
+
Name.Decorator: "bold #555555",
|
53
|
+
|
54
|
+
String: "#717171",
|
55
|
+
String.Doc: "italic",
|
56
|
+
String.Interpol: "italic #9F9F9F",
|
57
|
+
String.Escape: "bold #717171",
|
58
|
+
String.Regex: "#575757",
|
59
|
+
String.Symbol: "#676767",
|
60
|
+
String.Other: "#7E7E7E",
|
61
|
+
Number: "#888888",
|
62
|
+
|
63
|
+
Generic.Heading: "bold #373737",
|
64
|
+
Generic.Subheading: "bold #5A5A5A",
|
65
|
+
Generic.Deleted: "#545454",
|
66
|
+
Generic.Inserted: "#7D7D7D",
|
67
|
+
Generic.Error: "#898989",
|
68
|
+
Generic.Emph: "italic",
|
69
|
+
Generic.Strong: "bold",
|
70
|
+
Generic.Prompt: "bold #7E7E7E",
|
71
|
+
Generic.Output: "#888888",
|
72
|
+
Generic.Traceback: "#6D6D6D",
|
73
|
+
|
74
|
+
Error: "border:#898989"
|
75
|
+
}
|
@@ -0,0 +1,107 @@
|
|
1
|
+
"""
|
2
|
+
pygments.styles.gh_dark
|
3
|
+
~~~~~~~~~~~~~~~~~~~~~~~
|
4
|
+
|
5
|
+
Github's Dark-Colorscheme based theme for Pygments
|
6
|
+
Colors extracted from https://github.com/primer/primitives
|
7
|
+
|
8
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
9
|
+
:license: BSD, see LICENSE for details.
|
10
|
+
"""
|
11
|
+
|
12
|
+
from pygments.style import Style
|
13
|
+
from pygments.token import Keyword, Name, Comment, Error, Number, Operator, \
|
14
|
+
Generic, Text, Literal, String, Token
|
15
|
+
|
16
|
+
|
17
|
+
# vars are defined to match the defs in
|
18
|
+
# - [GitHub's VS Code theme](https://github.com/primer/github-vscode-theme) and
|
19
|
+
# - [Primer styles](https://github.com/primer/primitives)
|
20
|
+
RED_2 = "#ffa198"
|
21
|
+
RED_3 = "#ff7b72"
|
22
|
+
RED_9 = "#490202"
|
23
|
+
ORANGE_2 = "#ffa657"
|
24
|
+
ORANGE_3 = "#f0883e"
|
25
|
+
GREEN_1 = "#7ee787"
|
26
|
+
GREEN_2 = "#56d364"
|
27
|
+
GREEN_7 = "#0f5323"
|
28
|
+
BLUE_1 = "#a5d6ff"
|
29
|
+
BLUE_2 = "#79c0ff"
|
30
|
+
PURPLE_2 = "#d2a8ff"
|
31
|
+
GRAY_3 = "#8b949e"
|
32
|
+
GRAY_4 = "#6e7681"
|
33
|
+
FG_SUBTLE = "#6e7681"
|
34
|
+
FG_DEFAULT = "#e6edf3"
|
35
|
+
BG_DEFAULT = "#0d1117"
|
36
|
+
DANGER_FG = "#f85149"
|
37
|
+
|
38
|
+
|
39
|
+
class GhDarkStyle(Style):
|
40
|
+
"""
|
41
|
+
Github's Dark-Colorscheme based theme for Pygments
|
42
|
+
"""
|
43
|
+
|
44
|
+
background_color = BG_DEFAULT
|
45
|
+
|
46
|
+
# has transparency in VS Code theme as `colors.codemirror.activelineBg`
|
47
|
+
highlight_color = GRAY_4
|
48
|
+
|
49
|
+
line_number_special_color = FG_DEFAULT
|
50
|
+
line_number_special_background_color = FG_SUBTLE
|
51
|
+
|
52
|
+
line_number_color = GRAY_4
|
53
|
+
line_number_background_color = BG_DEFAULT
|
54
|
+
|
55
|
+
styles = {
|
56
|
+
Token: FG_DEFAULT,
|
57
|
+
|
58
|
+
Error: DANGER_FG,
|
59
|
+
|
60
|
+
Keyword: RED_3,
|
61
|
+
Keyword.Constant: BLUE_2,
|
62
|
+
Keyword.Pseudo: BLUE_2,
|
63
|
+
|
64
|
+
Name: FG_DEFAULT,
|
65
|
+
Name.Class: "bold "+ORANGE_3,
|
66
|
+
Name.Constant: "bold "+BLUE_2,
|
67
|
+
Name.Decorator: 'bold '+PURPLE_2,
|
68
|
+
Name.Entity: ORANGE_2,
|
69
|
+
Name.Exception: "bold "+ORANGE_3,
|
70
|
+
Name.Function: 'bold '+PURPLE_2,
|
71
|
+
Name.Label: "bold "+BLUE_2,
|
72
|
+
Name.Namespace: RED_3,
|
73
|
+
Name.Property: BLUE_2,
|
74
|
+
Name.Tag: GREEN_1,
|
75
|
+
Name.Variable: BLUE_2,
|
76
|
+
|
77
|
+
Literal: BLUE_1,
|
78
|
+
Literal.Date: BLUE_2,
|
79
|
+
String: BLUE_1,
|
80
|
+
String.Affix: BLUE_2,
|
81
|
+
String.Delimiter: BLUE_2,
|
82
|
+
String.Escape: BLUE_2,
|
83
|
+
String.Heredoc: BLUE_2,
|
84
|
+
String.Regex: BLUE_2,
|
85
|
+
Number: BLUE_1,
|
86
|
+
|
87
|
+
Comment: 'italic '+GRAY_3,
|
88
|
+
Comment.Preproc: "bold " + GRAY_3,
|
89
|
+
Comment.Special: "bold italic " + GRAY_3,
|
90
|
+
|
91
|
+
Operator: 'bold ' + RED_3,
|
92
|
+
|
93
|
+
Generic: FG_DEFAULT,
|
94
|
+
Generic.Deleted: f"bg:{RED_9} {RED_2}",
|
95
|
+
Generic.Emph: "italic",
|
96
|
+
Generic.Error: RED_2,
|
97
|
+
Generic.Heading: "bold "+BLUE_2,
|
98
|
+
Generic.Inserted: f'bg:{GREEN_7} {GREEN_2}',
|
99
|
+
Generic.Output: GRAY_3,
|
100
|
+
Generic.Prompt: GRAY_3,
|
101
|
+
Generic.Strong: "bold",
|
102
|
+
Generic.Subheading: BLUE_2,
|
103
|
+
Generic.Traceback: RED_3,
|
104
|
+
Generic.Underline: "underline",
|
105
|
+
|
106
|
+
Text.Whitespace: FG_SUBTLE,
|
107
|
+
}
|
@@ -5,12 +5,12 @@
|
|
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-2023 by the Pygments team, see AUTHORS.
|
9
9
|
:license: BSD, see LICENSE for details.
|
10
10
|
"""
|
11
11
|
|
12
12
|
from pygments.style import Style
|
13
|
-
from pygments.token import Keyword, Name, Comment, String, Error, \
|
13
|
+
from pygments.token import Token, Keyword, Name, Comment, String, Error, \
|
14
14
|
Number, Operator, Generic
|
15
15
|
|
16
16
|
|
@@ -23,6 +23,8 @@ class GruvboxDarkStyle(Style):
|
|
23
23
|
highlight_color = '#ebdbb2'
|
24
24
|
|
25
25
|
styles = {
|
26
|
+
Token: '#dddddd',
|
27
|
+
|
26
28
|
Comment: 'italic #928374',
|
27
29
|
Comment.PreProc: '#8ec07c',
|
28
30
|
Comment.Special: 'bold italic #ebdbb2',
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Igor Pro default style.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -16,7 +16,6 @@ class IgorStyle(Style):
|
|
16
16
|
"""
|
17
17
|
Pygments version of the official colors for Igor Pro procedures.
|
18
18
|
"""
|
19
|
-
default_style = ""
|
20
19
|
|
21
20
|
styles = {
|
22
21
|
Comment: 'italic #FF0000',
|
@@ -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-2023 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -14,8 +14,9 @@ from pygments.token import Text, Other, Keyword, Name, Comment, String, \
|
|
14
14
|
|
15
15
|
|
16
16
|
class InkPotStyle(Style):
|
17
|
+
|
17
18
|
background_color = "#1e1e27"
|
18
|
-
|
19
|
+
|
19
20
|
styles = {
|
20
21
|
Text: "#cfbfad",
|
21
22
|
Other: "#cfbfad",
|
@@ -0,0 +1,56 @@
|
|
1
|
+
"""
|
2
|
+
pygments.styles.lilypond
|
3
|
+
~~~~~~~~~~~~~~~~~~~~~~~~
|
4
|
+
|
5
|
+
LilyPond-specific style.
|
6
|
+
|
7
|
+
:copyright: Copyright 2006-2023 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 Token
|
13
|
+
|
14
|
+
class LilyPondStyle(Style):
|
15
|
+
"""
|
16
|
+
Style for the LilyPond language.
|
17
|
+
|
18
|
+
.. versionadded:: 2.11
|
19
|
+
"""
|
20
|
+
|
21
|
+
# Don't show it in the gallery, it's intended for LilyPond
|
22
|
+
# input only and doesn't show good output on Python code.
|
23
|
+
web_style_gallery_exclude = True
|
24
|
+
|
25
|
+
styles = {
|
26
|
+
Token.Text: "",
|
27
|
+
Token.Keyword: "bold",
|
28
|
+
Token.Comment: "italic #A3AAB2",
|
29
|
+
Token.String: "#AB0909",
|
30
|
+
Token.String.Escape: "#C46C6C",
|
31
|
+
Token.String.Symbol: "noinherit",
|
32
|
+
Token.Pitch: "", #"#911520",
|
33
|
+
Token.Number: "#976806", # includes durations
|
34
|
+
# A bare 11 is not distinguishable from a number, so we highlight
|
35
|
+
# the same.
|
36
|
+
Token.ChordModifier: "#976806",
|
37
|
+
Token.Name.Lvalue: "#08547A",
|
38
|
+
Token.Name.BackslashReference: "#08547A",
|
39
|
+
Token.Name.Builtin.MusicCommand: "bold #08547A",
|
40
|
+
Token.Name.Builtin.PaperVariable: "bold #6C5A05",
|
41
|
+
Token.Name.Builtin.HeaderVariable: "bold #6C5A05",
|
42
|
+
Token.Name.Builtin.MusicFunction: "bold #08547A",
|
43
|
+
Token.Name.Builtin.Clef: "bold #08547A",
|
44
|
+
Token.Name.Builtin.Scale: "bold #08547A",
|
45
|
+
Token.Name.Builtin.RepeatType: "#08547A",
|
46
|
+
Token.Name.Builtin.Dynamic: "#68175A",
|
47
|
+
Token.Name.Builtin.Articulation: "#68175A",
|
48
|
+
Token.Name.Builtin.SchemeFunction: "bold #A83401",
|
49
|
+
Token.Name.Builtin.SchemeBuiltin: "bold",
|
50
|
+
Token.Name.Builtin.MarkupCommand: "bold #831E71",
|
51
|
+
Token.Name.Builtin.Context: "bold #038B8B",
|
52
|
+
Token.Name.Builtin.ContextProperty: "#038B8B",
|
53
|
+
Token.Name.Builtin.Grob: "bold #0C7441",
|
54
|
+
Token.Name.Builtin.GrobProperty: "#0C7441",
|
55
|
+
Token.Name.Builtin.Translator: "bold #6200A4",
|
56
|
+
}
|
@@ -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-2023 by the Pygments team, see AUTHORS.
|
12
12
|
:license: BSD, see LICENSE for details.
|
13
13
|
"""
|
14
14
|
|
@@ -33,8 +33,6 @@ class LovelaceStyle(Style):
|
|
33
33
|
_LABEL_CYAN = '#289870'
|
34
34
|
_EXCEPT_YELLOW = '#908828'
|
35
35
|
|
36
|
-
default_style = '#222222'
|
37
|
-
|
38
36
|
styles = {
|
39
37
|
Whitespace: '#a89028',
|
40
38
|
Comment: 'italic #888888',
|
@@ -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-2023 by the Pygments team, see AUTHORS.
|
11
11
|
:license: BSD, see LICENSE for details.
|
12
12
|
"""
|
13
13
|
|
@@ -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-2023 by the Pygments team, see AUTHORS.
|
10
10
|
:license: BSD, see LICENSE for details.
|
11
11
|
"""
|
12
12
|
|
@@ -35,7 +35,6 @@ class MaterialStyle(Style):
|
|
35
35
|
foreground = '#EEFFFF'
|
36
36
|
faded = '#546E7A'
|
37
37
|
|
38
|
-
default_style = ""
|
39
38
|
background_color = dark_teal
|
40
39
|
highlight_color = '#2C3B41'
|
41
40
|
line_number_color = '#37474F'
|
@@ -6,12 +6,12 @@
|
|
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-2023 by the Pygments team, see AUTHORS.
|
10
10
|
:license: BSD, see LICENSE for details.
|
11
11
|
"""
|
12
12
|
|
13
13
|
from pygments.style import Style
|
14
|
-
from pygments.token import Keyword, Name, Comment, String, Error,
|
14
|
+
from pygments.token import Keyword, Name, Comment, String, Error, Token, \
|
15
15
|
Number, Operator, Generic, Whitespace, Punctuation, Other, Literal
|
16
16
|
|
17
17
|
class MonokaiStyle(Style):
|
@@ -24,7 +24,7 @@ class MonokaiStyle(Style):
|
|
24
24
|
|
25
25
|
styles = {
|
26
26
|
# No corresponding class for the following:
|
27
|
-
|
27
|
+
Token: "#f8f8f2", # class: ''
|
28
28
|
Whitespace: "", # class: 'w'
|
29
29
|
Error: "#960050 bg:#1e0010", # class: 'err'
|
30
30
|
Other: "", # class 'x'
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Murphy's style from CodeRay.
|
6
6
|
|
7
|
-
:copyright: Copyright 2006-
|
7
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -18,8 +18,6 @@ class MurphyStyle(Style):
|
|
18
18
|
Murphy's style from CodeRay.
|
19
19
|
"""
|
20
20
|
|
21
|
-
default_style = ""
|
22
|
-
|
23
21
|
styles = {
|
24
22
|
Whitespace: "#bbbbbb",
|
25
23
|
Comment: "#666 italic",
|
@@ -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-2023 by the Pygments team, see AUTHORS.
|
8
8
|
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
@@ -26,27 +26,27 @@ class NativeStyle(Style):
|
|
26
26
|
Token: '#d0d0d0',
|
27
27
|
Whitespace: '#666666',
|
28
28
|
|
29
|
-
Comment: 'italic #
|
30
|
-
Comment.Preproc: 'noitalic bold #
|
29
|
+
Comment: 'italic #ababab',
|
30
|
+
Comment.Preproc: 'noitalic bold #ff3a3a',
|
31
31
|
Comment.Special: 'noitalic bold #e50808 bg:#520000',
|
32
32
|
|
33
|
-
Keyword: 'bold #
|
33
|
+
Keyword: 'bold #6ebf26',
|
34
34
|
Keyword.Pseudo: 'nobold',
|
35
|
-
Operator.Word: 'bold #
|
35
|
+
Operator.Word: 'bold #6ebf26',
|
36
36
|
|
37
37
|
String: '#ed9d13',
|
38
38
|
String.Other: '#ffa500',
|
39
39
|
|
40
|
-
Number: '#
|
40
|
+
Number: '#51b2fd',
|
41
41
|
|
42
|
-
Name.Builtin: '#
|
42
|
+
Name.Builtin: '#2fbccd',
|
43
43
|
Name.Variable: '#40ffff',
|
44
44
|
Name.Constant: '#40ffff',
|
45
|
-
Name.Class: 'underline #
|
46
|
-
Name.Function: '#
|
47
|
-
Name.Namespace: 'underline #
|
45
|
+
Name.Class: 'underline #71adff',
|
46
|
+
Name.Function: '#71adff',
|
47
|
+
Name.Namespace: 'underline #71adff',
|
48
48
|
Name.Exception: '#bbbbbb',
|
49
|
-
Name.Tag: 'bold #
|
49
|
+
Name.Tag: 'bold #6ebf26',
|
50
50
|
Name.Attribute: '#bbbbbb',
|
51
51
|
Name.Decorator: '#ffa500',
|
52
52
|
|
@@ -0,0 +1,150 @@
|
|
1
|
+
"""
|
2
|
+
pygments.styles.nord
|
3
|
+
~~~~~~~~~~~~~~~~~~~~
|
4
|
+
|
5
|
+
pygments version of the "nord" theme by Arctic Ice Studio
|
6
|
+
https://www.nordtheme.com/
|
7
|
+
|
8
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
9
|
+
:license: BSD, see LICENSE for details.
|
10
|
+
"""
|
11
|
+
|
12
|
+
from pygments.style import Style
|
13
|
+
from pygments.token import Keyword, Name, Comment, String, Error, Number, \
|
14
|
+
Operator, Generic, Whitespace, Punctuation, Text, Token
|
15
|
+
|
16
|
+
|
17
|
+
class NordStyle(Style):
|
18
|
+
"""
|
19
|
+
Pygments version of the "nord" theme by Arctic Ice Studio.
|
20
|
+
"""
|
21
|
+
|
22
|
+
line_number_color = "#D8DEE9"
|
23
|
+
line_number_background_color = "#242933"
|
24
|
+
line_number_special_color = "#242933"
|
25
|
+
line_number_special_background_color = "#D8DEE9"
|
26
|
+
|
27
|
+
background_color = "#2E3440"
|
28
|
+
highlight_color = "#3B4252"
|
29
|
+
|
30
|
+
styles = {
|
31
|
+
Token: "#d8dee9",
|
32
|
+
|
33
|
+
Whitespace: '#d8dee9',
|
34
|
+
Punctuation: '#eceff4',
|
35
|
+
|
36
|
+
Comment: 'italic #616e87',
|
37
|
+
Comment.Preproc: '#5e81ac',
|
38
|
+
|
39
|
+
Keyword: 'bold #81a1c1',
|
40
|
+
Keyword.Pseudo: 'nobold #81a1c1',
|
41
|
+
Keyword.Type: 'nobold #81a1c1',
|
42
|
+
|
43
|
+
Operator: 'bold #81a1c1',
|
44
|
+
Operator.Word: 'bold #81a1c1',
|
45
|
+
|
46
|
+
Name: '#d8dee9',
|
47
|
+
Name.Builtin: '#81a1c1',
|
48
|
+
Name.Function: '#88c0d0',
|
49
|
+
Name.Class: '#8fbcbb',
|
50
|
+
Name.Namespace: '#8fbcbb',
|
51
|
+
Name.Exception: '#bf616a',
|
52
|
+
Name.Variable: '#d8dee9',
|
53
|
+
Name.Constant: '#8fbcbb',
|
54
|
+
Name.Entity: '#d08770',
|
55
|
+
Name.Attribute: '#8fbcbb',
|
56
|
+
Name.Tag: '#81a1c1',
|
57
|
+
Name.Decorator: '#d08770',
|
58
|
+
|
59
|
+
String: '#a3be8c',
|
60
|
+
String.Doc: '#616e87',
|
61
|
+
String.Interpol: '#a3be8c',
|
62
|
+
String.Escape: '#ebcb8b',
|
63
|
+
String.Regex: '#ebcb8b',
|
64
|
+
String.Symbol: '#a3be8c',
|
65
|
+
String.Other: '#a3be8c',
|
66
|
+
|
67
|
+
Number: '#b48ead',
|
68
|
+
|
69
|
+
Generic.Heading: 'bold #88c0d0',
|
70
|
+
Generic.Subheading: 'bold #88c0d0',
|
71
|
+
Generic.Deleted: '#bf616a',
|
72
|
+
Generic.Inserted: '#a3be8c',
|
73
|
+
Generic.Error: '#bf616a',
|
74
|
+
Generic.Emph: 'italic',
|
75
|
+
Generic.Strong: 'bold',
|
76
|
+
Generic.Prompt: 'bold #616e88',
|
77
|
+
Generic.Output: '#d8dee9',
|
78
|
+
Generic.Traceback: '#bf616a',
|
79
|
+
|
80
|
+
Error: '#bf616a',
|
81
|
+
Text: '#d8dee9',
|
82
|
+
}
|
83
|
+
|
84
|
+
|
85
|
+
class NordDarkerStyle(Style):
|
86
|
+
"""
|
87
|
+
Pygments version of a darker "nord" theme by Arctic Ice Studio
|
88
|
+
"""
|
89
|
+
|
90
|
+
line_number_color = "#D8DEE9"
|
91
|
+
line_number_background_color = "#242933"
|
92
|
+
line_number_special_color = "#242933"
|
93
|
+
line_number_special_background_color = "#D8DEE9"
|
94
|
+
|
95
|
+
background_color = "#242933"
|
96
|
+
highlight_color = "#3B4252"
|
97
|
+
|
98
|
+
styles = {
|
99
|
+
Token: "#d8dee9",
|
100
|
+
|
101
|
+
Whitespace: '#d8dee9',
|
102
|
+
Punctuation: '#eceff4',
|
103
|
+
|
104
|
+
Comment: 'italic #616e87',
|
105
|
+
Comment.Preproc: '#5e81ac',
|
106
|
+
|
107
|
+
Keyword: 'bold #81a1c1',
|
108
|
+
Keyword.Pseudo: 'nobold #81a1c1',
|
109
|
+
Keyword.Type: 'nobold #81a1c1',
|
110
|
+
|
111
|
+
Operator: 'bold #81a1c1',
|
112
|
+
Operator.Word: 'bold #81a1c1',
|
113
|
+
|
114
|
+
Name: '#d8dee9',
|
115
|
+
Name.Builtin: '#81a1c1',
|
116
|
+
Name.Function: '#88c0d0',
|
117
|
+
Name.Class: '#8fbcbb',
|
118
|
+
Name.Namespace: '#8fbcbb',
|
119
|
+
Name.Exception: '#bf616a',
|
120
|
+
Name.Variable: '#d8dee9',
|
121
|
+
Name.Constant: '#8fbcbb',
|
122
|
+
Name.Entity: '#d08770',
|
123
|
+
Name.Attribute: '#8fbcbb',
|
124
|
+
Name.Tag: '#81a1c1',
|
125
|
+
Name.Decorator: '#d08770',
|
126
|
+
|
127
|
+
String: '#a3be8c',
|
128
|
+
String.Doc: '#616e87',
|
129
|
+
String.Interpol: '#a3be8c',
|
130
|
+
String.Escape: '#ebcb8b',
|
131
|
+
String.Regex: '#ebcb8b',
|
132
|
+
String.Symbol: '#a3be8c',
|
133
|
+
String.Other: '#a3be8c',
|
134
|
+
|
135
|
+
Number: '#b48ead',
|
136
|
+
|
137
|
+
Generic.Heading: 'bold #88c0d0',
|
138
|
+
Generic.Subheading: 'bold #88c0d0',
|
139
|
+
Generic.Deleted: '#bf616a',
|
140
|
+
Generic.Inserted: '#a3be8c',
|
141
|
+
Generic.Error: '#bf616a',
|
142
|
+
Generic.Emph: 'italic',
|
143
|
+
Generic.Strong: 'bold',
|
144
|
+
Generic.Prompt: 'bold #616e88',
|
145
|
+
Generic.Output: '#d8dee9',
|
146
|
+
Generic.Traceback: '#bf616a',
|
147
|
+
|
148
|
+
Error: '#bf616a',
|
149
|
+
Text: '#d8dee9',
|
150
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
"""
|
2
|
+
pygments.styles.onedark
|
3
|
+
~~~~~~~~~~~~~~~~~~~~~~~
|
4
|
+
|
5
|
+
One Dark Theme for Pygments by Tobias Zoghaib (https://github.com/TobiZog)
|
6
|
+
|
7
|
+
Inspired by one-dark-ui for the code editor Atom
|
8
|
+
(https://atom.io/themes/one-dark-ui).
|
9
|
+
|
10
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
11
|
+
:license: BSD, see LICENSE for details.
|
12
|
+
"""
|
13
|
+
|
14
|
+
from pygments.style import Style
|
15
|
+
from pygments.token import Comment, Keyword, Name, Number, Operator, \
|
16
|
+
Punctuation, String, Token
|
17
|
+
|
18
|
+
|
19
|
+
class OneDarkStyle(Style):
|
20
|
+
"""
|
21
|
+
Theme inspired by One Dark Pro for Atom.
|
22
|
+
|
23
|
+
.. versionadded:: 2.11
|
24
|
+
"""
|
25
|
+
|
26
|
+
background_color = '#282C34'
|
27
|
+
|
28
|
+
styles = {
|
29
|
+
Token: '#ABB2BF',
|
30
|
+
|
31
|
+
Punctuation: '#ABB2BF',
|
32
|
+
Punctuation.Marker: '#ABB2BF',
|
33
|
+
|
34
|
+
Keyword: '#C678DD',
|
35
|
+
Keyword.Constant: '#E5C07B',
|
36
|
+
Keyword.Declaration: '#C678DD',
|
37
|
+
Keyword.Namespace: '#C678DD',
|
38
|
+
Keyword.Reserved: '#C678DD',
|
39
|
+
Keyword.Type: '#E5C07B',
|
40
|
+
|
41
|
+
Name: '#E06C75',
|
42
|
+
Name.Attribute: '#E06C75',
|
43
|
+
Name.Builtin: '#E5C07B',
|
44
|
+
Name.Class: '#E5C07B',
|
45
|
+
Name.Function: 'bold #61AFEF',
|
46
|
+
Name.Function.Magic: 'bold #56B6C2',
|
47
|
+
Name.Other: '#E06C75',
|
48
|
+
Name.Tag: '#E06C75',
|
49
|
+
Name.Decorator: '#61AFEF',
|
50
|
+
Name.Variable.Class: '',
|
51
|
+
|
52
|
+
String: '#98C379',
|
53
|
+
|
54
|
+
Number: '#D19A66',
|
55
|
+
|
56
|
+
Operator: '#56B6C2',
|
57
|
+
|
58
|
+
Comment: '#7F848E'
|
59
|
+
}
|