github-linguist 5.3.3 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/git-linguist +5 -2
- data/ext/linguist/linguist.c +18 -7
- data/grammars/annotation.liquidhaskell.haskell.json +969 -862
- data/grammars/config.xcompose.json +22 -25
- data/grammars/file.lasso.json +296 -309
- data/grammars/hint.haskell.json +867 -766
- data/grammars/hint.message.haskell.json +867 -766
- data/grammars/hint.type.haskell.json +867 -766
- data/grammars/objdump.x86asm.json +20 -24
- data/grammars/source.Kotlin.json +220 -225
- data/grammars/source.LS.json +36 -55
- data/grammars/source.MCPOST.json +24 -38
- data/grammars/source.MOD.json +26 -41
- data/grammars/source.SASLog.json +9 -16
- data/grammars/source.abap.json +48 -56
- data/grammars/source.abl.json +8 -14
- data/grammars/source.abnf.json +88 -98
- data/grammars/source.actionscript.3.json +398 -429
- data/grammars/source.acucobol.json +5 -8
- data/grammars/source.ada.json +46 -53
- data/grammars/source.afm.json +548 -554
- data/grammars/source.agc.json +34 -37
- data/grammars/source.agda.json +79 -91
- data/grammars/source.ahk.json +62 -66
- data/grammars/source.alloy.json +16 -20
- data/grammars/source.ampl.json +41 -47
- data/grammars/source.angelscript.json +71 -80
- data/grammars/source.antlr.json +131 -136
- data/grammars/source.apache-config.json +93 -99
- data/grammars/source.apache-config.mod_perl.json +19 -24
- data/grammars/source.apl.json +1038 -1029
- data/grammars/source.applescript.json +501 -523
- data/grammars/source.apt.json +9 -16
- data/grammars/source.asn.json +27 -31
- data/grammars/source.asp.json +61 -67
- data/grammars/source.aspectj.json +385 -391
- data/grammars/source.assembly.json +49 -55
- data/grammars/source.ats.json +45 -121
- data/grammars/source.autoit.json +64 -69
- data/grammars/source.awk.json +172 -176
- data/grammars/source.ballerina.json +48 -395
- data/grammars/source.batchfile.json +269 -269
- data/grammars/source.befunge.json +17 -21
- data/grammars/source.bf.json +5 -11
- data/grammars/source.bison.json +10 -14
- data/grammars/source.blitzmax.json +300 -305
- data/grammars/source.boo.json +189 -193
- data/grammars/source.brightauthorproject.json +8 -13
- data/grammars/source.brightscript.json +37 -47
- data/grammars/source.bro.json +134 -140
- data/grammars/source.bsl.json +152 -193
- data/grammars/source.bsv.json +96 -102
- data/grammars/source.c++.json +176 -193
- data/grammars/source.c++.qt.json +13 -21
- data/grammars/source.c.ec.json +15 -21
- data/grammars/source.c.json +237 -251
- data/grammars/source.c.platform.json +153 -159
- data/grammars/source.c2hs.json +3 -6
- data/grammars/source.cabal.json +17 -20
- data/grammars/source.cache.cmake.json +18 -23
- data/grammars/source.cake.json +4 -7
- data/grammars/source.camlp4.ocaml.json +24 -27
- data/grammars/source.capnp.json +33 -38
- data/grammars/source.ceylon.json +44 -50
- data/grammars/source.cfscript.cfc.json +78 -86
- data/grammars/source.cfscript.json +513 -520
- data/grammars/source.changelogs.rpm-spec.json +8 -16
- data/grammars/source.chapel.json +109 -87
- data/grammars/source.cirru.json +25 -30
- data/grammars/source.clarion.json +41 -54
- data/grammars/source.clean.json +90 -95
- data/grammars/source.click.json +25 -28
- data/grammars/source.clips.json +10 -23
- data/grammars/source.clojure.json +151 -168
- data/grammars/source.cm.json +14 -19
- data/grammars/source.cmake.json +53 -61
- data/grammars/source.cobol.json +165 -180
- data/grammars/source.coffee.json +454 -462
- data/grammars/source.cool.json +36 -43
- data/grammars/source.coq.json +17 -21
- data/grammars/source.crystal.json +889 -983
- data/grammars/source.cs.json +739 -740
- data/grammars/source.csound-document.json +69 -73
- data/grammars/source.csound-score.json +52 -55
- data/grammars/source.csound.json +167 -171
- data/grammars/source.css.json +683 -688
- data/grammars/source.css.less.json +211 -511
- data/grammars/source.css.mss.json +94 -101
- data/grammars/source.css.postcss.sugarss.json +260 -0
- data/grammars/source.csx.json +4 -7
- data/grammars/source.cuda-c++.json +47 -81
- data/grammars/source.cwl.json +103 -0
- data/grammars/source.cython.json +536 -582
- data/grammars/source.d.json +243 -252
- data/grammars/source.dart.json +161 -166
- data/grammars/source.data-weave.json +901 -905
- data/grammars/source.desktop.json +29 -33
- data/grammars/source.diff.json +43 -52
- data/grammars/source.disasm.json +15 -16
- data/grammars/source.ditroff.desc.json +73 -84
- data/grammars/source.ditroff.json +60 -61
- data/grammars/source.dm.json +202 -213
- data/grammars/source.dmf.json +44 -47
- data/grammars/source.dockerfile.json +29 -34
- data/grammars/source.dot.json +46 -55
- data/grammars/source.dylan.json +63 -68
- data/grammars/source.ebnf.json +55 -62
- data/grammars/source.eiffel.json +57 -62
- data/grammars/source.elixir.json +321 -366
- data/grammars/source.emacs.lisp.json +458 -249
- data/grammars/source.erazor.json +49 -57
- data/grammars/source.erlang.json +508 -515
- data/grammars/source.essl.json +17 -30
- data/grammars/source.factor.json +85 -91
- data/grammars/source.fan.json +92 -96
- data/grammars/source.fancy.json +93 -118
- data/grammars/source.fish.json +74 -98
- data/grammars/source.fontforge.json +142 -146
- data/grammars/source.forth.json +42 -57
- data/grammars/source.fortran.json +193 -231
- data/grammars/source.fortran.modern.json +77 -103
- data/grammars/source.fsharp.fsi.json +1 -6
- data/grammars/source.fsharp.fsl.json +1 -6
- data/grammars/source.fsharp.fsx.json +1 -6
- data/grammars/source.fsharp.json +148 -153
- data/grammars/source.gap.json +60 -70
- data/grammars/source.gcode.json +9 -16
- data/grammars/source.gdb.json +63 -79
- data/grammars/source.gdb.session.json +27 -28
- data/grammars/source.gdbregs.json +7 -8
- data/grammars/source.gdscript.json +92 -96
- data/grammars/source.gerber.json +38 -56
- data/grammars/source.gfm.json +447 -462
- data/grammars/source.glsl.json +58 -83
- data/grammars/source.gn.json +188 -193
- data/grammars/source.gnuplot.json +104 -120
- data/grammars/source.go.json +169 -181
- data/grammars/source.golo.json +82 -87
- data/grammars/source.gosu.2.json +58 -68
- data/grammars/source.grace.json +266 -270
- data/grammars/source.graphql.json +586 -596
- data/grammars/source.groovy.gradle.json +18 -22
- data/grammars/source.groovy.json +422 -433
- data/grammars/source.harbour.json +129 -173
- data/grammars/source.haskell.json +871 -772
- data/grammars/source.haxe.2.json +402 -413
- data/grammars/source.hlsl.json +6 -16
- data/grammars/source.hsc2hs.json +1 -4
- data/grammars/source.hsig.json +871 -770
- data/grammars/source.hss.1.json +122 -144
- data/grammars/source.httpspec.json +119 -123
- data/grammars/source.hxml.json +8 -15
- data/grammars/source.ideal.json +125 -125
- data/grammars/source.idl-dlm.json +25 -32
- data/grammars/source.idl.json +59 -80
- data/grammars/source.idris.json +171 -185
- data/grammars/source.inform7.json +117 -121
- data/grammars/source.ini.json +37 -43
- data/grammars/source.io.json +65 -73
- data/grammars/source.ioke.json +72 -78
- data/grammars/source.isabelle.root.json +26 -30
- data/grammars/source.isabelle.theory.json +46 -50
- data/grammars/source.j.json +18 -21
- data/grammars/source.jasmin.json +45 -50
- data/grammars/source.java-properties.json +31 -41
- data/grammars/source.java.json +333 -342
- data/grammars/source.jcl.json +15 -18
- data/grammars/source.jflex.json +166 -172
- data/grammars/source.jison.json +331 -334
- data/grammars/source.jisonlex-injection.json +1 -2
- data/grammars/source.jisonlex.json +148 -151
- data/grammars/source.jolie.json +37 -43
- data/grammars/source.jq.json +80 -87
- data/grammars/source.js.json +798 -818
- data/grammars/source.js.jsx.json +2115 -2225
- data/grammars/source.js.objj.json +167 -172
- data/grammars/source.js.regexp.json +50 -50
- data/grammars/source.js.regexp.replacement.json +7 -7
- data/grammars/source.jsdoc.json +94 -94
- data/grammars/source.json.json +61 -71
- data/grammars/source.julia.console.json +5 -6
- data/grammars/source.julia.json +237 -234
- data/grammars/source.lean.json +55 -67
- data/grammars/source.lid.json +6 -10
- data/grammars/source.lilypond.json +181 -195
- data/grammars/source.lisp.json +40 -50
- data/grammars/source.litcoffee.json +169 -183
- data/grammars/source.livescript.json +207 -220
- data/grammars/source.llvm.json +28 -38
- data/grammars/source.logos.json +7 -14
- data/grammars/source.logtalk.json +136 -141
- data/grammars/source.loomscript.json +77 -83
- data/grammars/source.lsl.json +90 -106
- data/grammars/source.lua.json +100 -109
- data/grammars/source.makefile.json +181 -188
- data/grammars/source.makegen.json +3 -7
- data/grammars/source.mask.json +260 -265
- data/grammars/source.mata.json +38 -46
- data/grammars/source.mathematica.json +155 -167
- data/grammars/source.matlab.json +407 -684
- data/grammars/source.maxscript.json +293 -281
- data/grammars/source.mercury.json +179 -184
- data/grammars/source.meson.json +52 -58
- data/grammars/source.meta-info.json +64 -74
- data/grammars/source.ml.json +107 -113
- data/grammars/source.modelica.json +51 -59
- data/grammars/source.modula2.json +33 -42
- data/grammars/source.monkey.json +234 -241
- data/grammars/source.moonscript.json +51 -56
- data/grammars/source.mql5.json +74 -101
- data/grammars/source.mupad.json +30 -72
- data/grammars/source.ncl.json +1 -14
- data/grammars/source.ne.json +39 -42
- data/grammars/source.nemerle.json +58 -63
- data/grammars/source.nesc.json +9 -15
- data/grammars/source.netlinx.erb.json +13 -25
- data/grammars/source.netlinx.json +231 -292
- data/grammars/source.nextflow-groovy.json +1360 -0
- data/grammars/source.nextflow.json +74 -0
- data/grammars/source.nginx.json +274 -287
- data/grammars/source.nim.json +442 -483
- data/grammars/source.nim_filter.json +6 -26
- data/grammars/source.nimcfg.json +38 -51
- data/grammars/source.ninja.json +64 -70
- data/grammars/source.nit.json +60 -64
- data/grammars/source.nix.json +269 -273
- data/grammars/source.nmml.json +31 -37
- data/grammars/source.nsis.json +66 -72
- data/grammars/source.nu.json +129 -139
- data/grammars/source.nut.json +129 -133
- data/grammars/source.objc++.json +3 -10
- data/grammars/source.objc.json +303 -314
- data/grammars/source.objc.platform.json +145 -151
- data/grammars/source.ocaml.json +506 -514
- data/grammars/source.ocamllex.json +108 -115
- data/grammars/source.ocamlyacc.json +116 -123
- data/grammars/source.ooc.json +148 -155
- data/grammars/source.opa.json +39 -49
- data/grammars/source.opal.json +84 -89
- data/grammars/source.opalsysdefs.json +9 -13
- data/grammars/source.opencobol.json +22 -25
- data/grammars/source.opentype.json +148 -152
- data/grammars/source.ox.json +36 -44
- data/grammars/source.oz.json +31 -38
- data/grammars/source.p4.json +49 -59
- data/grammars/source.pan.json +273 -278
- data/grammars/source.papyrus.skyrim.json +705 -781
- data/grammars/source.parrot.pir.json +59 -65
- data/grammars/source.pascal.json +54 -61
- data/grammars/source.pawn.json +835 -849
- data/grammars/source.pcb.board.json +153 -158
- data/grammars/source.pcb.schematic.json +134 -138
- data/grammars/source.pcb.sexp.json +64 -74
- data/grammars/source.pep8.json +28 -32
- data/grammars/source.perl.6.json +83 -92
- data/grammars/source.perl.json +711 -737
- data/grammars/source.perl6fe.json +1204 -1218
- data/grammars/source.php.zephir.json +80 -89
- data/grammars/source.pic.json +137 -142
- data/grammars/source.pig_latin.json +76 -80
- data/grammars/source.pike.json +23 -36
- data/grammars/source.po.json +74 -84
- data/grammars/source.pogoscript.json +23 -29
- data/grammars/source.pony.json +98 -108
- data/grammars/source.postcss.json +370 -0
- data/grammars/source.postscript.json +88 -97
- data/grammars/source.pov-ray sdl.json +36 -42
- data/grammars/source.powershell.json +175 -197
- data/grammars/source.processing.json +236 -249
- data/grammars/source.prolog.eclipse.json +33 -38
- data/grammars/source.prolog.json +66 -72
- data/grammars/source.protobuf.json +88 -94
- data/grammars/source.puppet.json +144 -151
- data/grammars/source.purescript.json +268 -289
- data/grammars/source.pyjade.json +256 -281
- data/grammars/source.python.django.json +13 -18
- data/grammars/source.python.json +3319 -3367
- data/grammars/source.python.salt.json +3 -7
- data/grammars/source.qmake.json +83 -90
- data/grammars/source.qml.json +57 -78
- data/grammars/source.quoting.perl6fe.json +666 -669
- data/grammars/source.r.json +75 -84
- data/grammars/source.racket.json +17 -38
- data/grammars/source.rascal.json +77 -80
- data/grammars/source.reason.hover.type.json +1 -1
- data/grammars/source.reason.json +1025 -1080
- data/grammars/source.rebol.json +167 -177
- data/grammars/source.red.json +169 -177
- data/grammars/source.regexp.babel.json +74 -77
- data/grammars/source.regexp.extended.json +4 -5
- data/grammars/source.regexp.json +260 -264
- data/grammars/source.regexp.perl6fe.json +108 -111
- data/grammars/source.regexp.python.json +210 -215
- data/grammars/source.regexp.spin.json +63 -72
- data/grammars/source.renpy.json +617 -687
- data/grammars/source.rexx.json +25 -32
- data/grammars/source.ring.json +84 -114
- data/grammars/source.rpm-spec.json +392 -401
- data/grammars/source.ruby.gemfile.json +9 -12
- data/grammars/source.ruby.json +862 -952
- data/grammars/source.ruby.rspec.cucumber.steps.json +90 -103
- data/grammars/source.rust.json +223 -281
- data/grammars/source.sas.json +88 -105
- data/grammars/source.sass.json +100 -108
- data/grammars/source.sbt.json +16 -23
- data/grammars/source.scad.json +60 -67
- data/grammars/source.scala.json +215 -228
- data/grammars/source.scaml.json +120 -135
- data/grammars/source.scheme.json +119 -136
- data/grammars/source.scilab.json +40 -47
- data/grammars/source.scss.json +369 -403
- data/grammars/source.sdbl.json +14 -25
- data/grammars/source.shaderlab.json +24 -27
- data/grammars/source.shell.json +409 -440
- data/grammars/source.shen.json +75 -94
- data/grammars/source.smali.json +232 -293
- data/grammars/source.smalltalk.json +60 -75
- data/grammars/source.smt.json +67 -82
- data/grammars/source.solidity.json +35 -54
- data/grammars/source.sp.json +40 -45
- data/grammars/source.sparql.json +3 -8
- data/grammars/source.spin.json +277 -297
- data/grammars/source.sqf.json +34 -44
- data/grammars/source.sql.json +142 -156
- data/grammars/source.stan.json +201 -160
- data/grammars/source.stata.json +57 -68
- data/grammars/source.strings.json +26 -30
- data/grammars/source.stylus.json +558 -565
- data/grammars/source.supercollider.json +33 -40
- data/grammars/source.swift.json +999 -1077
- data/grammars/source.systemverilog.json +351 -365
- data/grammars/source.tcl.json +77 -94
- data/grammars/source.tea.json +61 -67
- data/grammars/source.terra.json +25 -32
- data/grammars/source.terraform.json +68 -88
- data/grammars/source.thrift.json +300 -306
- data/grammars/source.tl.json +112 -117
- data/grammars/source.tla.json +65 -69
- data/grammars/source.toc.json +21 -25
- data/grammars/source.toml.json +117 -122
- data/grammars/source.ts.json +2838 -2774
- data/grammars/source.tsx.json +180 -184
- data/grammars/source.turing.json +970 -974
- data/grammars/source.turtle.json +124 -140
- data/grammars/source.txl.json +23 -37
- data/grammars/source.ucfconstraints.json +16 -21
- data/grammars/source.ur.json +15 -27
- data/grammars/source.vala.json +221 -235
- data/grammars/source.varnish.vcl.json +117 -129
- data/grammars/source.vbnet.json +69 -106
- data/grammars/source.verilog.json +101 -107
- data/grammars/source.vhdl.json +437 -445
- data/grammars/source.viml.json +540 -550
- data/grammars/source.wavefront.mtl.json +274 -277
- data/grammars/source.wavefront.obj.json +781 -784
- data/grammars/source.wdl.json +66 -46
- data/grammars/source.webassembly.json +97 -102
- data/grammars/source.webidl.json +311 -326
- data/grammars/source.x10.json +28 -32
- data/grammars/source.x86asm.json +21 -26
- data/grammars/source.xc.json +164 -172
- data/grammars/source.xq.json +81 -92
- data/grammars/source.xtend.json +199 -208
- data/grammars/source.yaml-ext.json +118 -124
- data/grammars/source.yaml.json +155 -174
- data/grammars/source.yaml.salt.json +113 -116
- data/grammars/source.yang.json +10 -13
- data/grammars/source.yara.json +98 -0
- data/grammars/text.bibtex.json +95 -100
- data/grammars/text.cfml.basic.json +403 -404
- data/grammars/text.elixir.json +18 -23
- data/grammars/text.error-list.json +15 -16
- data/grammars/text.find-refs.json +487 -488
- data/grammars/text.gherkin.feature.json +45 -53
- data/grammars/text.haml.json +176 -189
- data/grammars/text.hamlc.json +82 -88
- data/grammars/text.html.abl.json +16 -21
- data/grammars/text.html.asciidoc.json +139 -153
- data/grammars/text.html.asdoc.json +145 -155
- data/grammars/text.html.asp.json +23 -28
- data/grammars/text.html.basic.json +323 -338
- data/grammars/text.html.cfm.json +316 -325
- data/grammars/text.html.creole.json +177 -189
- data/grammars/text.html.django.json +27 -33
- data/grammars/text.html.ecr.json +21 -25
- data/grammars/text.html.elixir.json +3 -9
- data/grammars/text.html.erb.json +81 -85
- data/grammars/text.html.erlang.yaws.json +24 -29
- data/grammars/text.html.factor.json +5 -11
- data/grammars/text.html.ftl.json +16 -25
- data/grammars/text.html.handlebars.json +579 -598
- data/grammars/text.html.javadoc.json +426 -0
- data/grammars/text.html.js.json +11 -17
- data/grammars/text.html.jsp.json +377 -384
- data/grammars/text.html.liquid.json +8 -18
- data/grammars/text.html.mako.json +257 -275
- data/grammars/text.html.markdown.source.gfm.apib.json +419 -427
- data/grammars/text.html.markdown.source.gfm.mson.json +405 -414
- data/grammars/text.html.mediawiki.json +318 -344
- data/grammars/text.html.php.blade.json +2134 -2140
- data/grammars/text.html.php.json +980 -1013
- data/grammars/text.html.slash.json +101 -107
- data/grammars/text.html.smarty.json +75 -83
- data/grammars/text.html.soy.json +250 -253
- data/grammars/text.html.ssp.json +18 -24
- data/grammars/text.html.tcl.json +17 -24
- data/grammars/text.html.twig.json +712 -718
- data/grammars/text.idl-idldoc.json +5 -9
- data/grammars/text.jade.json +213 -235
- data/grammars/text.junit-test-report.json +25 -28
- data/grammars/text.log.latex.json +44 -46
- data/grammars/text.marko.json +370 -401
- data/grammars/text.python.console.json +3 -7
- data/grammars/text.python.traceback.json +2 -5
- data/grammars/text.rdoc.json +15 -19
- data/grammars/text.restructuredtext.clean.json +8 -11
- data/grammars/text.restructuredtext.json +886 -873
- data/grammars/text.robot.json +26 -36
- data/grammars/text.roff.json +2852 -2915
- data/grammars/text.runoff.json +56 -69
- data/grammars/text.sfd.json +151 -155
- data/grammars/text.shell-session.json +5 -8
- data/grammars/text.slim.json +184 -210
- data/grammars/text.srt.json +54 -57
- data/grammars/text.tex.json +98 -105
- data/grammars/text.tex.latex.beamer.json +14 -20
- data/grammars/text.tex.latex.haskell.json +883 -782
- data/grammars/text.tex.latex.json +281 -291
- data/grammars/text.tex.latex.memoir.json +39 -46
- data/grammars/text.tex.latex.rd.json +32 -38
- data/grammars/text.xml.ant.json +62 -69
- data/grammars/text.xml.flex-config.json +1009 -1013
- data/grammars/text.xml.genshi.json +10 -16
- data/grammars/text.xml.json +117 -130
- data/grammars/text.xml.pom.json +235 -240
- data/grammars/text.xml.xsl.json +31 -37
- data/grammars/text.zone_file.json +24 -29
- data/lib/linguist/blob.rb +10 -1
- data/lib/linguist/blob_helper.rb +4 -1
- data/lib/linguist/file_blob.rb +5 -0
- data/lib/linguist/generated.rb +16 -0
- data/lib/linguist/heuristics.rb +23 -11
- data/lib/linguist/language.rb +3 -6
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +74 -12
- data/lib/linguist/lazy_blob.rb +15 -1
- data/lib/linguist/linguist.bundle +0 -0
- data/lib/linguist/samples.json +1666 -3381
- data/lib/linguist/shebang.rb +2 -0
- data/lib/linguist/strategy/modeline.rb +2 -0
- data/lib/linguist/vendor.yml +5 -6
- data/lib/linguist/version.rb +1 -1
- metadata +12 -11
- data/grammars/source.elm.json +0 -381
- data/grammars/source.nant-build.json +0 -86
- data/grammars/source.octave.json +0 -451
- data/grammars/text.html.mediawiki.elm-build-output.json +0 -111
- data/grammars/text.html.mediawiki.elm-documentation.json +0 -22
- data/grammars/text.html.vue.json +0 -936
@@ -1,13 +1,9 @@
|
|
1
1
|
{
|
2
|
-
"scopeName": "text.python.console",
|
3
2
|
"name": "Python Console",
|
4
|
-
"
|
5
|
-
"doctest",
|
6
|
-
"pycon"
|
7
|
-
],
|
3
|
+
"scopeName": "text.python.console",
|
8
4
|
"patterns": [
|
9
5
|
{
|
10
|
-
"match": "^(
|
6
|
+
"match": "^(\u003e{3}|\\.{3}|In \\[\\d+\\]:) (.+)$",
|
11
7
|
"captures": {
|
12
8
|
"1": {
|
13
9
|
"name": "punctuation.separator.prompt.python.console"
|
@@ -22,4 +18,4 @@
|
|
22
18
|
}
|
23
19
|
}
|
24
20
|
]
|
25
|
-
}
|
21
|
+
}
|
@@ -1,9 +1,6 @@
|
|
1
1
|
{
|
2
|
-
"scopeName": "text.python.traceback",
|
3
2
|
"name": "Python Traceback",
|
4
|
-
"
|
5
|
-
"pytb"
|
6
|
-
],
|
3
|
+
"scopeName": "text.python.traceback",
|
7
4
|
"patterns": [
|
8
5
|
{
|
9
6
|
"match": "^ File (\"[^\"]+\"), line (\\d+)(?:, in (.+))?$",
|
@@ -43,4 +40,4 @@
|
|
43
40
|
}
|
44
41
|
}
|
45
42
|
]
|
46
|
-
}
|
43
|
+
}
|
data/grammars/text.rdoc.json
CHANGED
@@ -1,48 +1,44 @@
|
|
1
1
|
{
|
2
|
-
"fileTypes": [
|
3
|
-
"rdoc"
|
4
|
-
],
|
5
2
|
"name": "RDoc",
|
3
|
+
"scopeName": "text.rdoc",
|
6
4
|
"patterns": [
|
7
5
|
{
|
6
|
+
"name": "meta.bullet-point.strong.text",
|
7
|
+
"match": "^\\s*(•).*$\\n?",
|
8
8
|
"captures": {
|
9
9
|
"1": {
|
10
10
|
"name": "punctuation.definition.item.text"
|
11
11
|
}
|
12
|
-
}
|
13
|
-
"match": "^\\s*(•).*$\\n?",
|
14
|
-
"name": "meta.bullet-point.strong.text"
|
12
|
+
}
|
15
13
|
},
|
16
14
|
{
|
15
|
+
"name": "meta.bullet-point.light.text",
|
16
|
+
"match": "^\\s*(·).*$\\n?",
|
17
17
|
"captures": {
|
18
18
|
"1": {
|
19
19
|
"name": "punctuation.definition.item.text"
|
20
20
|
}
|
21
|
-
}
|
22
|
-
"match": "^\\s*(·).*$\\n?",
|
23
|
-
"name": "meta.bullet-point.light.text"
|
21
|
+
}
|
24
22
|
},
|
25
23
|
{
|
24
|
+
"name": "meta.bullet-point.star.text",
|
25
|
+
"match": "^\\s*(\\*).*$\\n?",
|
26
26
|
"captures": {
|
27
27
|
"1": {
|
28
28
|
"name": "punctuation.definition.item.text"
|
29
29
|
}
|
30
|
-
}
|
31
|
-
"match": "^\\s*(\\*).*$\\n?",
|
32
|
-
"name": "meta.bullet-point.star.text"
|
30
|
+
}
|
33
31
|
},
|
34
32
|
{
|
35
|
-
"begin": "^([ \\t]*)(?=\\S)",
|
36
33
|
"contentName": "meta.paragraph.text",
|
34
|
+
"begin": "^([ \\t]*)(?=\\S)",
|
37
35
|
"end": "^(?!\\1(?=\\S))",
|
38
36
|
"patterns": [
|
39
37
|
{
|
40
|
-
"
|
41
|
-
"
|
38
|
+
"name": "markup.underline.link.text",
|
39
|
+
"match": "(?x)\n\t\t\t\t\t\t( (https?|s?ftp|ftps|file|smb|afp|nfs|(x-)?man|gopher|txmt)://|mailto:)\n\t\t\t\t\t\t[-:@a-zA-Z0-9_.,~%+/?=\u0026#]+(?\u003c![.,?:])\n\t\t\t\t\t"
|
42
40
|
}
|
43
41
|
]
|
44
42
|
}
|
45
|
-
]
|
46
|
-
|
47
|
-
"uuid": "753B331D-F00D-435B-A7F5-3E6D311438D0"
|
48
|
-
}
|
43
|
+
]
|
44
|
+
}
|
@@ -1,27 +1,24 @@
|
|
1
1
|
{
|
2
2
|
"name": "Literate Clean",
|
3
3
|
"scopeName": "text.restructuredtext.clean",
|
4
|
-
"fileTypes": [
|
5
|
-
"lcl"
|
6
|
-
],
|
7
4
|
"patterns": [
|
8
5
|
{
|
9
6
|
"name": "meta.embedded.clean",
|
10
|
-
"begin": "^(
|
7
|
+
"begin": "^(\u003e\u003e?)",
|
11
8
|
"end": "$",
|
12
|
-
"captures": {
|
13
|
-
"1": {
|
14
|
-
"name": "punctuation.separator.literate.clean"
|
15
|
-
}
|
16
|
-
},
|
17
9
|
"patterns": [
|
18
10
|
{
|
19
11
|
"include": "source.clean"
|
20
12
|
}
|
21
|
-
]
|
13
|
+
],
|
14
|
+
"captures": {
|
15
|
+
"1": {
|
16
|
+
"name": "punctuation.separator.literate.clean"
|
17
|
+
}
|
18
|
+
}
|
22
19
|
},
|
23
20
|
{
|
24
21
|
"include": "text.restructuredtext"
|
25
22
|
}
|
26
23
|
]
|
27
|
-
}
|
24
|
+
}
|
@@ -1,16 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "reStructuredText",
|
3
3
|
"scopeName": "text.restructuredtext",
|
4
|
-
"fileTypes": [
|
5
|
-
"rst",
|
6
|
-
"rest"
|
7
|
-
],
|
8
4
|
"patterns": [
|
9
5
|
{
|
10
6
|
"include": "#all"
|
11
7
|
}
|
12
8
|
],
|
13
|
-
"limitLineLength": false,
|
14
9
|
"repository": {
|
15
10
|
"all": {
|
16
11
|
"patterns": [
|
@@ -52,201 +47,6 @@
|
|
52
47
|
}
|
53
48
|
]
|
54
49
|
},
|
55
|
-
"inlines": {
|
56
|
-
"patterns": [
|
57
|
-
{
|
58
|
-
"include": "#escape"
|
59
|
-
},
|
60
|
-
{
|
61
|
-
"include": "#emphasis"
|
62
|
-
},
|
63
|
-
{
|
64
|
-
"include": "#link-definition"
|
65
|
-
},
|
66
|
-
{
|
67
|
-
"include": "#substitution"
|
68
|
-
},
|
69
|
-
{
|
70
|
-
"include": "#literal"
|
71
|
-
},
|
72
|
-
{
|
73
|
-
"include": "#math-inline"
|
74
|
-
},
|
75
|
-
{
|
76
|
-
"include": "#interpreted-line"
|
77
|
-
},
|
78
|
-
{
|
79
|
-
"include": "#anonymous-link"
|
80
|
-
},
|
81
|
-
{
|
82
|
-
"include": "#link-reference"
|
83
|
-
},
|
84
|
-
{
|
85
|
-
"include": "#interpreted-block"
|
86
|
-
},
|
87
|
-
{
|
88
|
-
"include": "#link-text"
|
89
|
-
},
|
90
|
-
{
|
91
|
-
"include": "#footnotes"
|
92
|
-
},
|
93
|
-
{
|
94
|
-
"include": "#citations"
|
95
|
-
}
|
96
|
-
]
|
97
|
-
},
|
98
|
-
"escape": {
|
99
|
-
"match": "\\\\.",
|
100
|
-
"name": "constant.character.escape.backslash.restructuredtext"
|
101
|
-
},
|
102
|
-
"uri": {
|
103
|
-
"name": "string.other.uri.restructuredtext",
|
104
|
-
"match": "\\S+",
|
105
|
-
"captures": {
|
106
|
-
"0": {
|
107
|
-
"name": "markup.link.underline.restructuredtext"
|
108
|
-
}
|
109
|
-
}
|
110
|
-
},
|
111
|
-
"length": {
|
112
|
-
"name": "constant.numeric.length.restructuredtext",
|
113
|
-
"match": "[\\d.]+\\s*(?i:(em|ex|px|in|cm|mm|pt|pc)|(%))?",
|
114
|
-
"captures": {
|
115
|
-
"1": {
|
116
|
-
"name": "keyword.other.${1:/downcase}-unit.restructuredtext"
|
117
|
-
},
|
118
|
-
"2": {
|
119
|
-
"name": "keyword.other.percentile-unit.restructuredtext"
|
120
|
-
}
|
121
|
-
}
|
122
|
-
},
|
123
|
-
"headings": {
|
124
|
-
"name": "markup.heading.restructuredtext",
|
125
|
-
"match": "^(([-=~`#\"^+*:.'_])\\2{2,})(?=\\s*$)",
|
126
|
-
"captures": {
|
127
|
-
"1": {
|
128
|
-
"name": "punctuation.definition.heading.restructuredtext"
|
129
|
-
}
|
130
|
-
}
|
131
|
-
},
|
132
|
-
"line-blocks": {
|
133
|
-
"name": "meta.line-block.restructuredtext",
|
134
|
-
"begin": "^(\\s*)(\\|)(?!.*?(?<=\\S)\\|)",
|
135
|
-
"end": "^(?=\\s*$\\n?)",
|
136
|
-
"beginCaptures": {
|
137
|
-
"2": {
|
138
|
-
"name": "punctuation.separator.line-block.restructuredtext"
|
139
|
-
}
|
140
|
-
},
|
141
|
-
"patterns": [
|
142
|
-
{
|
143
|
-
"match": "^\\s*(\\|)",
|
144
|
-
"captures": {
|
145
|
-
"0": {
|
146
|
-
"name": "punctuation.separator.line-block.restructuredtext"
|
147
|
-
}
|
148
|
-
}
|
149
|
-
},
|
150
|
-
{
|
151
|
-
"include": "#inlines"
|
152
|
-
}
|
153
|
-
]
|
154
|
-
},
|
155
|
-
"emphasis": {
|
156
|
-
"patterns": [
|
157
|
-
{
|
158
|
-
"name": "markup.bold.restructuredtext",
|
159
|
-
"match": "(\\*\\*)[^\\*\\s][^*]*(\\*\\*)",
|
160
|
-
"captures": {
|
161
|
-
"1": {
|
162
|
-
"name": "punctuation.definition.bold.restructuredtext"
|
163
|
-
},
|
164
|
-
"2": {
|
165
|
-
"name": "punctuation.definition.bold.restructuredtext"
|
166
|
-
}
|
167
|
-
}
|
168
|
-
},
|
169
|
-
{
|
170
|
-
"name": "markup.italic.restructuredtext",
|
171
|
-
"match": "(?<!\\\\)(\\*)[^\\*\\s][^*]*(?<!\\\\)(\\*)",
|
172
|
-
"captures": {
|
173
|
-
"1": {
|
174
|
-
"name": "punctuation.definition.italic.restructuredtext"
|
175
|
-
},
|
176
|
-
"2": {
|
177
|
-
"name": "punctuation.definition.italic.restructuredtext"
|
178
|
-
}
|
179
|
-
}
|
180
|
-
}
|
181
|
-
]
|
182
|
-
},
|
183
|
-
"literal": {
|
184
|
-
"name": "markup.raw.restructuredtext",
|
185
|
-
"begin": "``",
|
186
|
-
"end": "``((?=[^`\\w\\d])|$)",
|
187
|
-
"captures": {
|
188
|
-
"0": {
|
189
|
-
"name": "punctuation.definition.raw.restructuredtext"
|
190
|
-
}
|
191
|
-
}
|
192
|
-
},
|
193
|
-
"interpreted-block": {
|
194
|
-
"name": "markup.other.command.restructuredtext",
|
195
|
-
"contentName": "string.other.interpreted.restructuredtext",
|
196
|
-
"begin": "(:)([-A-z0-9:_.]*?)(:)(`)",
|
197
|
-
"end": "(`)",
|
198
|
-
"beginCaptures": {
|
199
|
-
"1": {
|
200
|
-
"name": "punctuation.definition.intepreted.restructuredtext"
|
201
|
-
},
|
202
|
-
"2": {
|
203
|
-
"name": "entity.name.role.restructuredtext"
|
204
|
-
},
|
205
|
-
"3": {
|
206
|
-
"name": "punctuation.definition.intepreted.restructuredtext"
|
207
|
-
},
|
208
|
-
"4": {
|
209
|
-
"name": "punctuation.definition.intepreted.restructuredtext"
|
210
|
-
}
|
211
|
-
},
|
212
|
-
"endCaptures": {
|
213
|
-
"1": {
|
214
|
-
"name": "punctuation.definition.intepreted.restructuredtext"
|
215
|
-
}
|
216
|
-
},
|
217
|
-
"patterns": [
|
218
|
-
{
|
219
|
-
"name": "meta.manpage.link.inline.restructuredtext",
|
220
|
-
"match": "(?<=:manpage:`)\\G([-.\\w]+)(\\()(\\d+)(\\))",
|
221
|
-
"captures": {
|
222
|
-
"1": {
|
223
|
-
"name": "markup.bold.manpage-name.restructuredtext"
|
224
|
-
},
|
225
|
-
"2": {
|
226
|
-
"name": "punctuation.definition.round.bracket.begin.restructuredtext"
|
227
|
-
},
|
228
|
-
"3": {
|
229
|
-
"name": "constant.numeric.integer.restructuredtext"
|
230
|
-
},
|
231
|
-
"4": {
|
232
|
-
"name": "punctuation.definition.round.bracket.begin.restructuredtext"
|
233
|
-
}
|
234
|
-
}
|
235
|
-
}
|
236
|
-
]
|
237
|
-
},
|
238
|
-
"interpreted-line": {
|
239
|
-
"name": "markup.other.command.restructuredtext",
|
240
|
-
"match": "(`)[^`]+(`)(?!_)",
|
241
|
-
"captures": {
|
242
|
-
"1": {
|
243
|
-
"name": "punctuation.definition.intepreted.restructuredtext"
|
244
|
-
},
|
245
|
-
"2": {
|
246
|
-
"name": "punctuation.definition.intepreted.restructuredtext"
|
247
|
-
}
|
248
|
-
}
|
249
|
-
},
|
250
50
|
"anonymous-link": {
|
251
51
|
"name": "meta.link.restructuredtext",
|
252
52
|
"match": "\\s*(__)\\s+(.+)",
|
@@ -259,30 +59,6 @@
|
|
259
59
|
}
|
260
60
|
}
|
261
61
|
},
|
262
|
-
"link-text": {
|
263
|
-
"name": "meta.link.inline.restructuredtext",
|
264
|
-
"match": "(`)([^<`]+)\\s+(<)(.*?)(>)(`_)",
|
265
|
-
"captures": {
|
266
|
-
"1": {
|
267
|
-
"name": "punctuation.definition.link.restructuredtext"
|
268
|
-
},
|
269
|
-
"2": {
|
270
|
-
"name": "string.other.link.title.restructuredtext"
|
271
|
-
},
|
272
|
-
"3": {
|
273
|
-
"name": "punctuation.definition.location.restructuredtext"
|
274
|
-
},
|
275
|
-
"4": {
|
276
|
-
"name": "markup.underline.link.restructuredtext"
|
277
|
-
},
|
278
|
-
"5": {
|
279
|
-
"name": "punctuation.definition.location.restructuredtext"
|
280
|
-
},
|
281
|
-
"6": {
|
282
|
-
"name": "punctuation.definition.link.restructuredtext"
|
283
|
-
}
|
284
|
-
}
|
285
|
-
},
|
286
62
|
"citations": {
|
287
63
|
"patterns": [
|
288
64
|
{
|
@@ -334,34 +110,34 @@
|
|
334
110
|
{
|
335
111
|
"name": "comment.block.empty-start.double-dot.restructuredtext",
|
336
112
|
"begin": "^(\\.\\.)[\\t ]*$\\n?",
|
337
|
-
"end": "^(
|
338
|
-
"beginCaptures": {
|
339
|
-
"1": {
|
340
|
-
"name": "punctuation.definition.comment.restructuredtext"
|
341
|
-
}
|
342
|
-
},
|
113
|
+
"end": "^(?\u003c=\\G)\\s*$\\n?|^(?=\\S)",
|
343
114
|
"patterns": [
|
344
115
|
{
|
345
116
|
"begin": "^(\\s+).*?\\S+\\s*$\\n",
|
346
117
|
"end": "^\\s*$\\n|^(?=\\S)"
|
347
118
|
}
|
348
|
-
]
|
119
|
+
],
|
120
|
+
"beginCaptures": {
|
121
|
+
"1": {
|
122
|
+
"name": "punctuation.definition.comment.restructuredtext"
|
123
|
+
}
|
124
|
+
}
|
349
125
|
},
|
350
126
|
{
|
351
127
|
"name": "comment.block.empty-start.double-dot.restructuredtext",
|
352
128
|
"begin": "^([\\t ]*)(\\.\\.)[\\t ]*$\\n?",
|
353
|
-
"end": "^(?!\\1\\s*\\S)|^(
|
354
|
-
"beginCaptures": {
|
355
|
-
"2": {
|
356
|
-
"name": "punctuation.definition.comment.restructuredtext"
|
357
|
-
}
|
358
|
-
},
|
129
|
+
"end": "^(?!\\1\\s*\\S)|^(?\u003c!\\G)\\s*$\\n?|^(?=\\S)",
|
359
130
|
"patterns": [
|
360
131
|
{
|
361
132
|
"begin": "^(\\s+).*?\\S+\\s*$\\n",
|
362
133
|
"end": "^\\s*$\\n|^\\s*(?=\\S)"
|
363
134
|
}
|
364
|
-
]
|
135
|
+
],
|
136
|
+
"beginCaptures": {
|
137
|
+
"2": {
|
138
|
+
"name": "punctuation.definition.comment.restructuredtext"
|
139
|
+
}
|
140
|
+
}
|
365
141
|
},
|
366
142
|
{
|
367
143
|
"name": "comment.block.double-dot.restructuredtext",
|
@@ -375,317 +151,237 @@
|
|
375
151
|
}
|
376
152
|
]
|
377
153
|
},
|
378
|
-
"
|
154
|
+
"directive-options": {
|
379
155
|
"patterns": [
|
380
156
|
{
|
381
|
-
"name": "meta.
|
382
|
-
"
|
383
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
384
|
-
"patterns": [
|
385
|
-
{
|
386
|
-
"include": "#inlines"
|
387
|
-
}
|
388
|
-
],
|
389
|
-
"contentName": "string.other.footnote.restructuredtext",
|
157
|
+
"name": "meta.directive-option.restructuredtext",
|
158
|
+
"match": "(:[^:]+:)\\s*(.*)",
|
390
159
|
"captures": {
|
391
|
-
"
|
392
|
-
"
|
393
|
-
|
394
|
-
|
395
|
-
|
160
|
+
"1": {
|
161
|
+
"patterns": [
|
162
|
+
{
|
163
|
+
"include": "#tag-name"
|
164
|
+
}
|
165
|
+
]
|
396
166
|
},
|
397
|
-
"
|
398
|
-
"name": "
|
167
|
+
"2": {
|
168
|
+
"name": "string.other.tag-value.restructuredtext"
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
]
|
173
|
+
},
|
174
|
+
"directives": {
|
175
|
+
"patterns": [
|
176
|
+
{
|
177
|
+
"name": "meta.image.restructuredtext",
|
178
|
+
"begin": "^(\\s*)(\\.\\.)\\s(image)(::)\\s*(\\S+)",
|
179
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
180
|
+
"patterns": [
|
181
|
+
{
|
182
|
+
"include": "#image-options"
|
183
|
+
}
|
184
|
+
],
|
185
|
+
"beginCaptures": {
|
186
|
+
"2": {
|
187
|
+
"name": "punctuation.definition.directive.restructuredtext"
|
399
188
|
},
|
400
|
-
"
|
401
|
-
"name": "
|
189
|
+
"3": {
|
190
|
+
"name": "support.directive.restructuredtext"
|
402
191
|
},
|
403
|
-
"
|
404
|
-
"name": "punctuation.
|
192
|
+
"4": {
|
193
|
+
"name": "punctuation.separator.key-value.restructuredtext"
|
194
|
+
},
|
195
|
+
"5": {
|
196
|
+
"patterns": [
|
197
|
+
{
|
198
|
+
"include": "#uri"
|
199
|
+
}
|
200
|
+
]
|
405
201
|
}
|
406
202
|
}
|
407
203
|
},
|
408
204
|
{
|
409
|
-
"name": "meta.
|
410
|
-
"
|
411
|
-
"
|
412
|
-
|
413
|
-
|
205
|
+
"name": "meta.figure.restructuredtext",
|
206
|
+
"begin": "^(\\s*)(\\.\\.)\\s(figure)(::)\\s*(\\S+)",
|
207
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
208
|
+
"patterns": [
|
209
|
+
{
|
210
|
+
"include": "#image-options"
|
414
211
|
},
|
212
|
+
{
|
213
|
+
"include": "#all"
|
214
|
+
}
|
215
|
+
],
|
216
|
+
"beginCaptures": {
|
415
217
|
"2": {
|
416
|
-
"name": "punctuation.definition.
|
218
|
+
"name": "punctuation.definition.directive.restructuredtext"
|
417
219
|
},
|
418
220
|
"3": {
|
419
|
-
"name": "
|
221
|
+
"name": "support.directive.restructuredtext"
|
420
222
|
},
|
421
223
|
"4": {
|
422
|
-
"name": "punctuation.
|
224
|
+
"name": "punctuation.separator.key-value.restructuredtext"
|
225
|
+
},
|
226
|
+
"5": {
|
227
|
+
"patterns": [
|
228
|
+
{
|
229
|
+
"include": "#uri"
|
230
|
+
}
|
231
|
+
]
|
423
232
|
}
|
424
233
|
}
|
425
234
|
},
|
426
235
|
{
|
427
|
-
"
|
428
|
-
"
|
429
|
-
"
|
430
|
-
|
431
|
-
"
|
432
|
-
}
|
236
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(raw)(::)\\s+(html)\\s*$",
|
237
|
+
"end": "^(?!\\1[ \\t])",
|
238
|
+
"patterns": [
|
239
|
+
{
|
240
|
+
"include": "text.html.basic"
|
241
|
+
}
|
242
|
+
],
|
243
|
+
"beginCaptures": {
|
433
244
|
"2": {
|
434
|
-
"name": "punctuation.definition.
|
245
|
+
"name": "punctuation.definition.directive.restructuredtext"
|
435
246
|
},
|
436
247
|
"3": {
|
437
|
-
"name": "
|
248
|
+
"name": "support.directive.restructuredtext"
|
438
249
|
},
|
439
250
|
"4": {
|
440
|
-
"name": "punctuation.
|
251
|
+
"name": "punctuation.separator.key-value.restructuredtext"
|
252
|
+
},
|
253
|
+
"5": {
|
254
|
+
"name": "entity.name.directive.restructuredtext"
|
441
255
|
}
|
442
256
|
}
|
443
257
|
},
|
444
258
|
{
|
445
|
-
"
|
446
|
-
"
|
447
|
-
"
|
448
|
-
|
449
|
-
|
450
|
-
|
259
|
+
"contentName": "source.embedded.coffee",
|
260
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(coffee-?script)\\s*$",
|
261
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
262
|
+
"patterns": [
|
263
|
+
{
|
264
|
+
"include": "source.coffee"
|
265
|
+
}
|
266
|
+
],
|
267
|
+
"beginCaptures": {
|
451
268
|
"2": {
|
452
|
-
"name": "punctuation.definition.
|
269
|
+
"name": "punctuation.definition.directive.restructuredtext"
|
453
270
|
},
|
454
271
|
"3": {
|
455
|
-
"name": "
|
272
|
+
"name": "support.directive.restructuredtext"
|
456
273
|
},
|
457
274
|
"4": {
|
458
|
-
"name": "punctuation.
|
275
|
+
"name": "punctuation.separator.key-value.restructuredtext"
|
276
|
+
},
|
277
|
+
"5": {
|
278
|
+
"name": "entity.name.directive.restructuredtext"
|
459
279
|
}
|
460
280
|
}
|
461
|
-
}
|
462
|
-
]
|
463
|
-
},
|
464
|
-
"link-definition": {
|
465
|
-
"patterns": [
|
281
|
+
},
|
466
282
|
{
|
467
|
-
"
|
468
|
-
"
|
469
|
-
"
|
470
|
-
|
471
|
-
|
472
|
-
|
283
|
+
"contentName": "source.embedded.js",
|
284
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(js|javascript)\\s*$",
|
285
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
286
|
+
"patterns": [
|
287
|
+
{
|
288
|
+
"include": "source.js"
|
289
|
+
}
|
290
|
+
],
|
291
|
+
"beginCaptures": {
|
473
292
|
"2": {
|
474
|
-
"name": "punctuation.definition.
|
293
|
+
"name": "punctuation.definition.directive.restructuredtext"
|
475
294
|
},
|
476
295
|
"3": {
|
477
|
-
"name": "
|
296
|
+
"name": "support.directive.restructuredtext"
|
478
297
|
},
|
479
298
|
"4": {
|
480
299
|
"name": "punctuation.separator.key-value.restructuredtext"
|
481
300
|
},
|
482
301
|
"5": {
|
483
|
-
"
|
484
|
-
{
|
485
|
-
"include": "#uri"
|
486
|
-
}
|
487
|
-
]
|
302
|
+
"name": "entity.name.directive.restructuredtext"
|
488
303
|
}
|
489
304
|
}
|
490
305
|
},
|
491
306
|
{
|
492
|
-
"
|
493
|
-
"
|
494
|
-
"
|
495
|
-
|
496
|
-
|
497
|
-
|
307
|
+
"contentName": "source.embedded.ts",
|
308
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(typescript)\\s*$",
|
309
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
310
|
+
"patterns": [
|
311
|
+
{
|
312
|
+
"include": "source.ts"
|
313
|
+
}
|
314
|
+
],
|
315
|
+
"beginCaptures": {
|
498
316
|
"2": {
|
499
|
-
"name": "punctuation.definition.
|
317
|
+
"name": "punctuation.definition.directive.restructuredtext"
|
500
318
|
},
|
501
319
|
"3": {
|
502
|
-
"name": "
|
320
|
+
"name": "support.directive.restructuredtext"
|
503
321
|
},
|
504
322
|
"4": {
|
505
323
|
"name": "punctuation.separator.key-value.restructuredtext"
|
506
324
|
},
|
507
325
|
"5": {
|
508
|
-
"
|
509
|
-
{
|
510
|
-
"include": "#uri"
|
511
|
-
}
|
512
|
-
]
|
326
|
+
"name": "entity.name.directive.restructuredtext"
|
513
327
|
}
|
514
328
|
}
|
515
|
-
}
|
516
|
-
]
|
517
|
-
},
|
518
|
-
"link-reference": {
|
519
|
-
"patterns": [
|
329
|
+
},
|
520
330
|
{
|
521
|
-
"
|
522
|
-
"
|
523
|
-
"
|
524
|
-
|
525
|
-
|
526
|
-
|
331
|
+
"contentName": "source.embedded.json",
|
332
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(json)\\s*$",
|
333
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
334
|
+
"patterns": [
|
335
|
+
{
|
336
|
+
"include": "source.json"
|
337
|
+
}
|
338
|
+
],
|
339
|
+
"beginCaptures": {
|
527
340
|
"2": {
|
528
|
-
"name": "punctuation.definition.
|
341
|
+
"name": "punctuation.definition.directive.restructuredtext"
|
342
|
+
},
|
343
|
+
"3": {
|
344
|
+
"name": "support.directive.restructuredtext"
|
345
|
+
},
|
346
|
+
"4": {
|
347
|
+
"name": "punctuation.separator.key-value.restructuredtext"
|
348
|
+
},
|
349
|
+
"5": {
|
350
|
+
"name": "entity.name.directive.restructuredtext"
|
529
351
|
}
|
530
352
|
}
|
531
353
|
},
|
532
354
|
{
|
533
|
-
"
|
534
|
-
"begin": "
|
535
|
-
"end": "
|
536
|
-
"beginCaptures": {
|
537
|
-
"0": {
|
538
|
-
"name": "punctuation.definition.link.restructuredtext"
|
539
|
-
}
|
540
|
-
},
|
541
|
-
"endCaptures": {
|
542
|
-
"0": {
|
543
|
-
"name": "punctuation.definition.link.restructuredtext"
|
544
|
-
}
|
545
|
-
},
|
355
|
+
"contentName": "source.embedded.css",
|
356
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(css)\\s*$",
|
357
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
546
358
|
"patterns": [
|
547
359
|
{
|
548
|
-
"
|
549
|
-
"match": "[^`]+"
|
360
|
+
"include": "source.css"
|
550
361
|
}
|
551
|
-
]
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
362
|
+
],
|
363
|
+
"beginCaptures": {
|
364
|
+
"2": {
|
365
|
+
"name": "punctuation.definition.directive.restructuredtext"
|
366
|
+
},
|
367
|
+
"3": {
|
368
|
+
"name": "support.directive.restructuredtext"
|
369
|
+
},
|
370
|
+
"4": {
|
371
|
+
"name": "punctuation.separator.key-value.restructuredtext"
|
372
|
+
},
|
373
|
+
"5": {
|
374
|
+
"name": "entity.name.directive.restructuredtext"
|
375
|
+
}
|
376
|
+
}
|
377
|
+
},
|
558
378
|
{
|
559
|
-
"
|
560
|
-
"
|
561
|
-
|
562
|
-
],
|
563
|
-
"begin": "^(?!\\s*\\.\\.\\s\\w+)(\\s*)(.*)(::)$",
|
564
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
565
|
-
"beginCaptures": {
|
566
|
-
"2": {
|
379
|
+
"contentName": "source.embedded.xml",
|
380
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(xml)\\s*$",
|
381
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
567
382
|
"patterns": [
|
568
383
|
{
|
569
|
-
"include": "
|
570
|
-
}
|
571
|
-
]
|
572
|
-
},
|
573
|
-
"3": {
|
574
|
-
"name": "punctuation.section.raw.restructuredtext"
|
575
|
-
}
|
576
|
-
}
|
577
|
-
},
|
578
|
-
"doctests": {
|
579
|
-
"name": "meta.doctest.restructuredtext",
|
580
|
-
"begin": "^(\\s*)(>>>)\\s+(.*)$\\n",
|
581
|
-
"end": "^\\s*$|^(?=\\1>>> )|^(?=>>>)|^(?!\\1)\\s+\\S",
|
582
|
-
"contentName": "markup.raw.restructuredtext",
|
583
|
-
"beginCaptures": {
|
584
|
-
"2": {
|
585
|
-
"name": "punctuation.separator.prompt.doctest.restructuredtext"
|
586
|
-
},
|
587
|
-
"3": {
|
588
|
-
"patterns": [
|
589
|
-
{
|
590
|
-
"include": "source.python"
|
591
|
-
}
|
592
|
-
]
|
593
|
-
}
|
594
|
-
}
|
595
|
-
},
|
596
|
-
"tables": {
|
597
|
-
"patterns": [
|
598
|
-
{
|
599
|
-
"name": "meta.table.grid-table.restructuredtext",
|
600
|
-
"contentName": "markup.other.table.restructuredtext",
|
601
|
-
"begin": "(?=((\\+-[+-]+))|((\\+=[+=]+))\\s*$)",
|
602
|
-
"end": "^\\s*$",
|
603
|
-
"patterns": [
|
604
|
-
{
|
605
|
-
"include": "#table-borders"
|
606
|
-
},
|
607
|
-
{
|
608
|
-
"include": "#inlines"
|
609
|
-
}
|
610
|
-
]
|
611
|
-
},
|
612
|
-
{
|
613
|
-
"name": "punctuation.definition.table.simple-divider.restructuredtext",
|
614
|
-
"match": "(?x)\n^\\s*-{2,}\\s+-{2,}(?:\\s+-{2,})*\\s*$\n|\n^\\s*={2,}\\s+={2,}(?:\\s+={2,})*\\s*$"
|
615
|
-
}
|
616
|
-
]
|
617
|
-
},
|
618
|
-
"table-borders": {
|
619
|
-
"patterns": [
|
620
|
-
{
|
621
|
-
"begin": "\\+(?=-+(?=\\+|$))",
|
622
|
-
"end": "(?=\\+(?=-)|$)|\\+(?=\\s|$)",
|
623
|
-
"contentName": "punctuation.definition.table.row-divider.restructuredtext",
|
624
|
-
"beginCaptures": {
|
625
|
-
"0": {
|
626
|
-
"name": "punctuation.definition.table.joint.restructuredtext"
|
627
|
-
}
|
628
|
-
},
|
629
|
-
"endCaptures": {
|
630
|
-
"0": {
|
631
|
-
"name": "punctuation.definition.table.joint.restructuredtext"
|
632
|
-
}
|
633
|
-
}
|
634
|
-
},
|
635
|
-
{
|
636
|
-
"begin": "\\+(?==+(?=\\+|$))",
|
637
|
-
"end": "(?=\\+(?==)|$)|\\+\\s*$",
|
638
|
-
"contentName": "punctuation.definition.table.header.row-divider.restructuredtext",
|
639
|
-
"beginCaptures": {
|
640
|
-
"0": {
|
641
|
-
"name": "punctuation.definition.table.joint.restructuredtext"
|
642
|
-
}
|
643
|
-
},
|
644
|
-
"endCaptures": {
|
645
|
-
"0": {
|
646
|
-
"name": "punctuation.definition.table.joint.restructuredtext"
|
647
|
-
}
|
648
|
-
}
|
649
|
-
},
|
650
|
-
{
|
651
|
-
"match": "\\|",
|
652
|
-
"name": "punctuation.definition.table.header.column-divider.restructuredtext"
|
653
|
-
}
|
654
|
-
]
|
655
|
-
},
|
656
|
-
"tag-name": {
|
657
|
-
"name": "entity.name.tag.restructuredtext",
|
658
|
-
"match": "(:)[A-Za-z][\\w\\s=.-]*(:)",
|
659
|
-
"captures": {
|
660
|
-
"1": {
|
661
|
-
"name": "punctuation.definition.field.restructuredtext"
|
662
|
-
},
|
663
|
-
"2": {
|
664
|
-
"name": "punctuation.definition.field.restructuredtext"
|
665
|
-
}
|
666
|
-
}
|
667
|
-
},
|
668
|
-
"substitution": {
|
669
|
-
"name": "support.variable.substitution.restructuredtext",
|
670
|
-
"match": "(?<!\\\\)(\\|)[^|]+(?<!\\\\)(\\|_{0,2})",
|
671
|
-
"captures": {
|
672
|
-
"1": {
|
673
|
-
"name": "punctuation.definition.substitution.restructuredtext"
|
674
|
-
},
|
675
|
-
"2": {
|
676
|
-
"name": "punctuation.definition.substitution.restructuredtext"
|
677
|
-
}
|
678
|
-
}
|
679
|
-
},
|
680
|
-
"substitution-definition": {
|
681
|
-
"patterns": [
|
682
|
-
{
|
683
|
-
"name": "meta.substitution-definition.image.restructuredtext",
|
684
|
-
"begin": "^(\\s*)(\\.\\.)\\s(\\|)(?=\\S)([^\\|]+)((?<=\\S)\\|)\\s+(image)(::)\\s*(\\S+)",
|
685
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
686
|
-
"patterns": [
|
687
|
-
{
|
688
|
-
"include": "#image-options"
|
384
|
+
"include": "text.xml"
|
689
385
|
}
|
690
386
|
],
|
691
387
|
"beginCaptures": {
|
@@ -693,36 +389,23 @@
|
|
693
389
|
"name": "punctuation.definition.directive.restructuredtext"
|
694
390
|
},
|
695
391
|
"3": {
|
696
|
-
"name": "punctuation.definition.substitution.start.restructuredtext"
|
697
|
-
},
|
698
|
-
"4": {
|
699
|
-
"name": "entity.name.substitution.restructuredtext"
|
700
|
-
},
|
701
|
-
"5": {
|
702
|
-
"name": "punctuation.definition.substitution.end.restructuredtext"
|
703
|
-
},
|
704
|
-
"6": {
|
705
392
|
"name": "support.directive.restructuredtext"
|
706
393
|
},
|
707
|
-
"
|
394
|
+
"4": {
|
708
395
|
"name": "punctuation.separator.key-value.restructuredtext"
|
709
396
|
},
|
710
|
-
"
|
711
|
-
"
|
712
|
-
{
|
713
|
-
"include": "#uri"
|
714
|
-
}
|
715
|
-
]
|
397
|
+
"5": {
|
398
|
+
"name": "entity.name.directive.restructuredtext"
|
716
399
|
}
|
717
400
|
}
|
718
401
|
},
|
719
402
|
{
|
720
|
-
"
|
721
|
-
"begin": "^(\\
|
403
|
+
"contentName": "source.embedded.ruby",
|
404
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(ruby)\\s*$",
|
722
405
|
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
723
406
|
"patterns": [
|
724
407
|
{
|
725
|
-
"include": "
|
408
|
+
"include": "source.ruby"
|
726
409
|
}
|
727
410
|
],
|
728
411
|
"beginCaptures": {
|
@@ -730,66 +413,23 @@
|
|
730
413
|
"name": "punctuation.definition.directive.restructuredtext"
|
731
414
|
},
|
732
415
|
"3": {
|
733
|
-
"name": "punctuation.definition.substitution.start.restructuredtext"
|
734
|
-
},
|
735
|
-
"4": {
|
736
|
-
"name": "entity.name.substitution.restructuredtext"
|
737
|
-
},
|
738
|
-
"5": {
|
739
|
-
"name": "punctuation.definition.substitution.end.restructuredtext"
|
740
|
-
},
|
741
|
-
"6": {
|
742
416
|
"name": "support.directive.restructuredtext"
|
743
417
|
},
|
744
|
-
"
|
418
|
+
"4": {
|
745
419
|
"name": "punctuation.separator.key-value.restructuredtext"
|
746
420
|
},
|
747
|
-
"
|
748
|
-
"name": "
|
421
|
+
"5": {
|
422
|
+
"name": "entity.name.directive.restructuredtext"
|
749
423
|
}
|
750
424
|
}
|
751
|
-
}
|
752
|
-
]
|
753
|
-
},
|
754
|
-
"math-inline": {
|
755
|
-
"name": "markup.other.command.restructuredtext",
|
756
|
-
"contentName": "markup.math.inline.restructuredtext",
|
757
|
-
"patterns": [
|
758
|
-
{
|
759
|
-
"include": "text.tex#math"
|
760
|
-
}
|
761
|
-
],
|
762
|
-
"begin": "(:)(math)(:)(`)",
|
763
|
-
"end": "(`)",
|
764
|
-
"beginCaptures": {
|
765
|
-
"1": {
|
766
|
-
"name": "punctuation.definition.intepreted.restructuredtext"
|
767
425
|
},
|
768
|
-
"2": {
|
769
|
-
"name": "entity.name.role.restructuredtext"
|
770
|
-
},
|
771
|
-
"3": {
|
772
|
-
"name": "punctuation.definition.intepreted.restructuredtext"
|
773
|
-
},
|
774
|
-
"4": {
|
775
|
-
"name": "punctuation.definition.intepreted.restructuredtext"
|
776
|
-
}
|
777
|
-
},
|
778
|
-
"endCaptures": {
|
779
|
-
"1": {
|
780
|
-
"name": "punctuation.definition.intepreted.restructuredtext"
|
781
|
-
}
|
782
|
-
}
|
783
|
-
},
|
784
|
-
"directives": {
|
785
|
-
"patterns": [
|
786
426
|
{
|
787
|
-
"
|
788
|
-
"begin": "^(\\
|
427
|
+
"contentName": "source.embedded.java",
|
428
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(java)\\s*$",
|
789
429
|
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
790
430
|
"patterns": [
|
791
431
|
{
|
792
|
-
"include": "
|
432
|
+
"include": "source.java"
|
793
433
|
}
|
794
434
|
],
|
795
435
|
"beginCaptures": {
|
@@ -803,24 +443,17 @@
|
|
803
443
|
"name": "punctuation.separator.key-value.restructuredtext"
|
804
444
|
},
|
805
445
|
"5": {
|
806
|
-
"
|
807
|
-
{
|
808
|
-
"include": "#uri"
|
809
|
-
}
|
810
|
-
]
|
446
|
+
"name": "entity.name.directive.restructuredtext"
|
811
447
|
}
|
812
448
|
}
|
813
449
|
},
|
814
450
|
{
|
815
|
-
"
|
816
|
-
"begin": "^(\\
|
451
|
+
"contentName": "source.embedded.erlang",
|
452
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(erlang)\\s*$",
|
817
453
|
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
818
454
|
"patterns": [
|
819
455
|
{
|
820
|
-
"include": "
|
821
|
-
},
|
822
|
-
{
|
823
|
-
"include": "#all"
|
456
|
+
"include": "source.erlang"
|
824
457
|
}
|
825
458
|
],
|
826
459
|
"beginCaptures": {
|
@@ -834,20 +467,17 @@
|
|
834
467
|
"name": "punctuation.separator.key-value.restructuredtext"
|
835
468
|
},
|
836
469
|
"5": {
|
837
|
-
"
|
838
|
-
{
|
839
|
-
"include": "#uri"
|
840
|
-
}
|
841
|
-
]
|
470
|
+
"name": "entity.name.directive.restructuredtext"
|
842
471
|
}
|
843
472
|
}
|
844
473
|
},
|
845
474
|
{
|
846
|
-
"
|
847
|
-
"
|
475
|
+
"contentName": "source.embedded.cs",
|
476
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(csharp|c#)\\s*$",
|
477
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
848
478
|
"patterns": [
|
849
479
|
{
|
850
|
-
"include": "
|
480
|
+
"include": "source.cs"
|
851
481
|
}
|
852
482
|
],
|
853
483
|
"beginCaptures": {
|
@@ -866,14 +496,14 @@
|
|
866
496
|
}
|
867
497
|
},
|
868
498
|
{
|
869
|
-
"contentName": "source.embedded.
|
499
|
+
"contentName": "source.embedded.php",
|
500
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(php[3-5]?)\\s*$",
|
501
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
870
502
|
"patterns": [
|
871
503
|
{
|
872
|
-
"include": "
|
504
|
+
"include": "text.html.php"
|
873
505
|
}
|
874
506
|
],
|
875
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(coffee-?script)\\s*$",
|
876
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
877
507
|
"beginCaptures": {
|
878
508
|
"2": {
|
879
509
|
"name": "punctuation.definition.directive.restructuredtext"
|
@@ -890,14 +520,14 @@
|
|
890
520
|
}
|
891
521
|
},
|
892
522
|
{
|
893
|
-
"contentName": "source.embedded.
|
523
|
+
"contentName": "source.embedded.shell",
|
524
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(shell|(ba|k)?sh)\\s*$",
|
525
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
894
526
|
"patterns": [
|
895
527
|
{
|
896
|
-
"include": "source.
|
528
|
+
"include": "source.shell"
|
897
529
|
}
|
898
530
|
],
|
899
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(js|javascript)\\s*$",
|
900
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
901
531
|
"beginCaptures": {
|
902
532
|
"2": {
|
903
533
|
"name": "punctuation.definition.directive.restructuredtext"
|
@@ -914,14 +544,14 @@
|
|
914
544
|
}
|
915
545
|
},
|
916
546
|
{
|
917
|
-
"contentName": "source.embedded.
|
547
|
+
"contentName": "source.embedded.python",
|
548
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(py(thon)?|sage)\\s*$",
|
549
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
918
550
|
"patterns": [
|
919
551
|
{
|
920
|
-
"include": "source.
|
552
|
+
"include": "source.python"
|
921
553
|
}
|
922
554
|
],
|
923
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(json)\\s*$",
|
924
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
925
555
|
"beginCaptures": {
|
926
556
|
"2": {
|
927
557
|
"name": "punctuation.definition.directive.restructuredtext"
|
@@ -938,14 +568,14 @@
|
|
938
568
|
}
|
939
569
|
},
|
940
570
|
{
|
941
|
-
"contentName": "source.embedded.
|
571
|
+
"contentName": "source.embedded.objc",
|
572
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(objective-?c|obj-?c)\\s*$",
|
573
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
942
574
|
"patterns": [
|
943
575
|
{
|
944
|
-
"include": "source.
|
576
|
+
"include": "source.objc"
|
945
577
|
}
|
946
578
|
],
|
947
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(css)\\s*$",
|
948
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
949
579
|
"beginCaptures": {
|
950
580
|
"2": {
|
951
581
|
"name": "punctuation.definition.directive.restructuredtext"
|
@@ -962,14 +592,14 @@
|
|
962
592
|
}
|
963
593
|
},
|
964
594
|
{
|
965
|
-
"contentName": "source.embedded.
|
595
|
+
"contentName": "source.embedded.yaml",
|
596
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(yaml)\\s*$",
|
597
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
966
598
|
"patterns": [
|
967
599
|
{
|
968
|
-
"include": "
|
600
|
+
"include": "source.yaml"
|
969
601
|
}
|
970
602
|
],
|
971
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(xml)\\s*$",
|
972
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
973
603
|
"beginCaptures": {
|
974
604
|
"2": {
|
975
605
|
"name": "punctuation.definition.directive.restructuredtext"
|
@@ -986,14 +616,15 @@
|
|
986
616
|
}
|
987
617
|
},
|
988
618
|
{
|
989
|
-
"
|
619
|
+
"name": "source.embedded.latex",
|
620
|
+
"contentName": "markup.math.block.restructuredtext",
|
621
|
+
"begin": "^([ \\t]*)(\\.\\.)\\s(math)(::)\\s*$",
|
622
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
990
623
|
"patterns": [
|
991
624
|
{
|
992
|
-
"include": "
|
625
|
+
"include": "text.tex#math"
|
993
626
|
}
|
994
627
|
],
|
995
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(ruby)\\s*$",
|
996
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
997
628
|
"beginCaptures": {
|
998
629
|
"2": {
|
999
630
|
"name": "punctuation.definition.directive.restructuredtext"
|
@@ -1003,117 +634,170 @@
|
|
1003
634
|
},
|
1004
635
|
"4": {
|
1005
636
|
"name": "punctuation.separator.key-value.restructuredtext"
|
1006
|
-
},
|
1007
|
-
"5": {
|
1008
|
-
"name": "entity.name.directive.restructuredtext"
|
1009
637
|
}
|
1010
638
|
}
|
1011
639
|
},
|
1012
640
|
{
|
1013
|
-
"
|
1014
|
-
"
|
1015
|
-
|
1016
|
-
|
1017
|
-
}
|
1018
|
-
],
|
1019
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(java)\\s*$",
|
1020
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
1021
|
-
"beginCaptures": {
|
1022
|
-
"2": {
|
641
|
+
"name": "meta.option.directive.restructuredtext",
|
642
|
+
"match": "^\\s*(\\.\\.)\\s(option)(::)\\s*(.+)?$",
|
643
|
+
"captures": {
|
644
|
+
"1": {
|
1023
645
|
"name": "punctuation.definition.directive.restructuredtext"
|
1024
646
|
},
|
1025
|
-
"
|
647
|
+
"2": {
|
1026
648
|
"name": "support.directive.restructuredtext"
|
1027
649
|
},
|
1028
|
-
"
|
650
|
+
"3": {
|
1029
651
|
"name": "punctuation.separator.key-value.restructuredtext"
|
1030
652
|
},
|
1031
|
-
"
|
1032
|
-
"
|
653
|
+
"4": {
|
654
|
+
"patterns": [
|
655
|
+
{
|
656
|
+
"name": "punctuation.definition.bracket.angle.restructuredtext",
|
657
|
+
"match": "\u003c|\u003e"
|
658
|
+
},
|
659
|
+
{
|
660
|
+
"name": "punctuation.delimiter.comma.restructuredtext",
|
661
|
+
"match": ","
|
662
|
+
},
|
663
|
+
{
|
664
|
+
"name": "entity.name.directive.restructuredtext",
|
665
|
+
"match": "[^\\s\u003c\u003e,]+"
|
666
|
+
}
|
667
|
+
]
|
1033
668
|
}
|
1034
669
|
}
|
1035
670
|
},
|
1036
671
|
{
|
1037
|
-
"
|
1038
|
-
"
|
1039
|
-
|
1040
|
-
|
1041
|
-
}
|
1042
|
-
],
|
1043
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(erlang)\\s*$",
|
1044
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
1045
|
-
"beginCaptures": {
|
1046
|
-
"2": {
|
672
|
+
"name": "meta.other.directive.restructuredtext",
|
673
|
+
"match": "^\\s*(\\.\\.)\\s([A-z][-A-z0-9_]+)(::)\\s*$",
|
674
|
+
"captures": {
|
675
|
+
"1": {
|
1047
676
|
"name": "punctuation.definition.directive.restructuredtext"
|
1048
677
|
},
|
1049
|
-
"
|
678
|
+
"2": {
|
1050
679
|
"name": "support.directive.restructuredtext"
|
1051
680
|
},
|
1052
|
-
"
|
681
|
+
"3": {
|
1053
682
|
"name": "punctuation.separator.key-value.restructuredtext"
|
1054
|
-
},
|
1055
|
-
"5": {
|
1056
|
-
"name": "entity.name.directive.restructuredtext"
|
1057
683
|
}
|
1058
684
|
}
|
1059
685
|
},
|
1060
686
|
{
|
1061
|
-
"
|
1062
|
-
"
|
1063
|
-
|
1064
|
-
|
1065
|
-
}
|
1066
|
-
],
|
1067
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(csharp|c#)\\s*$",
|
1068
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
1069
|
-
"beginCaptures": {
|
1070
|
-
"2": {
|
687
|
+
"name": "meta.other.directive.restructuredtext",
|
688
|
+
"match": "^\\s*(\\.\\.)\\s([A-z][-A-z0-9_]+)(::)\\s+(.+?)\\s*$",
|
689
|
+
"captures": {
|
690
|
+
"1": {
|
1071
691
|
"name": "punctuation.definition.directive.restructuredtext"
|
1072
692
|
},
|
1073
|
-
"
|
693
|
+
"2": {
|
1074
694
|
"name": "support.directive.restructuredtext"
|
1075
695
|
},
|
1076
|
-
"
|
696
|
+
"3": {
|
1077
697
|
"name": "punctuation.separator.key-value.restructuredtext"
|
1078
698
|
},
|
1079
|
-
"
|
699
|
+
"4": {
|
1080
700
|
"name": "entity.name.directive.restructuredtext"
|
1081
701
|
}
|
1082
702
|
}
|
703
|
+
}
|
704
|
+
]
|
705
|
+
},
|
706
|
+
"doctests": {
|
707
|
+
"name": "meta.doctest.restructuredtext",
|
708
|
+
"contentName": "markup.raw.restructuredtext",
|
709
|
+
"begin": "^(\\s*)(\u003e\u003e\u003e)\\s+(.*)$\\n",
|
710
|
+
"end": "^\\s*$|^(?=\\1\u003e\u003e\u003e )|^(?=\u003e\u003e\u003e)|^(?!\\1)\\s+\\S",
|
711
|
+
"beginCaptures": {
|
712
|
+
"2": {
|
713
|
+
"name": "punctuation.separator.prompt.doctest.restructuredtext"
|
1083
714
|
},
|
1084
|
-
{
|
1085
|
-
"contentName": "source.embedded.php",
|
715
|
+
"3": {
|
1086
716
|
"patterns": [
|
1087
717
|
{
|
1088
|
-
"include": "source.
|
718
|
+
"include": "source.python"
|
1089
719
|
}
|
1090
|
-
]
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
"
|
1101
|
-
"
|
720
|
+
]
|
721
|
+
}
|
722
|
+
}
|
723
|
+
},
|
724
|
+
"doctree-options": {
|
725
|
+
"patterns": [
|
726
|
+
{
|
727
|
+
"name": "meta.doctree-option.class.restructuredtext",
|
728
|
+
"match": "(:class:)\\s*(.*)",
|
729
|
+
"captures": {
|
730
|
+
"1": {
|
731
|
+
"patterns": [
|
732
|
+
{
|
733
|
+
"include": "#tag-name"
|
734
|
+
}
|
735
|
+
]
|
1102
736
|
},
|
1103
|
-
"
|
1104
|
-
"name": "
|
737
|
+
"2": {
|
738
|
+
"name": "string.other.class-list.restructuredtext"
|
1105
739
|
}
|
1106
740
|
}
|
1107
741
|
},
|
1108
742
|
{
|
1109
|
-
"
|
743
|
+
"name": "meta.doctree-option.name.restructuredtext",
|
744
|
+
"match": "(:name:)\\s*(.*)",
|
745
|
+
"captures": {
|
746
|
+
"1": {
|
747
|
+
"patterns": [
|
748
|
+
{
|
749
|
+
"include": "#tag-name"
|
750
|
+
}
|
751
|
+
]
|
752
|
+
},
|
753
|
+
"2": {
|
754
|
+
"name": "string.other.name.restructuredtext"
|
755
|
+
}
|
756
|
+
}
|
757
|
+
}
|
758
|
+
]
|
759
|
+
},
|
760
|
+
"domains": {
|
761
|
+
"patterns": [
|
762
|
+
{
|
763
|
+
"name": "meta.sphinx-domain.restructuredtext",
|
764
|
+
"contentName": "source.embedded.python",
|
765
|
+
"begin": "^(\\s*)(\\.\\.)\\s+(py)(:)([^:]+)(::)",
|
766
|
+
"end": "^(?!\\s*$|\\1[ \\t]{6,}\\S)",
|
1110
767
|
"patterns": [
|
1111
768
|
{
|
1112
|
-
"
|
769
|
+
"match": "(?:\\G|^)([^(]*)(\\()([^\\\\)]*\\\\[^)]*)(\\))",
|
770
|
+
"captures": {
|
771
|
+
"1": {
|
772
|
+
"patterns": [
|
773
|
+
{
|
774
|
+
"include": "source.python"
|
775
|
+
}
|
776
|
+
]
|
777
|
+
},
|
778
|
+
"2": {
|
779
|
+
"name": "punctuation.parenthesis.begin.python"
|
780
|
+
},
|
781
|
+
"3": {
|
782
|
+
"patterns": [
|
783
|
+
{
|
784
|
+
"name": "constant.character.escape.restructuredtext",
|
785
|
+
"match": "\\\\."
|
786
|
+
},
|
787
|
+
{
|
788
|
+
"include": "source.python"
|
789
|
+
}
|
790
|
+
]
|
791
|
+
},
|
792
|
+
"4": {
|
793
|
+
"name": "punctuation.parenthesis.end.python"
|
794
|
+
}
|
795
|
+
}
|
796
|
+
},
|
797
|
+
{
|
798
|
+
"include": "source.python"
|
1113
799
|
}
|
1114
800
|
],
|
1115
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(shell|(ba|k)?sh)\\s*$",
|
1116
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
1117
801
|
"beginCaptures": {
|
1118
802
|
"2": {
|
1119
803
|
"name": "punctuation.definition.directive.restructuredtext"
|
@@ -1125,19 +809,23 @@
|
|
1125
809
|
"name": "punctuation.separator.key-value.restructuredtext"
|
1126
810
|
},
|
1127
811
|
"5": {
|
1128
|
-
"name": "
|
812
|
+
"name": "support.directive.restructuredtext"
|
813
|
+
},
|
814
|
+
"6": {
|
815
|
+
"name": "punctuation.separator.key-value.restructuredtext"
|
1129
816
|
}
|
1130
817
|
}
|
1131
818
|
},
|
1132
819
|
{
|
1133
|
-
"
|
820
|
+
"name": "meta.sphinx-domain.restructuredtext",
|
821
|
+
"contentName": "source.embedded.c",
|
822
|
+
"begin": "^(\\s*)(\\.\\.)\\s+(c)(:)([^:]+)(::)",
|
823
|
+
"end": "^(?!\\s*$|\\1[ \\t]{5,}\\S)",
|
1134
824
|
"patterns": [
|
1135
825
|
{
|
1136
|
-
"include": "source.
|
826
|
+
"include": "source.c"
|
1137
827
|
}
|
1138
828
|
],
|
1139
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(py(thon)?|sage)\\s*$",
|
1140
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
1141
829
|
"beginCaptures": {
|
1142
830
|
"2": {
|
1143
831
|
"name": "punctuation.definition.directive.restructuredtext"
|
@@ -1149,19 +837,35 @@
|
|
1149
837
|
"name": "punctuation.separator.key-value.restructuredtext"
|
1150
838
|
},
|
1151
839
|
"5": {
|
1152
|
-
"name": "
|
840
|
+
"name": "support.directive.restructuredtext"
|
841
|
+
},
|
842
|
+
"6": {
|
843
|
+
"name": "punctuation.separator.key-value.restructuredtext"
|
1153
844
|
}
|
1154
845
|
}
|
1155
846
|
},
|
1156
847
|
{
|
1157
|
-
"
|
848
|
+
"name": "meta.sphinx-domain.restructuredtext",
|
849
|
+
"begin": "^(\\s*)(\\.\\.)\\s+(cpp)(::?)([^:]+)(::)",
|
850
|
+
"end": "^(?!\\s*$|\\1[ \\t]{5,}\\S)",
|
1158
851
|
"patterns": [
|
1159
852
|
{
|
1160
|
-
"
|
853
|
+
"match": "(.+)(\\\\?)$",
|
854
|
+
"captures": {
|
855
|
+
"1": {
|
856
|
+
"name": "source.embedded.cpp",
|
857
|
+
"patterns": [
|
858
|
+
{
|
859
|
+
"include": "source.c++"
|
860
|
+
}
|
861
|
+
]
|
862
|
+
},
|
863
|
+
"2": {
|
864
|
+
"name": "constant.character.escape.newline.restructuredtext"
|
865
|
+
}
|
866
|
+
}
|
1161
867
|
}
|
1162
868
|
],
|
1163
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(objective-?c|obj-?c)\\s*$",
|
1164
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
1165
869
|
"beginCaptures": {
|
1166
870
|
"2": {
|
1167
871
|
"name": "punctuation.definition.directive.restructuredtext"
|
@@ -1173,19 +877,35 @@
|
|
1173
877
|
"name": "punctuation.separator.key-value.restructuredtext"
|
1174
878
|
},
|
1175
879
|
"5": {
|
1176
|
-
"name": "
|
880
|
+
"name": "support.directive.restructuredtext"
|
881
|
+
},
|
882
|
+
"6": {
|
883
|
+
"name": "punctuation.separator.key-value.restructuredtext"
|
1177
884
|
}
|
1178
885
|
}
|
1179
886
|
},
|
1180
887
|
{
|
1181
|
-
"
|
888
|
+
"name": "meta.sphinx-domain.restructuredtext",
|
889
|
+
"begin": "^(\\s*)(\\.\\.)\\s+(js)(:)([^:]+)(::)",
|
890
|
+
"end": "^(?!\\s*$|\\1[ \\t]{5,}\\S)",
|
1182
891
|
"patterns": [
|
1183
892
|
{
|
1184
|
-
"
|
893
|
+
"match": "(.+)(\\\\?)$",
|
894
|
+
"captures": {
|
895
|
+
"1": {
|
896
|
+
"name": "source.embedded.js",
|
897
|
+
"patterns": [
|
898
|
+
{
|
899
|
+
"include": "source.js"
|
900
|
+
}
|
901
|
+
]
|
902
|
+
},
|
903
|
+
"2": {
|
904
|
+
"name": "constant.character.escape.newline.restructuredtext"
|
905
|
+
}
|
906
|
+
}
|
1185
907
|
}
|
1186
908
|
],
|
1187
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(code(?:-block)?)(::)\\s+(yaml)\\s*$",
|
1188
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
1189
909
|
"beginCaptures": {
|
1190
910
|
"2": {
|
1191
911
|
"name": "punctuation.definition.directive.restructuredtext"
|
@@ -1197,20 +917,18 @@
|
|
1197
917
|
"name": "punctuation.separator.key-value.restructuredtext"
|
1198
918
|
},
|
1199
919
|
"5": {
|
1200
|
-
"name": "
|
920
|
+
"name": "support.directive.restructuredtext"
|
921
|
+
},
|
922
|
+
"6": {
|
923
|
+
"name": "punctuation.separator.key-value.restructuredtext"
|
1201
924
|
}
|
1202
925
|
}
|
1203
926
|
},
|
1204
927
|
{
|
1205
|
-
"name": "
|
1206
|
-
"contentName": "
|
1207
|
-
"
|
1208
|
-
|
1209
|
-
"include": "text.tex#math"
|
1210
|
-
}
|
1211
|
-
],
|
1212
|
-
"begin": "^([ \\t]*)(\\.\\.)\\s(math)(::)\\s*$",
|
1213
|
-
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
928
|
+
"name": "meta.sphinx-domain.restructuredtext",
|
929
|
+
"contentName": "string.unquoted.domain.restructuredtext",
|
930
|
+
"begin": "^(\\s*)(\\.\\.)\\s+([^:]+)(::?)([^:]+)(::)",
|
931
|
+
"end": "^(?!\\s*$|\\1[ \\t]{5,}\\S)",
|
1214
932
|
"beginCaptures": {
|
1215
933
|
"2": {
|
1216
934
|
"name": "punctuation.definition.directive.restructuredtext"
|
@@ -1220,95 +938,144 @@
|
|
1220
938
|
},
|
1221
939
|
"4": {
|
1222
940
|
"name": "punctuation.separator.key-value.restructuredtext"
|
941
|
+
},
|
942
|
+
"5": {
|
943
|
+
"name": "support.directive.restructuredtext"
|
944
|
+
},
|
945
|
+
"6": {
|
946
|
+
"name": "punctuation.separator.key-value.restructuredtext"
|
947
|
+
}
|
948
|
+
}
|
949
|
+
}
|
950
|
+
]
|
951
|
+
},
|
952
|
+
"emphasis": {
|
953
|
+
"patterns": [
|
954
|
+
{
|
955
|
+
"name": "markup.bold.restructuredtext",
|
956
|
+
"match": "(\\*\\*)[^\\*\\s][^*]*(\\*\\*)",
|
957
|
+
"captures": {
|
958
|
+
"1": {
|
959
|
+
"name": "punctuation.definition.bold.restructuredtext"
|
960
|
+
},
|
961
|
+
"2": {
|
962
|
+
"name": "punctuation.definition.bold.restructuredtext"
|
1223
963
|
}
|
1224
964
|
}
|
1225
965
|
},
|
1226
966
|
{
|
1227
|
-
"name": "
|
1228
|
-
"match": "
|
967
|
+
"name": "markup.italic.restructuredtext",
|
968
|
+
"match": "(?\u003c!\\\\)(\\*)[^\\*\\s][^*]*(?\u003c!\\\\)(\\*)",
|
1229
969
|
"captures": {
|
1230
970
|
"1": {
|
1231
|
-
"name": "punctuation.definition.
|
971
|
+
"name": "punctuation.definition.italic.restructuredtext"
|
1232
972
|
},
|
1233
973
|
"2": {
|
1234
|
-
"name": "
|
974
|
+
"name": "punctuation.definition.italic.restructuredtext"
|
975
|
+
}
|
976
|
+
}
|
977
|
+
}
|
978
|
+
]
|
979
|
+
},
|
980
|
+
"escape": {
|
981
|
+
"name": "constant.character.escape.backslash.restructuredtext",
|
982
|
+
"match": "\\\\."
|
983
|
+
},
|
984
|
+
"footnotes": {
|
985
|
+
"patterns": [
|
986
|
+
{
|
987
|
+
"name": "meta.link.footnote.def.restructuredtext",
|
988
|
+
"contentName": "string.other.footnote.restructuredtext",
|
989
|
+
"begin": "^(\\s*)(\\.\\.)\\s+((\\[)(((#?)[^\\]]*?)|\\*)(\\]))\\s+",
|
990
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
991
|
+
"patterns": [
|
992
|
+
{
|
993
|
+
"include": "#inlines"
|
994
|
+
}
|
995
|
+
],
|
996
|
+
"captures": {
|
997
|
+
"2": {
|
998
|
+
"name": "punctuation.definition.link.restructuredtext"
|
1235
999
|
},
|
1236
1000
|
"3": {
|
1237
|
-
"name": "
|
1001
|
+
"name": "constant.other.footnote.link.restructuredtext"
|
1238
1002
|
},
|
1239
1003
|
"4": {
|
1240
|
-
"
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
"name": "punctuation.delimiter.comma.restructuredtext"
|
1248
|
-
},
|
1249
|
-
{
|
1250
|
-
"match": "[^\\s<>,]+",
|
1251
|
-
"name": "entity.name.directive.restructuredtext"
|
1252
|
-
}
|
1253
|
-
]
|
1004
|
+
"name": "punctuation.definition.constant.restructuredtext"
|
1005
|
+
},
|
1006
|
+
"7": {
|
1007
|
+
"name": "punctuation.definition.constant.restructuredtext"
|
1008
|
+
},
|
1009
|
+
"8": {
|
1010
|
+
"name": "punctuation.definition.constant.restructuredtext"
|
1254
1011
|
}
|
1255
1012
|
}
|
1256
1013
|
},
|
1257
1014
|
{
|
1258
|
-
"name": "meta.
|
1259
|
-
"match": "
|
1015
|
+
"name": "meta.link.footnote.numeric.restructuredtext",
|
1016
|
+
"match": "((\\[)[0-9]+(\\]))(_)",
|
1260
1017
|
"captures": {
|
1261
1018
|
"1": {
|
1262
|
-
"name": "
|
1019
|
+
"name": "constant.other.footnote.link"
|
1263
1020
|
},
|
1264
1021
|
"2": {
|
1265
|
-
"name": "
|
1022
|
+
"name": "punctuation.definition.constant.restructuredtext"
|
1266
1023
|
},
|
1267
1024
|
"3": {
|
1268
|
-
"name": "punctuation.
|
1025
|
+
"name": "punctuation.definition.constant.restructuredtext"
|
1026
|
+
},
|
1027
|
+
"4": {
|
1028
|
+
"name": "punctuation.definition.constant.restructuredtext"
|
1269
1029
|
}
|
1270
1030
|
}
|
1271
1031
|
},
|
1272
1032
|
{
|
1273
|
-
"name": "meta.
|
1274
|
-
"match": "
|
1033
|
+
"name": "meta.link.footnote.auto.restructuredtext",
|
1034
|
+
"match": "((\\[#)[A-z0-9_]*(\\]))(_)",
|
1275
1035
|
"captures": {
|
1276
1036
|
"1": {
|
1277
|
-
"name": "
|
1037
|
+
"name": "constant.other.footnote.link"
|
1278
1038
|
},
|
1279
1039
|
"2": {
|
1280
|
-
"name": "
|
1040
|
+
"name": "punctuation.definition.constant.restructuredtext"
|
1281
1041
|
},
|
1282
1042
|
"3": {
|
1283
|
-
"name": "punctuation.
|
1043
|
+
"name": "punctuation.definition.constant.restructuredtext"
|
1284
1044
|
},
|
1285
1045
|
"4": {
|
1286
|
-
"name": "
|
1046
|
+
"name": "punctuation.definition.constant.restructuredtext"
|
1287
1047
|
}
|
1288
1048
|
}
|
1289
|
-
}
|
1290
|
-
]
|
1291
|
-
},
|
1292
|
-
"directive-options": {
|
1293
|
-
"patterns": [
|
1049
|
+
},
|
1294
1050
|
{
|
1295
|
-
"name": "meta.
|
1296
|
-
"match": "(
|
1051
|
+
"name": "meta.link.footnote.symbol.auto.restructuredtext",
|
1052
|
+
"match": "((\\[)\\*(\\]))(_)",
|
1297
1053
|
"captures": {
|
1298
1054
|
"1": {
|
1299
|
-
"
|
1300
|
-
{
|
1301
|
-
"include": "#tag-name"
|
1302
|
-
}
|
1303
|
-
]
|
1055
|
+
"name": "constant.other.footnote.link.restructuredtext"
|
1304
1056
|
},
|
1305
1057
|
"2": {
|
1306
|
-
"name": "
|
1058
|
+
"name": "punctuation.definition.constant.restructuredtext"
|
1059
|
+
},
|
1060
|
+
"3": {
|
1061
|
+
"name": "punctuation.definition.constant.restructuredtext"
|
1062
|
+
},
|
1063
|
+
"4": {
|
1064
|
+
"name": "punctuation.definition.constant.restructuredtext"
|
1307
1065
|
}
|
1308
1066
|
}
|
1309
1067
|
}
|
1310
1068
|
]
|
1311
1069
|
},
|
1070
|
+
"headings": {
|
1071
|
+
"name": "markup.heading.restructuredtext",
|
1072
|
+
"match": "^(([-=~`#\"^+*:.'_])\\2{2,})(?=\\s*$)",
|
1073
|
+
"captures": {
|
1074
|
+
"1": {
|
1075
|
+
"name": "punctuation.definition.heading.restructuredtext"
|
1076
|
+
}
|
1077
|
+
}
|
1078
|
+
},
|
1312
1079
|
"image-options": {
|
1313
1080
|
"patterns": [
|
1314
1081
|
{
|
@@ -1427,233 +1194,479 @@
|
|
1427
1194
|
}
|
1428
1195
|
]
|
1429
1196
|
},
|
1430
|
-
"
|
1197
|
+
"inlines": {
|
1431
1198
|
"patterns": [
|
1432
1199
|
{
|
1433
|
-
"
|
1434
|
-
"match": "(:class:)\\s*(.*)",
|
1435
|
-
"captures": {
|
1436
|
-
"1": {
|
1437
|
-
"patterns": [
|
1438
|
-
{
|
1439
|
-
"include": "#tag-name"
|
1440
|
-
}
|
1441
|
-
]
|
1442
|
-
},
|
1443
|
-
"2": {
|
1444
|
-
"name": "string.other.class-list.restructuredtext"
|
1445
|
-
}
|
1446
|
-
}
|
1200
|
+
"include": "#escape"
|
1447
1201
|
},
|
1448
1202
|
{
|
1449
|
-
"
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1458
|
-
|
1459
|
-
|
1460
|
-
|
1461
|
-
|
1462
|
-
|
1203
|
+
"include": "#emphasis"
|
1204
|
+
},
|
1205
|
+
{
|
1206
|
+
"include": "#link-definition"
|
1207
|
+
},
|
1208
|
+
{
|
1209
|
+
"include": "#substitution"
|
1210
|
+
},
|
1211
|
+
{
|
1212
|
+
"include": "#literal"
|
1213
|
+
},
|
1214
|
+
{
|
1215
|
+
"include": "#math-inline"
|
1216
|
+
},
|
1217
|
+
{
|
1218
|
+
"include": "#interpreted-line"
|
1219
|
+
},
|
1220
|
+
{
|
1221
|
+
"include": "#anonymous-link"
|
1222
|
+
},
|
1223
|
+
{
|
1224
|
+
"include": "#link-reference"
|
1225
|
+
},
|
1226
|
+
{
|
1227
|
+
"include": "#interpreted-block"
|
1228
|
+
},
|
1229
|
+
{
|
1230
|
+
"include": "#link-text"
|
1231
|
+
},
|
1232
|
+
{
|
1233
|
+
"include": "#footnotes"
|
1234
|
+
},
|
1235
|
+
{
|
1236
|
+
"include": "#citations"
|
1463
1237
|
}
|
1464
1238
|
]
|
1465
1239
|
},
|
1466
|
-
"
|
1240
|
+
"interpreted-block": {
|
1241
|
+
"name": "markup.other.command.restructuredtext",
|
1242
|
+
"contentName": "string.other.interpreted.restructuredtext",
|
1243
|
+
"begin": "(:)([-A-z0-9:_.]*?)(:)(`)",
|
1244
|
+
"end": "(`)",
|
1467
1245
|
"patterns": [
|
1468
1246
|
{
|
1469
|
-
"name": "meta.
|
1470
|
-
"
|
1471
|
-
"
|
1472
|
-
|
1473
|
-
|
1247
|
+
"name": "meta.manpage.link.inline.restructuredtext",
|
1248
|
+
"match": "(?\u003c=:manpage:`)\\G([-.\\w]+)(\\()(\\d+)(\\))",
|
1249
|
+
"captures": {
|
1250
|
+
"1": {
|
1251
|
+
"name": "markup.bold.manpage-name.restructuredtext"
|
1252
|
+
},
|
1474
1253
|
"2": {
|
1475
|
-
"name": "punctuation.definition.
|
1254
|
+
"name": "punctuation.definition.round.bracket.begin.restructuredtext"
|
1476
1255
|
},
|
1477
1256
|
"3": {
|
1478
|
-
"name": "
|
1257
|
+
"name": "constant.numeric.integer.restructuredtext"
|
1479
1258
|
},
|
1480
1259
|
"4": {
|
1481
|
-
"name": "punctuation.
|
1482
|
-
},
|
1483
|
-
"5": {
|
1484
|
-
"name": "support.directive.restructuredtext"
|
1485
|
-
},
|
1486
|
-
"6": {
|
1487
|
-
"name": "punctuation.separator.key-value.restructuredtext"
|
1260
|
+
"name": "punctuation.definition.round.bracket.begin.restructuredtext"
|
1488
1261
|
}
|
1489
|
-
}
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
|
1521
|
-
|
1522
|
-
|
1523
|
-
|
1262
|
+
}
|
1263
|
+
}
|
1264
|
+
],
|
1265
|
+
"beginCaptures": {
|
1266
|
+
"1": {
|
1267
|
+
"name": "punctuation.definition.intepreted.restructuredtext"
|
1268
|
+
},
|
1269
|
+
"2": {
|
1270
|
+
"name": "entity.name.role.restructuredtext"
|
1271
|
+
},
|
1272
|
+
"3": {
|
1273
|
+
"name": "punctuation.definition.intepreted.restructuredtext"
|
1274
|
+
},
|
1275
|
+
"4": {
|
1276
|
+
"name": "punctuation.definition.intepreted.restructuredtext"
|
1277
|
+
}
|
1278
|
+
},
|
1279
|
+
"endCaptures": {
|
1280
|
+
"1": {
|
1281
|
+
"name": "punctuation.definition.intepreted.restructuredtext"
|
1282
|
+
}
|
1283
|
+
}
|
1284
|
+
},
|
1285
|
+
"interpreted-line": {
|
1286
|
+
"name": "markup.other.command.restructuredtext",
|
1287
|
+
"match": "(`)[^`]+(`)(?!_)",
|
1288
|
+
"captures": {
|
1289
|
+
"1": {
|
1290
|
+
"name": "punctuation.definition.intepreted.restructuredtext"
|
1291
|
+
},
|
1292
|
+
"2": {
|
1293
|
+
"name": "punctuation.definition.intepreted.restructuredtext"
|
1294
|
+
}
|
1295
|
+
}
|
1296
|
+
},
|
1297
|
+
"length": {
|
1298
|
+
"name": "constant.numeric.length.restructuredtext",
|
1299
|
+
"match": "[\\d.]+\\s*(?i:(em|ex|px|in|cm|mm|pt|pc)|(%))?",
|
1300
|
+
"captures": {
|
1301
|
+
"1": {
|
1302
|
+
"name": "keyword.other.${1:/downcase}-unit.restructuredtext"
|
1524
1303
|
},
|
1304
|
+
"2": {
|
1305
|
+
"name": "keyword.other.percentile-unit.restructuredtext"
|
1306
|
+
}
|
1307
|
+
}
|
1308
|
+
},
|
1309
|
+
"line-blocks": {
|
1310
|
+
"name": "meta.line-block.restructuredtext",
|
1311
|
+
"begin": "^(\\s*)(\\|)(?!.*?(?\u003c=\\S)\\|)",
|
1312
|
+
"end": "^(?=\\s*$\\n?)",
|
1313
|
+
"patterns": [
|
1525
1314
|
{
|
1526
|
-
"
|
1527
|
-
"
|
1528
|
-
|
1529
|
-
|
1530
|
-
"include": "source.c"
|
1315
|
+
"match": "^\\s*(\\|)",
|
1316
|
+
"captures": {
|
1317
|
+
"0": {
|
1318
|
+
"name": "punctuation.separator.line-block.restructuredtext"
|
1531
1319
|
}
|
1532
|
-
|
1533
|
-
|
1534
|
-
|
1535
|
-
"
|
1320
|
+
}
|
1321
|
+
},
|
1322
|
+
{
|
1323
|
+
"include": "#inlines"
|
1324
|
+
}
|
1325
|
+
],
|
1326
|
+
"beginCaptures": {
|
1327
|
+
"2": {
|
1328
|
+
"name": "punctuation.separator.line-block.restructuredtext"
|
1329
|
+
}
|
1330
|
+
}
|
1331
|
+
},
|
1332
|
+
"link-definition": {
|
1333
|
+
"patterns": [
|
1334
|
+
{
|
1335
|
+
"name": "meta.link.reference.def.restructuredtext",
|
1336
|
+
"match": "(\\.\\.)\\s+(_)([-.:+\\d\\w\\s()/]+?)(:)\\s+(.*)",
|
1337
|
+
"captures": {
|
1338
|
+
"1": {
|
1339
|
+
"name": "punctuation.definition.link.restructuredtext"
|
1340
|
+
},
|
1536
1341
|
"2": {
|
1537
|
-
"name": "punctuation.definition.
|
1342
|
+
"name": "punctuation.definition.string.restructuredtext"
|
1538
1343
|
},
|
1539
1344
|
"3": {
|
1540
|
-
"name": "
|
1345
|
+
"name": "string.other.link.title.restructuredtext"
|
1541
1346
|
},
|
1542
1347
|
"4": {
|
1543
1348
|
"name": "punctuation.separator.key-value.restructuredtext"
|
1544
1349
|
},
|
1545
1350
|
"5": {
|
1546
|
-
"
|
1547
|
-
|
1548
|
-
|
1549
|
-
|
1351
|
+
"patterns": [
|
1352
|
+
{
|
1353
|
+
"include": "#uri"
|
1354
|
+
}
|
1355
|
+
]
|
1550
1356
|
}
|
1551
1357
|
}
|
1552
1358
|
},
|
1553
1359
|
{
|
1554
|
-
"name": "meta.
|
1555
|
-
"
|
1556
|
-
"
|
1557
|
-
|
1360
|
+
"name": "meta.link.reference.def.restructuredtext",
|
1361
|
+
"match": "(\\.\\.)\\s+(_`)([^`]+)(`:)\\s+(.*)",
|
1362
|
+
"captures": {
|
1363
|
+
"1": {
|
1364
|
+
"name": "punctuation.definition.link.restructuredtext"
|
1365
|
+
},
|
1558
1366
|
"2": {
|
1559
|
-
"name": "punctuation.definition.
|
1367
|
+
"name": "punctuation.definition.string.restructuredtext"
|
1560
1368
|
},
|
1561
1369
|
"3": {
|
1562
|
-
"name": "
|
1370
|
+
"name": "string.other.link.title.restructuredtext"
|
1563
1371
|
},
|
1564
1372
|
"4": {
|
1565
1373
|
"name": "punctuation.separator.key-value.restructuredtext"
|
1566
1374
|
},
|
1567
1375
|
"5": {
|
1568
|
-
"
|
1376
|
+
"patterns": [
|
1377
|
+
{
|
1378
|
+
"include": "#uri"
|
1379
|
+
}
|
1380
|
+
]
|
1381
|
+
}
|
1382
|
+
}
|
1383
|
+
}
|
1384
|
+
]
|
1385
|
+
},
|
1386
|
+
"link-reference": {
|
1387
|
+
"patterns": [
|
1388
|
+
{
|
1389
|
+
"name": "meta.link.reference",
|
1390
|
+
"match": "\\b([-.:+_\\d\\w]+)(_)\\b",
|
1391
|
+
"captures": {
|
1392
|
+
"1": {
|
1393
|
+
"name": "string.other.link.title.restructuredtext"
|
1569
1394
|
},
|
1570
|
-
"
|
1571
|
-
"name": "punctuation.
|
1395
|
+
"2": {
|
1396
|
+
"name": "punctuation.definition.link.restructuredtext"
|
1572
1397
|
}
|
1573
|
-
}
|
1398
|
+
}
|
1399
|
+
},
|
1400
|
+
{
|
1401
|
+
"name": "meta.link.reference",
|
1402
|
+
"match": "(`)(.*?)(`__?)",
|
1403
|
+
"captures": {
|
1404
|
+
"1": {
|
1405
|
+
"name": "punctuation.definition.link.restructuredtext"
|
1406
|
+
},
|
1407
|
+
"2": {
|
1408
|
+
"name": "string.other.link.title.restructuredtext"
|
1409
|
+
},
|
1410
|
+
"3": {
|
1411
|
+
"name": "punctuation.definition.link.restructuredtext"
|
1412
|
+
}
|
1413
|
+
}
|
1414
|
+
}
|
1415
|
+
]
|
1416
|
+
},
|
1417
|
+
"link-text": {
|
1418
|
+
"name": "meta.link.inline.restructuredtext",
|
1419
|
+
"match": "(`)([^\u003c`]+)\\s+(\u003c)(.*?)(\u003e)(`_)",
|
1420
|
+
"captures": {
|
1421
|
+
"1": {
|
1422
|
+
"name": "punctuation.definition.link.restructuredtext"
|
1423
|
+
},
|
1424
|
+
"2": {
|
1425
|
+
"name": "string.other.link.title.restructuredtext"
|
1426
|
+
},
|
1427
|
+
"3": {
|
1428
|
+
"name": "punctuation.definition.location.restructuredtext"
|
1429
|
+
},
|
1430
|
+
"4": {
|
1431
|
+
"name": "markup.underline.link.restructuredtext"
|
1432
|
+
},
|
1433
|
+
"5": {
|
1434
|
+
"name": "punctuation.definition.location.restructuredtext"
|
1435
|
+
},
|
1436
|
+
"6": {
|
1437
|
+
"name": "punctuation.definition.link.restructuredtext"
|
1438
|
+
}
|
1439
|
+
}
|
1440
|
+
},
|
1441
|
+
"literal": {
|
1442
|
+
"name": "markup.raw.restructuredtext",
|
1443
|
+
"begin": "``",
|
1444
|
+
"end": "``((?=[^`\\w\\d])|$)",
|
1445
|
+
"captures": {
|
1446
|
+
"0": {
|
1447
|
+
"name": "punctuation.definition.raw.restructuredtext"
|
1448
|
+
}
|
1449
|
+
}
|
1450
|
+
},
|
1451
|
+
"math-inline": {
|
1452
|
+
"name": "markup.other.command.restructuredtext",
|
1453
|
+
"contentName": "markup.math.inline.restructuredtext",
|
1454
|
+
"begin": "(:)(math)(:)(`)",
|
1455
|
+
"end": "(`)",
|
1456
|
+
"patterns": [
|
1457
|
+
{
|
1458
|
+
"include": "text.tex#math"
|
1459
|
+
}
|
1460
|
+
],
|
1461
|
+
"beginCaptures": {
|
1462
|
+
"1": {
|
1463
|
+
"name": "punctuation.definition.intepreted.restructuredtext"
|
1464
|
+
},
|
1465
|
+
"2": {
|
1466
|
+
"name": "entity.name.role.restructuredtext"
|
1467
|
+
},
|
1468
|
+
"3": {
|
1469
|
+
"name": "punctuation.definition.intepreted.restructuredtext"
|
1470
|
+
},
|
1471
|
+
"4": {
|
1472
|
+
"name": "punctuation.definition.intepreted.restructuredtext"
|
1473
|
+
}
|
1474
|
+
},
|
1475
|
+
"endCaptures": {
|
1476
|
+
"1": {
|
1477
|
+
"name": "punctuation.definition.intepreted.restructuredtext"
|
1478
|
+
}
|
1479
|
+
}
|
1480
|
+
},
|
1481
|
+
"raw-blocks": {
|
1482
|
+
"contentName": "meta.raw.block.restructuredtext",
|
1483
|
+
"begin": "^(?!\\s*\\.\\.\\s\\w+)(\\s*)(.*)(::)$",
|
1484
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
1485
|
+
"patterns": [
|
1486
|
+
{
|
1487
|
+
"name": "markup.raw.inner.restructuredtext",
|
1488
|
+
"match": ".+"
|
1489
|
+
}
|
1490
|
+
],
|
1491
|
+
"beginCaptures": {
|
1492
|
+
"2": {
|
1574
1493
|
"patterns": [
|
1575
1494
|
{
|
1576
|
-
"
|
1577
|
-
"captures": {
|
1578
|
-
"1": {
|
1579
|
-
"name": "source.embedded.cpp",
|
1580
|
-
"patterns": [
|
1581
|
-
{
|
1582
|
-
"include": "source.cpp"
|
1583
|
-
}
|
1584
|
-
]
|
1585
|
-
},
|
1586
|
-
"2": {
|
1587
|
-
"name": "constant.character.escape.newline.restructuredtext"
|
1588
|
-
}
|
1589
|
-
}
|
1495
|
+
"include": "#inlines"
|
1590
1496
|
}
|
1591
1497
|
]
|
1592
1498
|
},
|
1499
|
+
"3": {
|
1500
|
+
"name": "punctuation.section.raw.restructuredtext"
|
1501
|
+
}
|
1502
|
+
}
|
1503
|
+
},
|
1504
|
+
"substitution": {
|
1505
|
+
"name": "support.variable.substitution.restructuredtext",
|
1506
|
+
"match": "(?\u003c!\\\\)(\\|)[^|]+(?\u003c!\\\\)(\\|_{0,2})",
|
1507
|
+
"captures": {
|
1508
|
+
"1": {
|
1509
|
+
"name": "punctuation.definition.substitution.restructuredtext"
|
1510
|
+
},
|
1511
|
+
"2": {
|
1512
|
+
"name": "punctuation.definition.substitution.restructuredtext"
|
1513
|
+
}
|
1514
|
+
}
|
1515
|
+
},
|
1516
|
+
"substitution-definition": {
|
1517
|
+
"patterns": [
|
1593
1518
|
{
|
1594
|
-
"name": "meta.
|
1595
|
-
"begin": "^(\\s*)(\\.\\.)\\s
|
1596
|
-
"end": "^(?!\\s*$|\\1[ \\t]
|
1519
|
+
"name": "meta.substitution-definition.image.restructuredtext",
|
1520
|
+
"begin": "^(\\s*)(\\.\\.)\\s(\\|)(?=\\S)([^\\|]+)((?\u003c=\\S)\\|)\\s+(image)(::)\\s*(\\S+)",
|
1521
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
1522
|
+
"patterns": [
|
1523
|
+
{
|
1524
|
+
"include": "#image-options"
|
1525
|
+
}
|
1526
|
+
],
|
1597
1527
|
"beginCaptures": {
|
1598
1528
|
"2": {
|
1599
1529
|
"name": "punctuation.definition.directive.restructuredtext"
|
1600
1530
|
},
|
1601
1531
|
"3": {
|
1602
|
-
"name": "
|
1532
|
+
"name": "punctuation.definition.substitution.start.restructuredtext"
|
1603
1533
|
},
|
1604
1534
|
"4": {
|
1605
|
-
"name": "
|
1535
|
+
"name": "entity.name.substitution.restructuredtext"
|
1606
1536
|
},
|
1607
1537
|
"5": {
|
1608
|
-
"name": "
|
1538
|
+
"name": "punctuation.definition.substitution.end.restructuredtext"
|
1609
1539
|
},
|
1610
1540
|
"6": {
|
1541
|
+
"name": "support.directive.restructuredtext"
|
1542
|
+
},
|
1543
|
+
"7": {
|
1611
1544
|
"name": "punctuation.separator.key-value.restructuredtext"
|
1612
|
-
}
|
1613
|
-
|
1614
|
-
|
1615
|
-
|
1616
|
-
|
1617
|
-
"captures": {
|
1618
|
-
"1": {
|
1619
|
-
"name": "source.embedded.js",
|
1620
|
-
"patterns": [
|
1621
|
-
{
|
1622
|
-
"include": "source.js"
|
1623
|
-
}
|
1624
|
-
]
|
1625
|
-
},
|
1626
|
-
"2": {
|
1627
|
-
"name": "constant.character.escape.newline.restructuredtext"
|
1545
|
+
},
|
1546
|
+
"8": {
|
1547
|
+
"patterns": [
|
1548
|
+
{
|
1549
|
+
"include": "#uri"
|
1628
1550
|
}
|
1629
|
-
|
1551
|
+
]
|
1630
1552
|
}
|
1631
|
-
|
1553
|
+
}
|
1632
1554
|
},
|
1633
1555
|
{
|
1634
|
-
"name": "meta.
|
1635
|
-
"
|
1636
|
-
"
|
1637
|
-
"
|
1556
|
+
"name": "meta.substitution-definition.restructuredtext",
|
1557
|
+
"begin": "^(\\s*)(\\.\\.)\\s(\\|)(?=\\S)([^\\|]+)((?\u003c=\\S)\\|)\\s+(\\S+.*(?=::))(::)(.*)",
|
1558
|
+
"end": "^(?!\\s*$|\\1[ \\t]+\\S)",
|
1559
|
+
"patterns": [
|
1560
|
+
{
|
1561
|
+
"include": "#directive-options"
|
1562
|
+
}
|
1563
|
+
],
|
1638
1564
|
"beginCaptures": {
|
1639
1565
|
"2": {
|
1640
1566
|
"name": "punctuation.definition.directive.restructuredtext"
|
1641
1567
|
},
|
1642
1568
|
"3": {
|
1643
|
-
"name": "
|
1569
|
+
"name": "punctuation.definition.substitution.start.restructuredtext"
|
1644
1570
|
},
|
1645
1571
|
"4": {
|
1646
|
-
"name": "
|
1572
|
+
"name": "entity.name.substitution.restructuredtext"
|
1647
1573
|
},
|
1648
1574
|
"5": {
|
1649
|
-
"name": "
|
1575
|
+
"name": "punctuation.definition.substitution.end.restructuredtext"
|
1650
1576
|
},
|
1651
1577
|
"6": {
|
1578
|
+
"name": "support.directive.restructuredtext"
|
1579
|
+
},
|
1580
|
+
"7": {
|
1652
1581
|
"name": "punctuation.separator.key-value.restructuredtext"
|
1582
|
+
},
|
1583
|
+
"8": {
|
1584
|
+
"name": "string.unquoted.substitution.data.restructuredtext"
|
1653
1585
|
}
|
1654
1586
|
}
|
1655
1587
|
}
|
1656
1588
|
]
|
1589
|
+
},
|
1590
|
+
"table-borders": {
|
1591
|
+
"patterns": [
|
1592
|
+
{
|
1593
|
+
"contentName": "punctuation.definition.table.row-divider.restructuredtext",
|
1594
|
+
"begin": "\\+(?=-+(?=\\+|$))",
|
1595
|
+
"end": "(?=\\+(?=-)|$)|\\+(?=\\s|$)",
|
1596
|
+
"beginCaptures": {
|
1597
|
+
"0": {
|
1598
|
+
"name": "punctuation.definition.table.joint.restructuredtext"
|
1599
|
+
}
|
1600
|
+
},
|
1601
|
+
"endCaptures": {
|
1602
|
+
"0": {
|
1603
|
+
"name": "punctuation.definition.table.joint.restructuredtext"
|
1604
|
+
}
|
1605
|
+
}
|
1606
|
+
},
|
1607
|
+
{
|
1608
|
+
"contentName": "punctuation.definition.table.header.row-divider.restructuredtext",
|
1609
|
+
"begin": "\\+(?==+(?=\\+|$))",
|
1610
|
+
"end": "(?=\\+(?==)|$)|\\+\\s*$",
|
1611
|
+
"beginCaptures": {
|
1612
|
+
"0": {
|
1613
|
+
"name": "punctuation.definition.table.joint.restructuredtext"
|
1614
|
+
}
|
1615
|
+
},
|
1616
|
+
"endCaptures": {
|
1617
|
+
"0": {
|
1618
|
+
"name": "punctuation.definition.table.joint.restructuredtext"
|
1619
|
+
}
|
1620
|
+
}
|
1621
|
+
},
|
1622
|
+
{
|
1623
|
+
"name": "punctuation.definition.table.header.column-divider.restructuredtext",
|
1624
|
+
"match": "\\|"
|
1625
|
+
}
|
1626
|
+
]
|
1627
|
+
},
|
1628
|
+
"tables": {
|
1629
|
+
"patterns": [
|
1630
|
+
{
|
1631
|
+
"name": "meta.table.grid-table.restructuredtext",
|
1632
|
+
"contentName": "markup.other.table.restructuredtext",
|
1633
|
+
"begin": "(?=((\\+-[+-]+))|((\\+=[+=]+))\\s*$)",
|
1634
|
+
"end": "^\\s*$",
|
1635
|
+
"patterns": [
|
1636
|
+
{
|
1637
|
+
"include": "#table-borders"
|
1638
|
+
},
|
1639
|
+
{
|
1640
|
+
"include": "#inlines"
|
1641
|
+
}
|
1642
|
+
]
|
1643
|
+
},
|
1644
|
+
{
|
1645
|
+
"name": "punctuation.definition.table.simple-divider.restructuredtext",
|
1646
|
+
"match": "(?x)\n^\\s*-{2,}\\s+-{2,}(?:\\s+-{2,})*\\s*$\n|\n^\\s*={2,}\\s+={2,}(?:\\s+={2,})*\\s*$"
|
1647
|
+
}
|
1648
|
+
]
|
1649
|
+
},
|
1650
|
+
"tag-name": {
|
1651
|
+
"name": "entity.name.tag.restructuredtext",
|
1652
|
+
"match": "(:)[A-Za-z][\\w\\s=.-]*(:)",
|
1653
|
+
"captures": {
|
1654
|
+
"1": {
|
1655
|
+
"name": "punctuation.definition.field.restructuredtext"
|
1656
|
+
},
|
1657
|
+
"2": {
|
1658
|
+
"name": "punctuation.definition.field.restructuredtext"
|
1659
|
+
}
|
1660
|
+
}
|
1661
|
+
},
|
1662
|
+
"uri": {
|
1663
|
+
"name": "string.other.uri.restructuredtext",
|
1664
|
+
"match": "\\S+",
|
1665
|
+
"captures": {
|
1666
|
+
"0": {
|
1667
|
+
"name": "markup.link.underline.restructuredtext"
|
1668
|
+
}
|
1669
|
+
}
|
1657
1670
|
}
|
1658
1671
|
}
|
1659
|
-
}
|
1672
|
+
}
|