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
@@ -0,0 +1,68 @@
|
|
1
|
+
"""
|
2
|
+
pygments.lexers.jmespath
|
3
|
+
~~~~~~~~~~~~~~~~~~~~~~~~
|
4
|
+
|
5
|
+
Lexers for the JMESPath language
|
6
|
+
|
7
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
8
|
+
:license: BSD, see LICENSE for details.
|
9
|
+
"""
|
10
|
+
|
11
|
+
from pygments.lexer import RegexLexer, bygroups, include
|
12
|
+
from pygments.token import String, Punctuation, Whitespace, Name, Operator, \
|
13
|
+
Number, Literal, Keyword
|
14
|
+
|
15
|
+
__all__ = ['JMESPathLexer']
|
16
|
+
|
17
|
+
|
18
|
+
class JMESPathLexer(RegexLexer):
|
19
|
+
"""
|
20
|
+
For JMESPath queries.
|
21
|
+
"""
|
22
|
+
name = 'JMESPath'
|
23
|
+
url = 'https://jmespath.org'
|
24
|
+
filenames = ['*.jp']
|
25
|
+
aliases = ['jmespath', 'jp']
|
26
|
+
|
27
|
+
tokens = {
|
28
|
+
'string': [
|
29
|
+
(r"'(\\(.|\n)|[^'\\])*'", String),
|
30
|
+
],
|
31
|
+
'punctuation': [
|
32
|
+
(r'(\[\?|[\.\*\[\],:\(\)\{\}\|])', Punctuation),
|
33
|
+
],
|
34
|
+
'ws': [
|
35
|
+
(r" |\t|\n|\r", Whitespace)
|
36
|
+
],
|
37
|
+
"dq-identifier": [
|
38
|
+
(r'[^\\"]+', Name.Variable),
|
39
|
+
(r'\\"', Name.Variable),
|
40
|
+
(r'.', Punctuation, '#pop'),
|
41
|
+
],
|
42
|
+
'identifier': [
|
43
|
+
(r'(&)?(")', bygroups(Name.Variable, Punctuation), 'dq-identifier'),
|
44
|
+
(r'(")?(&?[A-Za-z][A-Za-z0-9_-]*)(")?', bygroups(Punctuation, Name.Variable, Punctuation)),
|
45
|
+
],
|
46
|
+
'root': [
|
47
|
+
include('ws'),
|
48
|
+
include('string'),
|
49
|
+
(r'(==|!=|<=|>=|<|>|&&|\|\||!)', Operator),
|
50
|
+
include('punctuation'),
|
51
|
+
(r'@', Name.Variable.Global),
|
52
|
+
(r'(&?[A-Za-z][A-Za-z0-9_]*)(\()', bygroups(Name.Function, Punctuation)),
|
53
|
+
(r'(&)(\()', bygroups(Name.Variable, Punctuation)),
|
54
|
+
include('identifier'),
|
55
|
+
(r'-?\d+', Number),
|
56
|
+
(r'`', Literal, 'literal'),
|
57
|
+
],
|
58
|
+
'literal': [
|
59
|
+
include('ws'),
|
60
|
+
include('string'),
|
61
|
+
include('punctuation'),
|
62
|
+
(r'(false|true|null)\b', Keyword.Constant),
|
63
|
+
include('identifier'),
|
64
|
+
(r'-?\d+\.?\d*([eE][-+]\d+)?', Number),
|
65
|
+
(r'\\`', Literal),
|
66
|
+
(r'`', Literal, '#pop'),
|
67
|
+
]
|
68
|
+
}
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Lexers for the JSLT language
|
6
6
|
|
7
|
-
:copyright: Copyright
|
8
|
-
:license: BSD, see LICENSE for details
|
7
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
8
|
+
:license: BSD, see LICENSE for details.
|
9
9
|
"""
|
10
10
|
|
11
11
|
from pygments.lexer import RegexLexer, combined, words
|
@@ -21,11 +21,12 @@ _WORD_END = r'(?=[^0-9A-Z_a-z-])'
|
|
21
21
|
|
22
22
|
class JSLTLexer(RegexLexer):
|
23
23
|
"""
|
24
|
-
For
|
24
|
+
For JSLT source.
|
25
25
|
|
26
26
|
.. versionadded:: 2.10
|
27
27
|
"""
|
28
28
|
name = 'JSLT'
|
29
|
+
url = 'https://github.com/schibsted/jslt'
|
29
30
|
filenames = ['*.jslt']
|
30
31
|
aliases = ['jslt']
|
31
32
|
mimetypes = ['text/x-jslt']
|
@@ -0,0 +1,168 @@
|
|
1
|
+
"""
|
2
|
+
pygments.lexers.jsonnet
|
3
|
+
~~~~~~~~~~~~~~~~~~~~~~~
|
4
|
+
|
5
|
+
Lexer for Jsonnet data templating language.
|
6
|
+
|
7
|
+
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
|
8
|
+
:license: BSD, see LICENSE for details.
|
9
|
+
"""
|
10
|
+
|
11
|
+
from pygments.lexer import include, RegexLexer, words
|
12
|
+
from pygments.token import Comment, Keyword, Name, Number, Operator, \
|
13
|
+
Punctuation, String, Text, Whitespace
|
14
|
+
|
15
|
+
__all__ = ['JsonnetLexer']
|
16
|
+
|
17
|
+
jsonnet_token = r'[^\W\d]\w*'
|
18
|
+
jsonnet_function_token = jsonnet_token + r'(?=\()'
|
19
|
+
|
20
|
+
|
21
|
+
def string_rules(quote_mark):
|
22
|
+
return [
|
23
|
+
(r"[^{}\\]".format(quote_mark), String),
|
24
|
+
(r"\\.", String.Escape),
|
25
|
+
(quote_mark, String, '#pop'),
|
26
|
+
]
|
27
|
+
|
28
|
+
|
29
|
+
def quoted_field_name(quote_mark):
|
30
|
+
return [
|
31
|
+
(r'([^{quote}\\]|\\.)*{quote}'.format(quote=quote_mark),
|
32
|
+
Name.Variable, 'field_separator')
|
33
|
+
]
|
34
|
+
|
35
|
+
|
36
|
+
class JsonnetLexer(RegexLexer):
|
37
|
+
"""Lexer for Jsonnet source code."""
|
38
|
+
|
39
|
+
name = 'Jsonnet'
|
40
|
+
aliases = ['jsonnet']
|
41
|
+
filenames = ['*.jsonnet', '*.libsonnet']
|
42
|
+
url = "https://jsonnet.org"
|
43
|
+
tokens = {
|
44
|
+
# Not used by itself
|
45
|
+
'_comments': [
|
46
|
+
(r'(//|#).*\n', Comment.Single),
|
47
|
+
(r'/\*\*([^/]|/(?!\*))*\*/', String.Doc),
|
48
|
+
(r'/\*([^/]|/(?!\*))*\*/', Comment),
|
49
|
+
],
|
50
|
+
'root': [
|
51
|
+
include('_comments'),
|
52
|
+
(r"@'.*'", String),
|
53
|
+
(r'@".*"', String),
|
54
|
+
(r"'", String, 'singlestring'),
|
55
|
+
(r'"', String, 'doublestring'),
|
56
|
+
(r'\|\|\|(.|\n)*\|\|\|', String),
|
57
|
+
# Jsonnet has no integers, only an IEEE754 64-bit float
|
58
|
+
(r'[+-]?[0-9]+(.[0-9])?', Number.Float),
|
59
|
+
# Omit : despite spec because it appears to be used as a field
|
60
|
+
# separator
|
61
|
+
(r'[!$~+\-&|^=<>*/%]', Operator),
|
62
|
+
(r'\{', Punctuation, 'object'),
|
63
|
+
(r'\[', Punctuation, 'array'),
|
64
|
+
(r'local\b', Keyword, ('local_name')),
|
65
|
+
(r'assert\b', Keyword, 'assert'),
|
66
|
+
(words([
|
67
|
+
'assert', 'else', 'error', 'false', 'for', 'if', 'import',
|
68
|
+
'importstr', 'in', 'null', 'tailstrict', 'then', 'self',
|
69
|
+
'super', 'true',
|
70
|
+
], suffix=r'\b'), Keyword),
|
71
|
+
(r'\s+', Whitespace),
|
72
|
+
(r'function(?=\()', Keyword, 'function_params'),
|
73
|
+
(r'std\.' + jsonnet_function_token, Name.Builtin, 'function_args'),
|
74
|
+
(jsonnet_function_token, Name.Function, 'function_args'),
|
75
|
+
(jsonnet_token, Name.Variable),
|
76
|
+
(r'[\.()]', Punctuation),
|
77
|
+
],
|
78
|
+
'singlestring': string_rules("'"),
|
79
|
+
'doublestring': string_rules('"'),
|
80
|
+
'array': [
|
81
|
+
(r',', Punctuation),
|
82
|
+
(r'\]', Punctuation, '#pop'),
|
83
|
+
include('root'),
|
84
|
+
],
|
85
|
+
'local_name': [
|
86
|
+
(jsonnet_function_token, Name.Function, 'function_params'),
|
87
|
+
(jsonnet_token, Name.Variable),
|
88
|
+
(r'\s+', Whitespace),
|
89
|
+
('(?==)', Whitespace, ('#pop', 'local_value')),
|
90
|
+
],
|
91
|
+
'local_value': [
|
92
|
+
(r'=', Operator),
|
93
|
+
(r';', Punctuation, '#pop'),
|
94
|
+
include('root'),
|
95
|
+
],
|
96
|
+
'assert': [
|
97
|
+
(r':', Punctuation),
|
98
|
+
(r';', Punctuation, '#pop'),
|
99
|
+
include('root'),
|
100
|
+
],
|
101
|
+
'function_params': [
|
102
|
+
(jsonnet_token, Name.Variable),
|
103
|
+
(r'\(', Punctuation),
|
104
|
+
(r'\)', Punctuation, '#pop'),
|
105
|
+
(r',', Punctuation),
|
106
|
+
(r'\s+', Whitespace),
|
107
|
+
(r'=', Operator, 'function_param_default'),
|
108
|
+
],
|
109
|
+
'function_args': [
|
110
|
+
(r'\(', Punctuation),
|
111
|
+
(r'\)', Punctuation, '#pop'),
|
112
|
+
(r',', Punctuation),
|
113
|
+
(r'\s+', Whitespace),
|
114
|
+
include('root'),
|
115
|
+
],
|
116
|
+
'object': [
|
117
|
+
(r'\s+', Whitespace),
|
118
|
+
(r'local\b', Keyword, 'object_local_name'),
|
119
|
+
(r'assert\b', Keyword, 'object_assert'),
|
120
|
+
(r'\[', Operator, 'field_name_expr'),
|
121
|
+
(fr'(?={jsonnet_token})', Text, 'field_name'),
|
122
|
+
(r'\}', Punctuation, '#pop'),
|
123
|
+
(r'"', Name.Variable, 'double_field_name'),
|
124
|
+
(r"'", Name.Variable, 'single_field_name'),
|
125
|
+
include('_comments'),
|
126
|
+
],
|
127
|
+
'field_name': [
|
128
|
+
(jsonnet_function_token, Name.Function,
|
129
|
+
('field_separator', 'function_params')
|
130
|
+
),
|
131
|
+
(jsonnet_token, Name.Variable, 'field_separator'),
|
132
|
+
],
|
133
|
+
'double_field_name': quoted_field_name('"'),
|
134
|
+
'single_field_name': quoted_field_name("'"),
|
135
|
+
'field_name_expr': [
|
136
|
+
(r'\]', Operator, 'field_separator'),
|
137
|
+
include('root'),
|
138
|
+
],
|
139
|
+
'function_param_default': [
|
140
|
+
(r'(?=[,\)])', Whitespace, '#pop'),
|
141
|
+
include('root'),
|
142
|
+
],
|
143
|
+
'field_separator': [
|
144
|
+
(r'\s+', Whitespace),
|
145
|
+
(r'\+?::?:?', Punctuation, ('#pop', '#pop', 'field_value')),
|
146
|
+
include('_comments'),
|
147
|
+
],
|
148
|
+
'field_value': [
|
149
|
+
(r',', Punctuation, '#pop'),
|
150
|
+
(r'\}', Punctuation, '#pop:2'),
|
151
|
+
include('root'),
|
152
|
+
],
|
153
|
+
'object_assert': [
|
154
|
+
(r':', Punctuation),
|
155
|
+
(r',', Punctuation, '#pop'),
|
156
|
+
include('root'),
|
157
|
+
],
|
158
|
+
'object_local_name': [
|
159
|
+
(jsonnet_token, Name.Variable, ('#pop', 'object_local_value')),
|
160
|
+
(r'\s+', Whitespace),
|
161
|
+
],
|
162
|
+
'object_local_value': [
|
163
|
+
(r'=', Operator),
|
164
|
+
(r',', Punctuation, '#pop'),
|
165
|
+
(r'\}', Punctuation, '#pop:2'),
|
166
|
+
include('root'),
|
167
|
+
],
|
168
|
+
}
|
@@ -4,16 +4,14 @@
|
|
4
4
|
|
5
5
|
Lexers for the Julia language.
|
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
|
|
11
|
-
import re
|
12
|
-
|
13
11
|
from pygments.lexer import Lexer, RegexLexer, bygroups, do_insertions, \
|
14
12
|
words, include
|
15
13
|
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
|
16
|
-
Number, Punctuation, Generic
|
14
|
+
Number, Punctuation, Generic, Whitespace
|
17
15
|
from pygments.util import shebang_matches
|
18
16
|
from pygments.lexers._julia_builtins import OPERATORS_LIST, DOTTED_OPERATORS_LIST, \
|
19
17
|
KEYWORD_LIST, BUILTIN_LIST, LITERAL_LIST
|
@@ -28,22 +26,21 @@ operator_suffixes = r'[²³¹ʰʲʳʷʸˡˢˣᴬᴮᴰᴱᴳᴴᴵᴶᴷᴸᴹ
|
|
28
26
|
|
29
27
|
class JuliaLexer(RegexLexer):
|
30
28
|
"""
|
31
|
-
For
|
29
|
+
For Julia source code.
|
32
30
|
|
33
31
|
.. versionadded:: 1.6
|
34
32
|
"""
|
35
33
|
|
36
34
|
name = 'Julia'
|
35
|
+
url = 'https://julialang.org/'
|
37
36
|
aliases = ['julia', 'jl']
|
38
37
|
filenames = ['*.jl']
|
39
38
|
mimetypes = ['text/x-julia', 'application/x-julia']
|
40
39
|
|
41
|
-
flags = re.MULTILINE | re.UNICODE
|
42
|
-
|
43
40
|
tokens = {
|
44
41
|
'root': [
|
45
|
-
(r'\n',
|
46
|
-
(r'[^\S\n]+',
|
42
|
+
(r'\n', Whitespace),
|
43
|
+
(r'[^\S\n]+', Whitespace),
|
47
44
|
(r'#=', Comment.Multiline, "blockcomment"),
|
48
45
|
(r'#.*$', Comment),
|
49
46
|
(r'[\[\](),;]', Punctuation),
|
@@ -51,29 +48,32 @@ class JuliaLexer(RegexLexer):
|
|
51
48
|
# symbols
|
52
49
|
# intercept range expressions first
|
53
50
|
(r'(' + allowed_variable + r')(\s*)(:)(' + allowed_variable + ')',
|
54
|
-
bygroups(Name,
|
51
|
+
bygroups(Name, Whitespace, Operator, Name)),
|
55
52
|
# then match :name which does not follow closing brackets, digits, or the
|
56
53
|
# ::, <:, and :> operators
|
57
54
|
(r'(?<![\]):<>\d.])(:' + allowed_variable + ')', String.Symbol),
|
58
55
|
|
59
56
|
# type assertions - excludes expressions like ::typeof(sin) and ::avec[1]
|
60
|
-
(r'(?<=::)(\s*)(' + allowed_variable + r')\b(?![(\[])',
|
57
|
+
(r'(?<=::)(\s*)(' + allowed_variable + r')\b(?![(\[])',
|
58
|
+
bygroups(Whitespace, Keyword.Type)),
|
61
59
|
# type comparisons
|
62
60
|
# - MyType <: A or MyType >: A
|
63
61
|
('(' + allowed_variable + r')(\s*)([<>]:)(\s*)(' + allowed_variable + r')\b(?![(\[])',
|
64
|
-
bygroups(Keyword.Type,
|
62
|
+
bygroups(Keyword.Type, Whitespace, Operator, Whitespace, Keyword.Type)),
|
65
63
|
# - <: B or >: B
|
66
64
|
(r'([<>]:)(\s*)(' + allowed_variable + r')\b(?![(\[])',
|
67
|
-
bygroups(Operator,
|
65
|
+
bygroups(Operator, Whitespace, Keyword.Type)),
|
68
66
|
# - A <: or A >:
|
69
67
|
(r'\b(' + allowed_variable + r')(\s*)([<>]:)',
|
70
|
-
bygroups(Keyword.Type,
|
68
|
+
bygroups(Keyword.Type, Whitespace, Operator)),
|
71
69
|
|
72
70
|
# operators
|
73
71
|
# Suffixes aren't actually allowed on all operators, but we'll ignore that
|
74
72
|
# since those cases are invalid Julia code.
|
75
|
-
(words([*OPERATORS_LIST, *DOTTED_OPERATORS_LIST],
|
76
|
-
|
73
|
+
(words([*OPERATORS_LIST, *DOTTED_OPERATORS_LIST],
|
74
|
+
suffix=operator_suffixes), Operator),
|
75
|
+
(words(['.' + o for o in DOTTED_OPERATORS_LIST],
|
76
|
+
suffix=operator_suffixes), Operator),
|
77
77
|
(words(['...', '..']), Operator),
|
78
78
|
|
79
79
|
# NOTE
|
@@ -97,12 +97,16 @@ class JuliaLexer(RegexLexer):
|
|
97
97
|
(r'(r)(""")', bygroups(String.Affix, String.Regex), 'tqregex'),
|
98
98
|
(r'(r)(")', bygroups(String.Affix, String.Regex), 'regex'),
|
99
99
|
# other strings
|
100
|
-
(r'(' + allowed_variable + ')?(""")',
|
101
|
-
|
100
|
+
(r'(' + allowed_variable + ')?(""")',
|
101
|
+
bygroups(String.Affix, String), 'tqstring'),
|
102
|
+
(r'(' + allowed_variable + ')?(")',
|
103
|
+
bygroups(String.Affix, String), 'string'),
|
102
104
|
|
103
105
|
# backticks
|
104
|
-
(r'(' + allowed_variable + ')?(```)',
|
105
|
-
|
106
|
+
(r'(' + allowed_variable + ')?(```)',
|
107
|
+
bygroups(String.Affix, String.Backtick), 'tqcommand'),
|
108
|
+
(r'(' + allowed_variable + ')?(`)',
|
109
|
+
bygroups(String.Affix, String.Backtick), 'command'),
|
106
110
|
|
107
111
|
# type names
|
108
112
|
# - names that begin a curly expression
|
@@ -110,12 +114,16 @@ class JuliaLexer(RegexLexer):
|
|
110
114
|
bygroups(Keyword.Type, Punctuation), 'curly'),
|
111
115
|
# - names as part of bare 'where'
|
112
116
|
(r'(where)(\s+)(' + allowed_variable + ')',
|
113
|
-
bygroups(Keyword,
|
117
|
+
bygroups(Keyword, Whitespace, Keyword.Type)),
|
114
118
|
# - curly expressions in general
|
115
119
|
(r'(\{)', Punctuation, 'curly'),
|
116
120
|
# - names as part of type declaration
|
117
|
-
(r'(abstract
|
118
|
-
allowed_variable + r')',
|
121
|
+
(r'(abstract|primitive)([ \t]+)(type\b)([\s()]+)(' +
|
122
|
+
allowed_variable + r')',
|
123
|
+
bygroups(Keyword, Whitespace, Keyword, Text, Keyword.Type)),
|
124
|
+
(r'(mutable(?=[ \t]))?([ \t]+)?(struct\b)([\s()]+)(' +
|
125
|
+
allowed_variable + r')',
|
126
|
+
bygroups(Keyword, Whitespace, Keyword, Text, Keyword.Type)),
|
119
127
|
|
120
128
|
# macros
|
121
129
|
(r'@' + allowed_variable, Name.Decorator),
|
@@ -169,9 +177,9 @@ class JuliaLexer(RegexLexer):
|
|
169
177
|
(r'([^"\\]|\\[^"])+', String),
|
170
178
|
],
|
171
179
|
|
172
|
-
# Interpolation is defined as "$" followed by the shortest full
|
173
|
-
# something we can't parse.
|
174
|
-
#
|
180
|
+
# Interpolation is defined as "$" followed by the shortest full
|
181
|
+
# expression, which is something we can't parse. Include the most
|
182
|
+
# common cases here: $word, and $(paren'd expr).
|
175
183
|
'interp': [
|
176
184
|
(r'\$' + allowed_variable, String.Interpol),
|
177
185
|
(r'(\$)(\()', bygroups(String.Interpol, Punctuation), 'in-intp'),
|
@@ -183,7 +191,8 @@ class JuliaLexer(RegexLexer):
|
|
183
191
|
],
|
184
192
|
|
185
193
|
'string': [
|
186
|
-
(r'(")(' + allowed_variable + r'|\d+)?',
|
194
|
+
(r'(")(' + allowed_variable + r'|\d+)?',
|
195
|
+
bygroups(String, String.Affix), '#pop'),
|
187
196
|
# FIXME: This escape pattern is not perfect.
|
188
197
|
(r'\\([\\"\'$nrbtfav]|(x|u|U)[a-fA-F0-9]+|\d+)', String.Escape),
|
189
198
|
include('interp'),
|
@@ -194,7 +203,8 @@ class JuliaLexer(RegexLexer):
|
|
194
203
|
(r'.', String),
|
195
204
|
],
|
196
205
|
'tqstring': [
|
197
|
-
(r'(""")(' + allowed_variable + r'|\d+)?',
|
206
|
+
(r'(""")(' + allowed_variable + r'|\d+)?',
|
207
|
+
bygroups(String, String.Affix), '#pop'),
|
198
208
|
(r'\\([\\"\'$nrbtfav]|(x|u|U)[a-fA-F0-9]+|\d+)', String.Escape),
|
199
209
|
include('interp'),
|
200
210
|
(r'[^"$%\\]+', String),
|
@@ -213,14 +223,16 @@ class JuliaLexer(RegexLexer):
|
|
213
223
|
],
|
214
224
|
|
215
225
|
'command': [
|
216
|
-
(r'(`)(' + allowed_variable + r'|\d+)?',
|
226
|
+
(r'(`)(' + allowed_variable + r'|\d+)?',
|
227
|
+
bygroups(String.Backtick, String.Affix), '#pop'),
|
217
228
|
(r'\\[`$]', String.Escape),
|
218
229
|
include('interp'),
|
219
230
|
(r'[^\\`$]+', String.Backtick),
|
220
231
|
(r'.', String.Backtick),
|
221
232
|
],
|
222
233
|
'tqcommand': [
|
223
|
-
(r'(```)(' + allowed_variable + r'|\d+)?',
|
234
|
+
(r'(```)(' + allowed_variable + r'|\d+)?',
|
235
|
+
bygroups(String.Backtick, String.Affix), '#pop'),
|
224
236
|
(r'\\\$', String.Escape),
|
225
237
|
include('interp'),
|
226
238
|
(r'[^\\`$]+', String.Backtick),
|
@@ -249,7 +261,7 @@ class JuliaConsoleLexer(Lexer):
|
|
249
261
|
output = False
|
250
262
|
error = False
|
251
263
|
|
252
|
-
for line in text.splitlines(True):
|
264
|
+
for line in text.splitlines(keepends=True):
|
253
265
|
if line.startswith('julia>'):
|
254
266
|
insertions.append((len(curcode), [(0, Generic.Prompt, line[:6])]))
|
255
267
|
curcode += line[6:]
|
@@ -261,7 +273,7 @@ class JuliaConsoleLexer(Lexer):
|
|
261
273
|
output = False
|
262
274
|
error = False
|
263
275
|
elif line.startswith(' ') and not output:
|
264
|
-
insertions.append((len(curcode), [(0,
|
276
|
+
insertions.append((len(curcode), [(0, Whitespace, line[:6])]))
|
265
277
|
curcode += line[6:]
|
266
278
|
else:
|
267
279
|
if curcode:
|