github-linguist-grammars 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/grammars/file.lasso.json +713 -0
- data/grammars/module.ceylon.json +54 -0
- data/grammars/objdump.x86asm.json +73 -0
- data/grammars/source.Inform7.json +45 -0
- data/grammars/source.Kotlin.json +774 -0
- data/grammars/source.LS.json +104 -0
- data/grammars/source.MCPOST.json +68 -0
- data/grammars/source.MOD.json +70 -0
- data/grammars/source.abap.json +176 -0
- data/grammars/source.abl.json +138 -0
- data/grammars/source.actionscript.3.json +1571 -0
- data/grammars/source.acucobol.json +16 -0
- data/grammars/source.ada.json +140 -0
- data/grammars/source.agda.json +254 -0
- data/grammars/source.ahk.json +171 -0
- data/grammars/source.alloy.json +44 -0
- data/grammars/source.ampl.json +157 -0
- data/grammars/source.antlr.json +300 -0
- data/grammars/source.apache-config.json +352 -0
- data/grammars/source.apache-config.mod_perl.json +70 -0
- data/grammars/source.apl.json +442 -0
- data/grammars/source.applescript.json +1385 -0
- data/grammars/source.apt.json +25 -0
- data/grammars/source.asm.x86.json +182 -0
- data/grammars/source.asp.json +157 -0
- data/grammars/source.aspectj.json +963 -0
- data/grammars/source.ats.json +170 -0
- data/grammars/source.autoit.3.json +132 -0
- data/grammars/source.awk.json +388 -0
- data/grammars/source.befunge.json +38 -0
- data/grammars/source.bf.json +36 -0
- data/grammars/source.bison.json +59 -0
- data/grammars/source.blitzmax.json +912 -0
- data/grammars/source.boo.json +452 -0
- data/grammars/source.brightauthorproject.json +29 -0
- data/grammars/source.brightscript.json +158 -0
- data/grammars/source.bro.json +409 -0
- data/grammars/source.bsv.json +283 -0
- data/grammars/source.c++.json +364 -0
- data/grammars/source.c++.qt.json +37 -0
- data/grammars/source.c.ec.json +39 -0
- data/grammars/source.c.json +727 -0
- data/grammars/source.c.platform.json +154 -0
- data/grammars/source.cache.cmake.json +75 -0
- data/grammars/source.cake.json +16 -0
- data/grammars/source.camlp4.ocaml.json +63 -0
- data/grammars/source.capnp.json +93 -0
- data/grammars/source.ceylon.json +77 -0
- data/grammars/source.cfscript.cfc.json +170 -0
- data/grammars/source.cfscript.json +744 -0
- data/grammars/source.chapel.json +240 -0
- data/grammars/source.cirru.json +66 -0
- data/grammars/source.clarion.json +159 -0
- data/grammars/source.clips.json +80 -0
- data/grammars/source.clojure.json +397 -0
- data/grammars/source.cm.json +54 -0
- data/grammars/source.cmake.json +181 -0
- data/grammars/source.cobol.json +528 -0
- data/grammars/source.coffee.json +678 -0
- data/grammars/source.compiled-papyrus.json +11 -0
- data/grammars/source.cool.json +103 -0
- data/grammars/source.coq.json +62 -0
- data/grammars/source.crystal.json +2760 -0
- data/grammars/source.cs.json +556 -0
- data/grammars/source.css.json +630 -0
- data/grammars/source.css.less.json +276 -0
- data/grammars/source.css.mss.json +256 -0
- data/grammars/source.csx.json +16 -0
- data/grammars/source.cuda-c++.json +137 -0
- data/grammars/source.cython.json +2108 -0
- data/grammars/source.d.json +722 -0
- data/grammars/source.dart.json +763 -0
- data/grammars/source.desktop.json +90 -0
- data/grammars/source.diff.json +162 -0
- data/grammars/source.dockerfile.json +89 -0
- data/grammars/source.dosbatch.json +70 -0
- data/grammars/source.dot.json +126 -0
- data/grammars/source.dylan.json +217 -0
- data/grammars/source.eiffel.json +138 -0
- data/grammars/source.elixir.json +737 -0
- data/grammars/source.elm.json +355 -0
- data/grammars/source.erazor.json +126 -0
- data/grammars/source.erlang.json +1674 -0
- data/grammars/source.essl.json +50 -0
- data/grammars/source.factor.json +260 -0
- data/grammars/source.fan.json +188 -0
- data/grammars/source.fancy.json +270 -0
- data/grammars/source.fish.json +214 -0
- data/grammars/source.forth.json +101 -0
- data/grammars/source.fortran.json +499 -0
- data/grammars/source.fortran.modern.json +226 -0
- data/grammars/source.fsharp.json +403 -0
- data/grammars/source.gap.json +167 -0
- data/grammars/source.gcode.json +25 -0
- data/grammars/source.gdscript.json +154 -0
- data/grammars/source.gfm.json +1270 -0
- data/grammars/source.glsl.json +71 -0
- data/grammars/source.gnuplot.json +276 -0
- data/grammars/source.go.json +552 -0
- data/grammars/source.golo.json +182 -0
- data/grammars/source.gosu.2.json +163 -0
- data/grammars/source.grace.json +679 -0
- data/grammars/source.groovy.gradle.json +73 -0
- data/grammars/source.groovy.json +1385 -0
- data/grammars/source.harbour.json +450 -0
- data/grammars/source.haskell.json +449 -0
- data/grammars/source.haxe.2.json +1243 -0
- data/grammars/source.hss.1.json +464 -0
- data/grammars/source.httpspec.json +287 -0
- data/grammars/source.hxml.json +26 -0
- data/grammars/source.hy.json +270 -0
- data/grammars/source.idl-dlm.json +112 -0
- data/grammars/source.idl.json +267 -0
- data/grammars/source.idris.json +537 -0
- data/grammars/source.ini.json +113 -0
- data/grammars/source.inno.json +65 -0
- data/grammars/source.io.json +164 -0
- data/grammars/source.ioke.json +272 -0
- data/grammars/source.isabelle.root.json +68 -0
- data/grammars/source.isabelle.theory.json +106 -0
- data/grammars/source.j.json +49 -0
- data/grammars/source.jade.json +1009 -0
- data/grammars/source.jasmin.json +299 -0
- data/grammars/source.java-properties.json +97 -0
- data/grammars/source.java.json +1026 -0
- data/grammars/source.jcl.json +49 -0
- data/grammars/source.jflex.json +490 -0
- data/grammars/source.jq.json +218 -0
- data/grammars/source.js.json +948 -0
- data/grammars/source.js.jsx.json +2937 -0
- data/grammars/source.js.objj.json +424 -0
- data/grammars/source.js.regexp.json +150 -0
- data/grammars/source.js.regexp.replacement.json +30 -0
- data/grammars/source.json.json +149 -0
- data/grammars/source.julia.json +407 -0
- data/grammars/source.lean.json +145 -0
- data/grammars/source.lid.json +23 -0
- data/grammars/source.lilypond.json +623 -0
- data/grammars/source.lisp.json +111 -0
- data/grammars/source.litcoffee.json +669 -0
- data/grammars/source.livescript.json +616 -0
- data/grammars/source.llvm.json +71 -0
- data/grammars/source.logos.json +31 -0
- data/grammars/source.logtalk.json +315 -0
- data/grammars/source.loomscript.json +214 -0
- data/grammars/source.lsl.json +216 -0
- data/grammars/source.lua.json +191 -0
- data/grammars/source.makefile.json +474 -0
- data/grammars/source.makegen.json +13 -0
- data/grammars/source.man.json +53 -0
- data/grammars/source.mask.json +701 -0
- data/grammars/source.mata.json +133 -0
- data/grammars/source.mathematica.json +429 -0
- data/grammars/source.matlab.json +776 -0
- data/grammars/source.mercury.json +251 -0
- data/grammars/source.ml.json +291 -0
- data/grammars/source.modelica.json +142 -0
- data/grammars/source.modula2.json +103 -0
- data/grammars/source.monkey.json +701 -0
- data/grammars/source.moonscript.json +149 -0
- data/grammars/source.mupad.json +149 -0
- data/grammars/source.nant-build.json +86 -0
- data/grammars/source.ncl.json +66 -0
- data/grammars/source.nemerle.json +137 -0
- data/grammars/source.nesc.json +27 -0
- data/grammars/source.netlinx.erb.json +47 -0
- data/grammars/source.netlinx.json +768 -0
- data/grammars/source.nginx.json +797 -0
- data/grammars/source.nim.json +1150 -0
- data/grammars/source.nim_filter.json +133 -0
- data/grammars/source.nimcfg.json +116 -0
- data/grammars/source.ninja.json +66 -0
- data/grammars/source.nit.json +238 -0
- data/grammars/source.nix.json +1200 -0
- data/grammars/source.nmml.json +87 -0
- data/grammars/source.nsis.json +150 -0
- data/grammars/source.objc++.json +19 -0
- data/grammars/source.objc.json +918 -0
- data/grammars/source.objc.platform.json +277 -0
- data/grammars/source.ocaml.json +1426 -0
- data/grammars/source.ocamllex.json +305 -0
- data/grammars/source.ocamlyacc.json +346 -0
- data/grammars/source.octave.json +451 -0
- data/grammars/source.ooc.json +692 -0
- data/grammars/source.opa.json +206 -0
- data/grammars/source.opal.json +415 -0
- data/grammars/source.opalsysdefs.json +70 -0
- data/grammars/source.opencobol.json +65 -0
- data/grammars/source.ox.json +97 -0
- data/grammars/source.oz.json +84 -0
- data/grammars/source.papyrus-assembly.json +266 -0
- data/grammars/source.papyrus.json +231 -0
- data/grammars/source.parrot.pir.json +117 -0
- data/grammars/source.pascal.json +150 -0
- data/grammars/source.perl.6.json +310 -0
- data/grammars/source.perl.json +2413 -0
- data/grammars/source.php.zephir.json +362 -0
- data/grammars/source.pig_latin.json +172 -0
- data/grammars/source.pike.json +62 -0
- data/grammars/source.plsql.oracle.json +642 -0
- data/grammars/source.po.json +232 -0
- data/grammars/source.pogoscript.json +85 -0
- data/grammars/source.postscript.json +231 -0
- data/grammars/source.powershell.json +755 -0
- data/grammars/source.processing.json +885 -0
- data/grammars/source.prolog.eclipse.json +206 -0
- data/grammars/source.prolog.json +292 -0
- data/grammars/source.protobuf.json +395 -0
- data/grammars/source.pubspec.json +13 -0
- data/grammars/source.puppet.json +494 -0
- data/grammars/source.purescript.json +818 -0
- data/grammars/source.pyjade.json +1010 -0
- data/grammars/source.python.django.json +34 -0
- data/grammars/source.python.json +1960 -0
- data/grammars/source.python.salt.json +13 -0
- data/grammars/source.qmake.json +217 -0
- data/grammars/source.qml.json +195 -0
- data/grammars/source.r.json +203 -0
- data/grammars/source.racket.json +119 -0
- data/grammars/source.rebol.json +647 -0
- data/grammars/source.red.json +652 -0
- data/grammars/source.regexp.babel.json +190 -0
- data/grammars/source.regexp.python.json +187 -0
- data/grammars/source.regexp.spin.json +188 -0
- data/grammars/source.ruby.json +1956 -0
- data/grammars/source.ruby.rspec.cucumber.steps.json +274 -0
- data/grammars/source.rust.json +269 -0
- data/grammars/source.sas.json +322 -0
- data/grammars/source.sas_log.json +26 -0
- data/grammars/source.sass.json +248 -0
- data/grammars/source.sbt.json +36 -0
- data/grammars/source.scad.json +152 -0
- data/grammars/source.scala.json +739 -0
- data/grammars/source.scaml.json +466 -0
- data/grammars/source.scheme.json +370 -0
- data/grammars/source.scilab.json +103 -0
- data/grammars/source.scss.json +1321 -0
- data/grammars/source.shell.json +1212 -0
- data/grammars/source.smali.json +1668 -0
- data/grammars/source.smalltalk.json +135 -0
- data/grammars/source.smt.json +173 -0
- data/grammars/source.sp.json +118 -0
- data/grammars/source.sparql.json +23 -0
- data/grammars/source.spin.json +936 -0
- data/grammars/source.sqf.json +112 -0
- data/grammars/source.sql.json +473 -0
- data/grammars/source.stata.json +208 -0
- data/grammars/source.strings.json +53 -0
- data/grammars/source.stylus.json +1021 -0
- data/grammars/source.swift.json +965 -0
- data/grammars/source.systemverilog.json +1050 -0
- data/grammars/source.tcl.json +277 -0
- data/grammars/source.tea.json +180 -0
- data/grammars/source.thrift.json +704 -0
- data/grammars/source.toml.json +327 -0
- data/grammars/source.ts.json +1094 -0
- data/grammars/source.tsx.json +1324 -0
- data/grammars/source.turtle.json +505 -0
- data/grammars/source.txl.json +62 -0
- data/grammars/source.ucfconstraints.json +72 -0
- data/grammars/source.vala.json +814 -0
- data/grammars/source.varnish.vcl.json +343 -0
- data/grammars/source.vbnet.json +338 -0
- data/grammars/source.verilog.json +302 -0
- data/grammars/source.vhdl.json +1349 -0
- data/grammars/source.viml.json +224 -0
- data/grammars/source.webidl.json +814 -0
- data/grammars/source.x10.json +68 -0
- data/grammars/source.x86asm.json +47 -0
- data/grammars/source.xc.json +379 -0
- data/grammars/source.xq.json +241 -0
- data/grammars/source.xquery.json +193 -0
- data/grammars/source.xtend.json +733 -0
- data/grammars/source.yaml.json +334 -0
- data/grammars/source.yaml.salt.json +348 -0
- data/grammars/text.bibtex.json +251 -0
- data/grammars/text.cfml.basic.json +736 -0
- data/grammars/text.dart-analysis-output.json +162 -0
- data/grammars/text.dart-doccomments.json +19 -0
- data/grammars/text.elixir.json +45 -0
- data/grammars/text.gherkin.feature.json +135 -0
- data/grammars/text.groff.json +113 -0
- data/grammars/text.haml.json +299 -0
- data/grammars/text.html.abl.json +24 -0
- data/grammars/text.html.asciidoc.json +492 -0
- data/grammars/text.html.asdoc.json +541 -0
- data/grammars/text.html.asp.json +58 -0
- data/grammars/text.html.basic.json +552 -0
- data/grammars/text.html.cfm.json +811 -0
- data/grammars/text.html.creole.json +329 -0
- data/grammars/text.html.django.json +69 -0
- data/grammars/text.html.elixir.json +18 -0
- data/grammars/text.html.erb.json +157 -0
- data/grammars/text.html.erlang.yaws.json +72 -0
- data/grammars/text.html.factor.json +27 -0
- data/grammars/text.html.handlebars.json +783 -0
- data/grammars/text.html.jsp.json +1203 -0
- data/grammars/text.html.liquid.json +35 -0
- data/grammars/text.html.mako.json +729 -0
- data/grammars/text.html.markdown.source.gfm.apib.json +1297 -0
- data/grammars/text.html.markdown.source.gfm.mson.json +1165 -0
- data/grammars/text.html.mediawiki.json +972 -0
- data/grammars/text.html.php.json +2607 -0
- data/grammars/text.html.slash.json +313 -0
- data/grammars/text.html.smarty.json +216 -0
- data/grammars/text.html.ssp.json +49 -0
- data/grammars/text.html.tcl.json +44 -0
- data/grammars/text.html.twig.json +1353 -0
- data/grammars/text.html.vue.json +642 -0
- data/grammars/text.idl-idldoc.json +14 -0
- data/grammars/text.junit-test-report.json +92 -0
- data/grammars/text.log.latex.json +86 -0
- data/grammars/text.python.console.json +25 -0
- data/grammars/text.python.traceback.json +46 -0
- data/grammars/text.rdoc.json +48 -0
- data/grammars/text.restructuredtext.json +561 -0
- data/grammars/text.robot.json +73 -0
- data/grammars/text.shell-session.json +48 -0
- data/grammars/text.slim.json +527 -0
- data/grammars/text.tex.json +271 -0
- data/grammars/text.tex.latex.beamer.json +63 -0
- data/grammars/text.tex.latex.haskell.json +56 -0
- data/grammars/text.tex.latex.json +1013 -0
- data/grammars/text.tex.latex.memoir.json +99 -0
- data/grammars/text.tex.latex.rd.json +117 -0
- data/grammars/text.xml.ant.json +202 -0
- data/grammars/text.xml.flex-config.json +2634 -0
- data/grammars/text.xml.genshi.json +34 -0
- data/grammars/text.xml.json +364 -0
- data/grammars/text.xml.pom.json +774 -0
- data/grammars/text.xml.xsl.json +94 -0
- data/grammars/text.zone_file.json +72 -0
- data/lib/linguist/grammars.rb +13 -0
- metadata +389 -0
@@ -0,0 +1,271 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"sty",
|
4
|
+
"cls",
|
5
|
+
"bbx",
|
6
|
+
"cbx"
|
7
|
+
],
|
8
|
+
"name": "TeX",
|
9
|
+
"patterns": [
|
10
|
+
{
|
11
|
+
"captures": {
|
12
|
+
"1": {
|
13
|
+
"name": "punctuation.definition.keyword.tex"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"match": "(\\\\)(backmatter|else|fi|frontmatter|ftrue|mainmatter|if(case|cat|dim|eof|false|hbox|hmode|inner|mmode|num|odd|undefined|vbox|vmode|void|x)?)\\b",
|
17
|
+
"name": "keyword.control.tex"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"captures": {
|
21
|
+
"1": {
|
22
|
+
"name": "keyword.control.catcode.tex"
|
23
|
+
},
|
24
|
+
"2": {
|
25
|
+
"name": "punctuation.definition.keyword.tex"
|
26
|
+
},
|
27
|
+
"3": {
|
28
|
+
"name": "punctuation.separator.key-value.tex"
|
29
|
+
},
|
30
|
+
"4": {
|
31
|
+
"name": "constant.numeric.category.tex"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"match": "((\\\\)catcode)`(?:\\\\)?.(=)(\\d+)",
|
35
|
+
"name": "meta.catcode.tex"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"begin": "(^[ \\t]+)?(?=%)",
|
39
|
+
"beginCaptures": {
|
40
|
+
"1": {
|
41
|
+
"name": "punctuation.whitespace.comment.leading.tex"
|
42
|
+
}
|
43
|
+
},
|
44
|
+
"end": "(?!\\G)",
|
45
|
+
"patterns": [
|
46
|
+
{
|
47
|
+
"begin": "%:",
|
48
|
+
"beginCaptures": {
|
49
|
+
"0": {
|
50
|
+
"name": "punctuation.definition.comment.tex"
|
51
|
+
}
|
52
|
+
},
|
53
|
+
"end": "$\\n?",
|
54
|
+
"name": "comment.line.percentage.semicolon.texshop.tex"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"begin": "^(%!TEX) (\\S*) =",
|
58
|
+
"beginCaptures": {
|
59
|
+
"1": {
|
60
|
+
"name": "punctuation.definition.comment.tex"
|
61
|
+
}
|
62
|
+
},
|
63
|
+
"end": "$\\n?",
|
64
|
+
"name": "comment.line.percentage.directive.texshop.tex"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"begin": "%",
|
68
|
+
"beginCaptures": {
|
69
|
+
"0": {
|
70
|
+
"name": "punctuation.definition.comment.tex"
|
71
|
+
}
|
72
|
+
},
|
73
|
+
"end": "$\\n?",
|
74
|
+
"name": "comment.line.percentage.tex"
|
75
|
+
}
|
76
|
+
]
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"begin": "\\{",
|
80
|
+
"beginCaptures": {
|
81
|
+
"0": {
|
82
|
+
"name": "punctuation.section.group.begin.tex"
|
83
|
+
}
|
84
|
+
},
|
85
|
+
"end": "\\}",
|
86
|
+
"endCaptures": {
|
87
|
+
"0": {
|
88
|
+
"name": "punctuation.section.group.end.tex"
|
89
|
+
}
|
90
|
+
},
|
91
|
+
"name": "meta.group.braces.tex",
|
92
|
+
"patterns": [
|
93
|
+
{
|
94
|
+
"include": "$base"
|
95
|
+
}
|
96
|
+
]
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"match": "[\\[\\]]",
|
100
|
+
"name": "punctuation.definition.brackets.tex"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"begin": "\\$\\$",
|
104
|
+
"beginCaptures": {
|
105
|
+
"0": {
|
106
|
+
"name": "punctuation.definition.string.begin.tex"
|
107
|
+
}
|
108
|
+
},
|
109
|
+
"end": "\\$\\$",
|
110
|
+
"endCaptures": {
|
111
|
+
"0": {
|
112
|
+
"name": "punctuation.definition.string.end.tex"
|
113
|
+
}
|
114
|
+
},
|
115
|
+
"name": "string.other.math.block.tex",
|
116
|
+
"patterns": [
|
117
|
+
{
|
118
|
+
"include": "#math"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"include": "$self"
|
122
|
+
}
|
123
|
+
]
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"match": "\\\\\\\\",
|
127
|
+
"name": "constant.character.newline.tex"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"begin": "\\$",
|
131
|
+
"beginCaptures": {
|
132
|
+
"0": {
|
133
|
+
"name": "punctuation.definition.string.begin.tex"
|
134
|
+
}
|
135
|
+
},
|
136
|
+
"end": "\\$",
|
137
|
+
"endCaptures": {
|
138
|
+
"0": {
|
139
|
+
"name": "punctuation.definition.string.end.tex"
|
140
|
+
}
|
141
|
+
},
|
142
|
+
"name": "string.other.math.tex",
|
143
|
+
"patterns": [
|
144
|
+
{
|
145
|
+
"match": "\\\\\\$",
|
146
|
+
"name": "constant.character.escape.tex"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"include": "#math"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"include": "$self"
|
153
|
+
}
|
154
|
+
]
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"captures": {
|
158
|
+
"1": {
|
159
|
+
"name": "punctuation.definition.function.tex"
|
160
|
+
}
|
161
|
+
},
|
162
|
+
"match": "(\\\\)[A-Za-z@]+",
|
163
|
+
"name": "support.function.general.tex"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"captures": {
|
167
|
+
"1": {
|
168
|
+
"name": "punctuation.definition.keyword.tex"
|
169
|
+
}
|
170
|
+
},
|
171
|
+
"match": "(\\\\)[^a-zA-Z@]",
|
172
|
+
"name": "constant.character.escape.tex"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"match": "«press a-z and space for greek letter»[a-zA-Z]*",
|
176
|
+
"name": "meta.placeholder.greek.tex"
|
177
|
+
}
|
178
|
+
],
|
179
|
+
"repository": {
|
180
|
+
"math": {
|
181
|
+
"patterns": [
|
182
|
+
{
|
183
|
+
"captures": {
|
184
|
+
"1": {
|
185
|
+
"name": "punctuation.definition.constant.math.tex"
|
186
|
+
}
|
187
|
+
},
|
188
|
+
"match": "(\\\\)(s(s(earrow|warrow|lash)|h(ort(downarrow|uparrow|parallel|leftarrow|rightarrow|mid)|arp)|tar|i(gma|m(eq)?)|u(cc(sim|n(sim|approx)|curlyeq|eq|approx)?|pset(neq(q)?|plus(eq)?|eq(q)?)?|rd|m|bset(neq(q)?|plus(eq)?|eq(q)?)?)|p(hericalangle|adesuit)|e(tminus|arrow)|q(su(pset(eq)?|bset(eq)?)|c(up|ap)|uare)|warrow|m(ile|all(s(etminus|mile)|frown)))|h(slash|ook(leftarrow|rightarrow)|eartsuit|bar)|R(sh|ightarrow|e|bag)|Gam(e|ma)|n(s(hort(parallel|mid)|im|u(cc(eq)?|pseteq(q)?|bseteq))|Rightarrow|n(earrow|warrow)|cong|triangle(left(eq(slant)?)?|right(eq(slant)?)?)|i(plus)?|u|p(lus|arallel|rec(eq)?)|e(q|arrow|g|xists)|v(dash|Dash)|warrow|le(ss|q(slant|q)?|ft(arrow|rightarrow))|a(tural|bla)|VDash|rightarrow|g(tr|eq(slant|q)?)|mid|Left(arrow|rightarrow))|c(hi|irc(eq|le(d(circ|S|dash|ast)|arrow(left|right)))?|o(ng|prod|lon|mplement)|dot(s|p)?|u(p|r(vearrow(left|right)|ly(eq(succ|prec)|vee(downarrow|uparrow)?|wedge(downarrow|uparrow)?)))|enterdot|lubsuit|ap)|Xi|Maps(to(char)?|from(char)?)|B(ox|umpeq|bbk)|t(h(ick(sim|approx)|e(ta|refore))|imes|op|wohead(leftarrow|rightarrow)|a(u|lloblong)|riangle(down|q|left(eq(slant)?)?|right(eq(slant)?)?)?)|i(n(t(er(cal|leave))?|plus|fty)?|ota|math)|S(igma|u(pset|bset))|zeta|o(slash|times|int|dot|plus|vee|wedge|lessthan|greaterthan|m(inus|ega)|b(slash|long|ar))|d(i(v(ideontimes)?|a(g(down|up)|mond(suit)?)|gamma)|o(t(plus|eq(dot)?)|ublebarwedge|wn(harpoon(left|right)|downarrows|arrow))|d(ots|agger)|elta|a(sh(v|leftarrow|rightarrow)|leth|gger))|Y(down|up|left|right)|C(up|ap)|u(n(lhd|rhd)|p(silon|harpoon(left|right)|downarrow|uparrows|lus|arrow)|lcorner|rcorner)|jmath|Theta|Im|p(si|hi|i(tchfork)?|erp|ar(tial|allel)|r(ime|o(d|pto)|ec(sim|n(sim|approx)|curlyeq|eq|approx)?)|m)|e(t(h|a)|psilon|q(slant(less|gtr)|circ|uiv)|ll|xists|mptyset)|Omega|D(iamond|ownarrow|elta)|v(d(ots|ash)|ee(bar)?|Dash|ar(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|curly(vee|wedge)|t(heta|imes|riangle(left|right)?)|o(slash|circle|times|dot|plus|vee|wedge|lessthan|ast|greaterthan|minus|b(slash|ar))|p(hi|i|ropto)|epsilon|kappa|rho|bigcirc))|kappa|Up(silon|downarrow|arrow)|Join|f(orall|lat|a(t(s(emi|lash)|bslash)|llingdotseq)|rown)|P(si|hi|i)|w(p|edge|r)|l(hd|n(sim|eq(q)?|approx)|ceil|times|ightning|o(ng(left(arrow|rightarrow)|rightarrow|maps(to|from))|zenge|oparrow(left|right))|dot(s|p)|e(ss(sim|dot|eq(qgtr|gtr)|approx|gtr)|q(slant|q)?|ft(slice|harpoon(down|up)|threetimes|leftarrows|arrow(t(ail|riangle))?|right(squigarrow|harpoons|arrow(s|triangle|eq)?))|adsto)|vertneqq|floor|l(c(orner|eil)|floor|l|bracket)?|a(ngle|mbda)|rcorner|bag)|a(s(ymp|t)|ngle|pprox(eq)?|l(pha|eph)|rrownot|malg)|V(dash|vdash)|r(h(o|d)|ceil|times|i(singdotseq|ght(s(quigarrow|lice)|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(t(ail|riangle))?|rightarrows))|floor|angle|r(ceil|parenthesis|floor|bracket)|bag)|g(n(sim|eq(q)?|approx)|tr(sim|dot|eq(qless|less)|less|approx)|imel|eq(slant|q)?|vertneqq|amma|g(g)?)|Finv|xi|m(ho|i(nuso|d)|o(o|dels)|u(ltimap)?|p|e(asuredangle|rge)|aps(to|from(char)?))|b(i(n(dnasrepma|ampersand)|g(s(tar|qc(up|ap))|nplus|c(irc|u(p|rly(vee|wedge))|ap)|triangle(down|up)|interleave|o(times|dot|plus)|uplus|parallel|vee|wedge|box))|o(t|wtie|x(slash|circle|times|dot|plus|empty|ast|minus|b(slash|ox|ar)))|u(llet|mpeq)|e(cause|t(h|ween|a))|lack(square|triangle(down|left|right)?|lozenge)|a(ck(s(im(eq)?|lash)|prime|epsilon)|r(o|wedge))|bslash)|L(sh|ong(left(arrow|rightarrow)|rightarrow|maps(to|from))|eft(arrow|rightarrow)|leftarrow|ambda|bag)|Arrownot)\\b",
|
189
|
+
"name": "constant.character.math.tex"
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"captures": {
|
193
|
+
"1": {
|
194
|
+
"name": "punctuation.definition.constant.math.tex"
|
195
|
+
}
|
196
|
+
},
|
197
|
+
"match": "(\\\\)(sum|prod|coprod|int|oint|bigcap|bigcup|bigsqcup|bigvee|bigwedge|bigodot|bigotimes|bogoplus|biguplus)\\b",
|
198
|
+
"name": "constant.character.math.tex"
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"captures": {
|
202
|
+
"1": {
|
203
|
+
"name": "punctuation.definition.constant.math.tex"
|
204
|
+
}
|
205
|
+
},
|
206
|
+
"match": "(\\\\)(arccos|arcsin|arctan|arg|cos|cosh|cot|coth|csc|deg|det|dim|exp|gcd|hom|inf|ker|lg|lim|liminf|limsup|ln|log|max|min|pr|sec|sin|sinh|sup|tan|tanh)\\b",
|
207
|
+
"name": "constant.other.math.tex"
|
208
|
+
},
|
209
|
+
{
|
210
|
+
"begin": "((\\\\)Sexpr(\\{))",
|
211
|
+
"beginCaptures": {
|
212
|
+
"1": {
|
213
|
+
"name": "support.function.sexpr.math.tex"
|
214
|
+
},
|
215
|
+
"2": {
|
216
|
+
"name": "punctuation.definition.function.math.tex"
|
217
|
+
},
|
218
|
+
"3": {
|
219
|
+
"name": "punctuation.section.embedded.begin.math.tex"
|
220
|
+
}
|
221
|
+
},
|
222
|
+
"contentName": "support.function.sexpr.math.tex",
|
223
|
+
"end": "(((\\})))",
|
224
|
+
"endCaptures": {
|
225
|
+
"1": {
|
226
|
+
"name": "support.function.sexpr.math.tex"
|
227
|
+
},
|
228
|
+
"2": {
|
229
|
+
"name": "punctuation.section.embedded.end.math.tex"
|
230
|
+
},
|
231
|
+
"3": {
|
232
|
+
"name": "source.r"
|
233
|
+
}
|
234
|
+
},
|
235
|
+
"name": "meta.embedded.line.r",
|
236
|
+
"patterns": [
|
237
|
+
{
|
238
|
+
"begin": "\\G(?!\\})",
|
239
|
+
"end": "(?=\\})",
|
240
|
+
"name": "source.r",
|
241
|
+
"patterns": [
|
242
|
+
{
|
243
|
+
"include": "source.r"
|
244
|
+
}
|
245
|
+
]
|
246
|
+
}
|
247
|
+
]
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"captures": {
|
251
|
+
"1": {
|
252
|
+
"name": "punctuation.definition.constant.math.tex"
|
253
|
+
}
|
254
|
+
},
|
255
|
+
"match": "(\\\\)([^a-zA-Z]|[A-Za-z]+)(?=\\b|\\}|\\]|\\^|\\_)",
|
256
|
+
"name": "constant.other.general.math.tex"
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"match": "(([0-9]*[\\.][0-9]+)|[0-9]+)",
|
260
|
+
"name": "constant.numeric.math.tex"
|
261
|
+
},
|
262
|
+
{
|
263
|
+
"match": "«press a-z and space for greek letter»[a-zA-Z]*",
|
264
|
+
"name": "meta.placeholder.greek.math.tex"
|
265
|
+
}
|
266
|
+
]
|
267
|
+
}
|
268
|
+
},
|
269
|
+
"scopeName": "text.tex",
|
270
|
+
"uuid": "6BC8DE6F-9360-4C7E-AC3C-971385945346"
|
271
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
|
4
|
+
],
|
5
|
+
"firstLineMatch": "^\\\\documentclass(\\[.*\\])?\\{beamer\\}",
|
6
|
+
"keyEquivalent": "^~B",
|
7
|
+
"name": "LaTeX Beamer",
|
8
|
+
"patterns": [
|
9
|
+
{
|
10
|
+
"begin": "(?:\\s*)((\\\\)begin)(\\{)(frame)(\\})",
|
11
|
+
"captures": {
|
12
|
+
"1": {
|
13
|
+
"name": "support.function.be.latex"
|
14
|
+
},
|
15
|
+
"2": {
|
16
|
+
"name": "punctuation.definition.function.latex"
|
17
|
+
},
|
18
|
+
"3": {
|
19
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
20
|
+
},
|
21
|
+
"4": {
|
22
|
+
"name": "variable.parameter.function.latex"
|
23
|
+
},
|
24
|
+
"5": {
|
25
|
+
"name": "punctuation.definition.arguments.end.latex"
|
26
|
+
}
|
27
|
+
},
|
28
|
+
"end": "((\\\\)end)(\\{)(frame)(\\})",
|
29
|
+
"name": "meta.function.environment.frame.latex",
|
30
|
+
"patterns": [
|
31
|
+
{
|
32
|
+
"include": "$self"
|
33
|
+
}
|
34
|
+
]
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"captures": {
|
38
|
+
"1": {
|
39
|
+
"name": "support.function.frametitle.latex"
|
40
|
+
},
|
41
|
+
"2": {
|
42
|
+
"name": "punctuation.definition.function.latex"
|
43
|
+
},
|
44
|
+
"3": {
|
45
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
46
|
+
},
|
47
|
+
"4": {
|
48
|
+
"name": "entity.name.function.frame.latex"
|
49
|
+
},
|
50
|
+
"5": {
|
51
|
+
"name": "punctuation.definition.arguments.end.latex"
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"match": "((\\\\)frametitle)(\\{)(.*)(\\})",
|
55
|
+
"name": "meta.function.frametitle.latex"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"include": "text.tex.latex"
|
59
|
+
}
|
60
|
+
],
|
61
|
+
"scopeName": "text.tex.latex.beamer",
|
62
|
+
"uuid": "2ACA20AA-B008-469B-A04A-6DE232973ED8"
|
63
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"lhs"
|
4
|
+
],
|
5
|
+
"keyEquivalent": "^~H",
|
6
|
+
"name": "Literate Haskell",
|
7
|
+
"patterns": [
|
8
|
+
{
|
9
|
+
"begin": "^((\\\\)begin)({)code(})(\\s*\\n)?",
|
10
|
+
"captures": {
|
11
|
+
"1": {
|
12
|
+
"name": "support.function.be.latex"
|
13
|
+
},
|
14
|
+
"2": {
|
15
|
+
"name": "punctuation.definition.function.latex"
|
16
|
+
},
|
17
|
+
"3": {
|
18
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
19
|
+
},
|
20
|
+
"4": {
|
21
|
+
"name": "punctuation.definition.arguments.end.latex"
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"contentName": "source.haskell.embedded.latex",
|
25
|
+
"end": "^((\\\\)end)({)code(})",
|
26
|
+
"name": "meta.embedded.block.haskell.latex",
|
27
|
+
"patterns": [
|
28
|
+
{
|
29
|
+
"include": "source.haskell"
|
30
|
+
}
|
31
|
+
]
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"begin": "^(> )",
|
35
|
+
"beginCaptures": {
|
36
|
+
"1": {
|
37
|
+
"name": "punctuation.definition.bird-track.haskell"
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"comment": "This breaks type signature detection for now, but it's better than having no highlighting whatsoever.",
|
41
|
+
"contentName": "source.haskell",
|
42
|
+
"end": "$",
|
43
|
+
"name": "meta.embedded.haskell",
|
44
|
+
"patterns": [
|
45
|
+
{
|
46
|
+
"include": "source.haskell"
|
47
|
+
}
|
48
|
+
]
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"include": "text.tex.latex"
|
52
|
+
}
|
53
|
+
],
|
54
|
+
"scopeName": "text.tex.latex.haskell",
|
55
|
+
"uuid": "439807F5-7129-487D-B5DC-95D5272B43DD"
|
56
|
+
}
|
@@ -0,0 +1,1013 @@
|
|
1
|
+
{
|
2
|
+
"fileTypes": [
|
3
|
+
"tex"
|
4
|
+
],
|
5
|
+
"firstLineMatch": "^\\\\documentclass(?!.*\\{beamer\\})",
|
6
|
+
"keyEquivalent": "^~L",
|
7
|
+
"name": "LaTeX",
|
8
|
+
"patterns": [
|
9
|
+
{
|
10
|
+
"comment": "This scope identifies partially typed commands such as `\\tab`. We use this to trigger “Command Completion” only when it makes sense.",
|
11
|
+
"match": "(?<=\\\\[\\w@]|\\\\[\\w@]{2}|\\\\[\\w@]{3}|\\\\[\\w@]{4}|\\\\[\\w@]{5}|\\\\[\\w@]{6})\\s",
|
12
|
+
"name": "meta.space-after-command.latex"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"begin": "((\\\\)(?:usepackage|documentclass))(?:(\\[)([^\\]]*)(\\]))?(\\{)",
|
16
|
+
"beginCaptures": {
|
17
|
+
"1": {
|
18
|
+
"name": "keyword.control.preamble.latex"
|
19
|
+
},
|
20
|
+
"2": {
|
21
|
+
"name": "punctuation.definition.function.latex"
|
22
|
+
},
|
23
|
+
"3": {
|
24
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
25
|
+
},
|
26
|
+
"4": {
|
27
|
+
"name": "variable.parameter.latex"
|
28
|
+
},
|
29
|
+
"5": {
|
30
|
+
"name": "punctuation.definition.arguments.end.latex"
|
31
|
+
},
|
32
|
+
"6": {
|
33
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
34
|
+
}
|
35
|
+
},
|
36
|
+
"contentName": "support.class.latex",
|
37
|
+
"end": "\\}",
|
38
|
+
"endCaptures": {
|
39
|
+
"0": {
|
40
|
+
"name": "punctuation.definition.arguments.end.latex"
|
41
|
+
}
|
42
|
+
},
|
43
|
+
"name": "meta.preamble.latex",
|
44
|
+
"patterns": [
|
45
|
+
{
|
46
|
+
"include": "$self"
|
47
|
+
}
|
48
|
+
]
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"begin": "((\\\\)(?:include|input))(\\{)",
|
52
|
+
"beginCaptures": {
|
53
|
+
"1": {
|
54
|
+
"name": "keyword.control.include.latex"
|
55
|
+
},
|
56
|
+
"2": {
|
57
|
+
"name": "punctuation.definition.function.latex"
|
58
|
+
},
|
59
|
+
"3": {
|
60
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
61
|
+
}
|
62
|
+
},
|
63
|
+
"contentName": "support.class.latex",
|
64
|
+
"end": "\\}",
|
65
|
+
"endCaptures": {
|
66
|
+
"0": {
|
67
|
+
"name": "punctuation.definition.arguments.end.latex"
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"name": "meta.include.latex",
|
71
|
+
"patterns": [
|
72
|
+
{
|
73
|
+
"include": "$self"
|
74
|
+
}
|
75
|
+
]
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"begin": "(?x)\n\t\t\t\t(\t\t\t\t\t\t\t\t\t\t\t\t\t# Capture 1\n\t\t\t\t\t(\\\\)\t\t\t\t\t\t\t\t\t\t\t# Marker\n\t\t\t\t\t(\n\t\t\t\t\t\t(?:sub){0,2}section\t\t\t\t\t\t\t# Functions\n\t\t\t\t\t | (?:sub)?paragraph\n\t\t\t\t\t | chapter|part|addpart\n\t\t\t\t\t | addchap|addsec|minisec\n\t\t\t\t\t)\n\t\t\t\t\t(?:\\*)?\t\t\t\t\t\t\t\t\t\t\t# Optional Unnumbered\n\t\t\t\t)\n\t\t\t\t(?:\n\t\t\t\t\t(\\[)([^\\[]*?)(\\])\t\t\t\t\t\t\t\t# Optional Title\n\t\t\t\t)??\n\t\t\t\t(\\{)\t\t\t\t\t\t\t\t\t\t\t\t# Opening Bracket\n\t\t\t\t",
|
79
|
+
"beginCaptures": {
|
80
|
+
"1": {
|
81
|
+
"name": "support.function.section.latex"
|
82
|
+
},
|
83
|
+
"2": {
|
84
|
+
"name": "punctuation.definition.function.latex"
|
85
|
+
},
|
86
|
+
"4": {
|
87
|
+
"name": "punctuation.definition.arguments.optional.begin.latex"
|
88
|
+
},
|
89
|
+
"5": {
|
90
|
+
"name": "entity.name.section.latex"
|
91
|
+
},
|
92
|
+
"6": {
|
93
|
+
"name": "punctuation.definition.arguments.optional.end.latex"
|
94
|
+
},
|
95
|
+
"7": {
|
96
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
97
|
+
}
|
98
|
+
},
|
99
|
+
"comment": "this works OK with all kinds of crazy stuff as long as section is one line",
|
100
|
+
"contentName": "entity.name.section.latex",
|
101
|
+
"end": "\\}",
|
102
|
+
"endCaptures": {
|
103
|
+
"0": {
|
104
|
+
"name": "punctuation.definition.arguments.end.latex"
|
105
|
+
}
|
106
|
+
},
|
107
|
+
"name": "meta.function.section.$3.latex",
|
108
|
+
"patterns": [
|
109
|
+
{
|
110
|
+
"include": "$self"
|
111
|
+
}
|
112
|
+
]
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"begin": "(^\\s*)?(?=\\\\begin\\{lstlisting\\})",
|
116
|
+
"beginCaptures": {
|
117
|
+
"0": {
|
118
|
+
"name": "punctuation.whitespace.embedded.leading.latex"
|
119
|
+
}
|
120
|
+
},
|
121
|
+
"end": "(?!\\G)(\\s*$\\n?)?",
|
122
|
+
"endCaptures": {
|
123
|
+
"0": {
|
124
|
+
"name": "punctuation.whitespace.embedded.trailing.latex"
|
125
|
+
}
|
126
|
+
},
|
127
|
+
"patterns": [
|
128
|
+
{
|
129
|
+
"begin": "(((\\\\)begin)(\\{)(lstlisting)(\\})(?:(\\[).*(\\]))?(\\s*%\\s*(?i:Java)\\n?))",
|
130
|
+
"captures": {
|
131
|
+
"1": {
|
132
|
+
"name": "meta.function.embedded.latex"
|
133
|
+
},
|
134
|
+
"2": {
|
135
|
+
"name": "support.function.be.latex"
|
136
|
+
},
|
137
|
+
"3": {
|
138
|
+
"name": "punctuation.definition.function.latex"
|
139
|
+
},
|
140
|
+
"4": {
|
141
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
142
|
+
},
|
143
|
+
"5": {
|
144
|
+
"name": "variable.parameter.function.latex"
|
145
|
+
},
|
146
|
+
"6": {
|
147
|
+
"name": "punctuation.definition.arguments.end.latex"
|
148
|
+
},
|
149
|
+
"7": {
|
150
|
+
"name": "punctuation.definition.arguments.optional.begin.latex"
|
151
|
+
},
|
152
|
+
"8": {
|
153
|
+
"name": "punctuation.definition.arguments.optional.end.latex"
|
154
|
+
},
|
155
|
+
"9": {
|
156
|
+
"name": "comment.line.percentage.latex"
|
157
|
+
}
|
158
|
+
},
|
159
|
+
"contentName": "meta.function.embedded.latex",
|
160
|
+
"end": "(((\\\\)end)(\\{)(lstlisting)(\\}))",
|
161
|
+
"name": "meta.embedded.block.java",
|
162
|
+
"patterns": [
|
163
|
+
{
|
164
|
+
"begin": "^(?!\\\\end\\{lstlisting\\})",
|
165
|
+
"end": "(?=\\\\end\\{lstlisting\\})",
|
166
|
+
"name": "source.java",
|
167
|
+
"patterns": [
|
168
|
+
{
|
169
|
+
"include": "source.java"
|
170
|
+
}
|
171
|
+
]
|
172
|
+
}
|
173
|
+
]
|
174
|
+
},
|
175
|
+
{
|
176
|
+
"begin": "(((\\\\)begin)(\\{)(lstlisting)(\\})(?:(\\[).*(\\]))?(\\s*%\\s*(?i:Python)\\n?))",
|
177
|
+
"captures": {
|
178
|
+
"1": {
|
179
|
+
"name": "meta.function.embedded.latex"
|
180
|
+
},
|
181
|
+
"2": {
|
182
|
+
"name": "support.function.be.latex"
|
183
|
+
},
|
184
|
+
"3": {
|
185
|
+
"name": "punctuation.definition.function.latex"
|
186
|
+
},
|
187
|
+
"4": {
|
188
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
189
|
+
},
|
190
|
+
"5": {
|
191
|
+
"name": "variable.parameter.function.latex"
|
192
|
+
},
|
193
|
+
"6": {
|
194
|
+
"name": "punctuation.definition.arguments.end.latex"
|
195
|
+
},
|
196
|
+
"7": {
|
197
|
+
"name": "punctuation.definition.arguments.optional.begin.latex"
|
198
|
+
},
|
199
|
+
"8": {
|
200
|
+
"name": "punctuation.definition.arguments.optional.end.latex"
|
201
|
+
},
|
202
|
+
"9": {
|
203
|
+
"name": "comment.line.percentage.latex"
|
204
|
+
}
|
205
|
+
},
|
206
|
+
"contentName": "meta.function.embedded.latex",
|
207
|
+
"end": "(((\\\\)end)(\\{)(lstlisting)(\\}))",
|
208
|
+
"name": "meta.embedded.block.python",
|
209
|
+
"patterns": [
|
210
|
+
{
|
211
|
+
"begin": "^(?!\\\\end\\{lstlisting\\})",
|
212
|
+
"end": "(?=\\\\end\\{lstlisting\\})",
|
213
|
+
"name": "source.python",
|
214
|
+
"patterns": [
|
215
|
+
{
|
216
|
+
"include": "source.python"
|
217
|
+
}
|
218
|
+
]
|
219
|
+
}
|
220
|
+
]
|
221
|
+
},
|
222
|
+
{
|
223
|
+
"begin": "((\\\\)begin)(\\{)(lstlisting)(\\})(?:(\\[).*(\\]))?(\\s*%.*\\n?)?",
|
224
|
+
"captures": {
|
225
|
+
"1": {
|
226
|
+
"name": "meta.function.embedded.latex"
|
227
|
+
},
|
228
|
+
"2": {
|
229
|
+
"name": "support.function.be.latex"
|
230
|
+
},
|
231
|
+
"3": {
|
232
|
+
"name": "punctuation.definition.function.latex"
|
233
|
+
},
|
234
|
+
"4": {
|
235
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
236
|
+
},
|
237
|
+
"5": {
|
238
|
+
"name": "variable.parameter.function.latex"
|
239
|
+
},
|
240
|
+
"6": {
|
241
|
+
"name": "punctuation.definition.arguments.end.latex"
|
242
|
+
},
|
243
|
+
"7": {
|
244
|
+
"name": "punctuation.definition.arguments.optional.begin.latex"
|
245
|
+
},
|
246
|
+
"8": {
|
247
|
+
"name": "punctuation.definition.arguments.optional.end.latex"
|
248
|
+
},
|
249
|
+
"9": {
|
250
|
+
"name": "comment.line.percentage.latex"
|
251
|
+
}
|
252
|
+
},
|
253
|
+
"contentName": "meta.function.embedded.latex",
|
254
|
+
"end": "(((\\\\)end)(\\{)(lstlisting)(\\}))",
|
255
|
+
"name": "meta.embedded.block.generic"
|
256
|
+
}
|
257
|
+
]
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"begin": "(?:\\s*)((\\\\)begin)(\\{)((?:V|v)erbatim|alltt)(\\})",
|
261
|
+
"captures": {
|
262
|
+
"1": {
|
263
|
+
"name": "support.function.be.latex"
|
264
|
+
},
|
265
|
+
"2": {
|
266
|
+
"name": "punctuation.definition.function.latex"
|
267
|
+
},
|
268
|
+
"3": {
|
269
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
270
|
+
},
|
271
|
+
"4": {
|
272
|
+
"name": "variable.parameter.function.latex"
|
273
|
+
},
|
274
|
+
"5": {
|
275
|
+
"name": "punctuation.definition.arguments.end.latex"
|
276
|
+
}
|
277
|
+
},
|
278
|
+
"contentName": "markup.raw.verbatim.latex",
|
279
|
+
"end": "((\\\\)end)(\\{)(\\4)(\\})",
|
280
|
+
"name": "meta.function.verbatim.latex"
|
281
|
+
},
|
282
|
+
{
|
283
|
+
"captures": {
|
284
|
+
"1": {
|
285
|
+
"name": "support.function.url.latex"
|
286
|
+
},
|
287
|
+
"2": {
|
288
|
+
"name": "punctuation.definition.function.latex"
|
289
|
+
},
|
290
|
+
"3": {
|
291
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
292
|
+
},
|
293
|
+
"4": {
|
294
|
+
"name": "markup.underline.link.latex"
|
295
|
+
},
|
296
|
+
"5": {
|
297
|
+
"name": "punctuation.definition.arguments.end.latex"
|
298
|
+
}
|
299
|
+
},
|
300
|
+
"match": "(?:\\s*)((\\\\)(?:url|href))(\\{)([^}]*)(\\})",
|
301
|
+
"name": "meta.function.link.url.latex"
|
302
|
+
},
|
303
|
+
{
|
304
|
+
"captures": {
|
305
|
+
"1": {
|
306
|
+
"name": "support.function.be.latex"
|
307
|
+
},
|
308
|
+
"2": {
|
309
|
+
"name": "punctuation.definition.function.latex"
|
310
|
+
},
|
311
|
+
"3": {
|
312
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
313
|
+
},
|
314
|
+
"4": {
|
315
|
+
"name": "variable.parameter.function.latex"
|
316
|
+
},
|
317
|
+
"5": {
|
318
|
+
"name": "punctuation.definition.arguments.end.latex"
|
319
|
+
}
|
320
|
+
},
|
321
|
+
"comment": "These two patterns match the \\begin{document} and \\end{document} commands, so that the environment matching pattern following them will ignore those commands.",
|
322
|
+
"match": "(?:\\s*)((\\\\)begin)(\\{)(document)(\\})",
|
323
|
+
"name": "meta.function.begin-document.latex"
|
324
|
+
},
|
325
|
+
{
|
326
|
+
"captures": {
|
327
|
+
"1": {
|
328
|
+
"name": "support.function.be.latex"
|
329
|
+
},
|
330
|
+
"2": {
|
331
|
+
"name": "punctuation.definition.function.latex"
|
332
|
+
},
|
333
|
+
"3": {
|
334
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
335
|
+
},
|
336
|
+
"4": {
|
337
|
+
"name": "variable.parameter.function.latex"
|
338
|
+
},
|
339
|
+
"5": {
|
340
|
+
"name": "punctuation.definition.arguments.end.latex"
|
341
|
+
}
|
342
|
+
},
|
343
|
+
"match": "(?:\\s*)((\\\\)end)(\\{)(document)(\\})",
|
344
|
+
"name": "meta.function.end-document.latex"
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"begin": "(?x)\n\t\t\t\t\t(?:\\s*)\t\t\t\t\t\t\t\t\t\t# Optional whitespace\n\t\t\t\t\t((\\\\)begin)\t\t\t\t\t\t\t\t\t# Marker - Function\n\t\t\t\t\t(\\{)\t\t\t\t\t\t\t\t\t\t# Open Bracket\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t(?:\n\t\t\t\t\t\t\t\talign|equation|eqnarray\t\t\t# Argument\n\t\t\t\t\t\t\t | multline|aligned|alignat\n\t\t\t\t\t\t\t | split|gather|gathered\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t(?:\\*)?\t\t\t\t\t\t\t\t# Optional Unnumbered\n\t\t\t\t\t\t)\n\t\t\t\t\t(\\})\t\t\t\t\t\t\t\t\t\t# Close Bracket\n\t\t\t\t\t(\\s*\\n)?\t\t\t\t# Match to end of line absent of content\n\t\t\t\t",
|
348
|
+
"captures": {
|
349
|
+
"1": {
|
350
|
+
"name": "support.function.be.latex"
|
351
|
+
},
|
352
|
+
"2": {
|
353
|
+
"name": "punctuation.definition.function.latex"
|
354
|
+
},
|
355
|
+
"3": {
|
356
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
357
|
+
},
|
358
|
+
"4": {
|
359
|
+
"name": "variable.parameter.function.latex"
|
360
|
+
},
|
361
|
+
"5": {
|
362
|
+
"name": "punctuation.definition.arguments.end.latex"
|
363
|
+
}
|
364
|
+
},
|
365
|
+
"contentName": "string.other.math.block.environment.latex",
|
366
|
+
"end": "(?x)\n\t\t\t\t\t(?:\\s*)\t\t\t\t\t\t\t\t\t\t# Optional whitespace\n\t\t\t\t\t((\\\\)end)\t\t\t\t\t\t\t\t\t# Marker - Function\n\t\t\t\t\t(\\{)\t\t\t\t\t\t\t\t\t\t# Open Bracket\n\t\t\t\t\t\t(\\4)\t\t\t\t# Previous capture from begin\n\t\t\t\t\t(\\})\t\t\t\t\t\t\t\t\t\t# Close Bracket\n\t\t\t\t\t(?:\\s*\\n)?\t\t\t\t# Match to end of line absent of content\n\t\t\t\t",
|
367
|
+
"name": "meta.function.environment.math.latex",
|
368
|
+
"patterns": [
|
369
|
+
{
|
370
|
+
"include": "$base"
|
371
|
+
}
|
372
|
+
]
|
373
|
+
},
|
374
|
+
{
|
375
|
+
"begin": "(?x)\n\t\t\t\t\t(?:\\s*)\t\t\t\t\t\t\t\t\t\t# Optional whitespace\n\t\t\t\t\t((\\\\)begin)\t\t\t\t\t\t\t\t\t# Marker - Function\n\t\t\t\t\t(\\{)\t\t\t\t\t\t\t\t\t\t# Open Bracket\n\t\t\t\t\t\t(array|tabular[xy*]?)\n\t\t\t\t\t(\\})\t\t\t\t\t\t\t\t\t\t# Close Bracket\n\t\t\t\t\t(\\s*\\n)?\t\t\t\t# Match to end of line absent of content\n\t\t\t\t",
|
376
|
+
"captures": {
|
377
|
+
"1": {
|
378
|
+
"name": "support.function.be.latex"
|
379
|
+
},
|
380
|
+
"2": {
|
381
|
+
"name": "punctuation.definition.function.latex"
|
382
|
+
},
|
383
|
+
"3": {
|
384
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
385
|
+
},
|
386
|
+
"4": {
|
387
|
+
"name": "variable.parameter.function.latex"
|
388
|
+
},
|
389
|
+
"5": {
|
390
|
+
"name": "punctuation.definition.arguments.end.latex"
|
391
|
+
}
|
392
|
+
},
|
393
|
+
"contentName": "meta.data.environment.tabular.latex",
|
394
|
+
"end": "(?x)\n\t\t\t\t\t(?:\\s*)\t\t\t\t\t\t\t\t\t\t# Optional whitespace\n\t\t\t\t\t((\\\\)end)\t\t\t\t\t\t\t\t\t# Marker - Function\n\t\t\t\t\t(\\{)\t\t\t\t\t\t\t\t\t\t# Open Bracket\n\t\t\t\t\t\t(\\4)\t\t\t\t# Previous capture from begin\n\t\t\t\t\t(\\})\t\t\t\t\t\t\t\t\t\t# Close Bracket\n\t\t\t\t\t(?:\\s*\\n)?\t\t\t\t# Match to end of line absent of content\n\t\t\t\t",
|
395
|
+
"name": "meta.function.environment.tabular.latex",
|
396
|
+
"patterns": [
|
397
|
+
{
|
398
|
+
"match": "\\\\\\\\",
|
399
|
+
"name": "punctuation.definition.table.row.latex"
|
400
|
+
},
|
401
|
+
{
|
402
|
+
"begin": "(?:^|(?<=\\\\\\\\))(?!\\\\\\\\|\\s*\\\\end\\{(?:tabular|array))",
|
403
|
+
"end": "(?=\\\\\\\\|\\s*\\\\end\\{(?:tabular|array))",
|
404
|
+
"name": "meta.row.environment.tabular.latex",
|
405
|
+
"patterns": [
|
406
|
+
{
|
407
|
+
"match": "&",
|
408
|
+
"name": "punctuation.definition.table.cell.latex"
|
409
|
+
},
|
410
|
+
{
|
411
|
+
"begin": "(?:^|(?<=&))((?!&|\\\\\\\\|$))",
|
412
|
+
"end": "(?=&|\\\\\\\\|\\s*\\\\end\\{(?:tabular|array))",
|
413
|
+
"name": "meta.cell.environment.tabular.latex",
|
414
|
+
"patterns": [
|
415
|
+
{
|
416
|
+
"include": "$base"
|
417
|
+
}
|
418
|
+
]
|
419
|
+
},
|
420
|
+
{
|
421
|
+
"include": "$base"
|
422
|
+
}
|
423
|
+
]
|
424
|
+
},
|
425
|
+
{
|
426
|
+
"include": "$base"
|
427
|
+
}
|
428
|
+
]
|
429
|
+
},
|
430
|
+
{
|
431
|
+
"begin": "(?:\\s*)((\\\\)begin)(\\{)(itemize|enumerate|description|list)(\\})",
|
432
|
+
"captures": {
|
433
|
+
"1": {
|
434
|
+
"name": "support.function.be.latex"
|
435
|
+
},
|
436
|
+
"2": {
|
437
|
+
"name": "punctuation.definition.function.latex"
|
438
|
+
},
|
439
|
+
"3": {
|
440
|
+
"name": "punctuation.definition.arguments.latex"
|
441
|
+
},
|
442
|
+
"4": {
|
443
|
+
"name": "variable.parameter.function.latex"
|
444
|
+
},
|
445
|
+
"5": {
|
446
|
+
"name": "punctuation.definition.arguments.latex"
|
447
|
+
}
|
448
|
+
},
|
449
|
+
"end": "((\\\\)end)(\\{)(\\4)(\\})(?:\\s*\\n)?",
|
450
|
+
"name": "meta.function.environment.list.latex",
|
451
|
+
"patterns": [
|
452
|
+
{
|
453
|
+
"include": "$base"
|
454
|
+
}
|
455
|
+
]
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"begin": "(?:\\s*)((\\\\)begin)(\\{)(tikzpicture)(\\})",
|
459
|
+
"captures": {
|
460
|
+
"1": {
|
461
|
+
"name": "support.function.be.latex"
|
462
|
+
},
|
463
|
+
"2": {
|
464
|
+
"name": "punctuation.definition.function.latex"
|
465
|
+
},
|
466
|
+
"3": {
|
467
|
+
"name": "punctuation.definition.arguments.latex"
|
468
|
+
},
|
469
|
+
"4": {
|
470
|
+
"name": "variable.parameter.function.latex"
|
471
|
+
},
|
472
|
+
"5": {
|
473
|
+
"name": "punctuation.definition.arguments.latex"
|
474
|
+
}
|
475
|
+
},
|
476
|
+
"end": "((\\\\)end)(\\{)(tikzpicture)(\\})(?:\\s*\\n)?",
|
477
|
+
"name": "meta.function.environment.latex.tikz",
|
478
|
+
"patterns": [
|
479
|
+
{
|
480
|
+
"include": "text.tex.latex"
|
481
|
+
}
|
482
|
+
]
|
483
|
+
},
|
484
|
+
{
|
485
|
+
"begin": "(?:\\s*)((\\\\)begin)(\\{)(\\w+[*]?)(\\})",
|
486
|
+
"captures": {
|
487
|
+
"1": {
|
488
|
+
"name": "support.function.be.latex"
|
489
|
+
},
|
490
|
+
"2": {
|
491
|
+
"name": "punctuation.definition.function.latex"
|
492
|
+
},
|
493
|
+
"3": {
|
494
|
+
"name": "punctuation.definition.arguments.latex"
|
495
|
+
},
|
496
|
+
"4": {
|
497
|
+
"name": "variable.parameter.function.latex"
|
498
|
+
},
|
499
|
+
"5": {
|
500
|
+
"name": "punctuation.definition.arguments.latex"
|
501
|
+
}
|
502
|
+
},
|
503
|
+
"end": "((\\\\)end)(\\{)(\\4)(\\})(?:\\s*\\n)?",
|
504
|
+
"name": "meta.function.environment.general.latex",
|
505
|
+
"patterns": [
|
506
|
+
{
|
507
|
+
"include": "$base"
|
508
|
+
}
|
509
|
+
]
|
510
|
+
},
|
511
|
+
{
|
512
|
+
"captures": {
|
513
|
+
"1": {
|
514
|
+
"name": "punctuation.definition.function.latex"
|
515
|
+
}
|
516
|
+
},
|
517
|
+
"match": "(\\\\)(newcommand|renewcommand)\\b",
|
518
|
+
"name": "storage.type.function.latex"
|
519
|
+
},
|
520
|
+
{
|
521
|
+
"begin": "((\\\\)marginpar)(\\{)",
|
522
|
+
"beginCaptures": {
|
523
|
+
"1": {
|
524
|
+
"name": "support.function.marginpar.latex"
|
525
|
+
},
|
526
|
+
"2": {
|
527
|
+
"name": "punctuation.definition.function.latex"
|
528
|
+
},
|
529
|
+
"3": {
|
530
|
+
"name": "punctuation.definition.marginpar.begin.latex"
|
531
|
+
}
|
532
|
+
},
|
533
|
+
"contentName": "meta.paragraph.margin.latex",
|
534
|
+
"end": "\\}",
|
535
|
+
"endCaptures": {
|
536
|
+
"0": {
|
537
|
+
"name": "punctuation.definition.marginpar.end.latex"
|
538
|
+
}
|
539
|
+
},
|
540
|
+
"patterns": [
|
541
|
+
{
|
542
|
+
"include": "$base"
|
543
|
+
}
|
544
|
+
]
|
545
|
+
},
|
546
|
+
{
|
547
|
+
"begin": "((\\\\)footnote)((?:\\[[^\\[]*?\\])*)(\\{)",
|
548
|
+
"beginCaptures": {
|
549
|
+
"1": {
|
550
|
+
"name": "support.function.footnote.latex"
|
551
|
+
},
|
552
|
+
"2": {
|
553
|
+
"name": "punctuation.definition.function.latex"
|
554
|
+
},
|
555
|
+
"3": {
|
556
|
+
"patterns": [
|
557
|
+
{
|
558
|
+
"captures": {
|
559
|
+
"1": {
|
560
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
561
|
+
},
|
562
|
+
"2": {
|
563
|
+
"name": "variable.parameter.latex"
|
564
|
+
},
|
565
|
+
"3": {
|
566
|
+
"name": "punctuation.definition.arguments.end.latex"
|
567
|
+
}
|
568
|
+
},
|
569
|
+
"match": "(\\[)([^\\[]*?)(\\])"
|
570
|
+
}
|
571
|
+
]
|
572
|
+
},
|
573
|
+
"4": {
|
574
|
+
"name": "punctuation.definition.footnote.begin.latex"
|
575
|
+
}
|
576
|
+
},
|
577
|
+
"contentName": "meta.footnote.latex",
|
578
|
+
"end": "\\}",
|
579
|
+
"endCaptures": {
|
580
|
+
"0": {
|
581
|
+
"name": "punctuation.definition.footnote.end.latex"
|
582
|
+
}
|
583
|
+
},
|
584
|
+
"patterns": [
|
585
|
+
{
|
586
|
+
"include": "$base"
|
587
|
+
}
|
588
|
+
]
|
589
|
+
},
|
590
|
+
{
|
591
|
+
"begin": "((\\\\)emph)(\\{)",
|
592
|
+
"beginCaptures": {
|
593
|
+
"1": {
|
594
|
+
"name": "support.function.emph.latex"
|
595
|
+
},
|
596
|
+
"2": {
|
597
|
+
"name": "punctuation.definition.function.latex"
|
598
|
+
},
|
599
|
+
"3": {
|
600
|
+
"name": "punctuation.definition.emph.begin.latex"
|
601
|
+
}
|
602
|
+
},
|
603
|
+
"contentName": "markup.italic.emph.latex",
|
604
|
+
"end": "\\}",
|
605
|
+
"endCaptures": {
|
606
|
+
"0": {
|
607
|
+
"name": "punctuation.definition.emph.end.latex"
|
608
|
+
}
|
609
|
+
},
|
610
|
+
"name": "meta.function.emph.latex",
|
611
|
+
"patterns": [
|
612
|
+
{
|
613
|
+
"include": "$base"
|
614
|
+
}
|
615
|
+
]
|
616
|
+
},
|
617
|
+
{
|
618
|
+
"begin": "((\\\\)textit)(\\{)",
|
619
|
+
"captures": {
|
620
|
+
"1": {
|
621
|
+
"name": "support.function.textit.latex"
|
622
|
+
},
|
623
|
+
"2": {
|
624
|
+
"name": "punctuation.definition.function.latex"
|
625
|
+
},
|
626
|
+
"3": {
|
627
|
+
"name": "punctuation.definition.textit.begin.latex"
|
628
|
+
}
|
629
|
+
},
|
630
|
+
"comment": "We put the keyword in a capture and name this capture, so that disabling spell checking for “keyword” won't be inherited by the argument to \\textit{...}.\n\nPut specific matches for particular LaTeX keyword.functions before the last two more general functions",
|
631
|
+
"contentName": "markup.italic.textit.latex",
|
632
|
+
"end": "\\}",
|
633
|
+
"endCaptures": {
|
634
|
+
"0": {
|
635
|
+
"name": "punctuation.definition.textit.end.latex"
|
636
|
+
}
|
637
|
+
},
|
638
|
+
"name": "meta.function.textit.latex",
|
639
|
+
"patterns": [
|
640
|
+
{
|
641
|
+
"include": "$base"
|
642
|
+
}
|
643
|
+
]
|
644
|
+
},
|
645
|
+
{
|
646
|
+
"begin": "((\\\\)textbf)(\\{)",
|
647
|
+
"captures": {
|
648
|
+
"1": {
|
649
|
+
"name": "support.function.textbf.latex"
|
650
|
+
},
|
651
|
+
"2": {
|
652
|
+
"name": "punctuation.definition.function.latex"
|
653
|
+
},
|
654
|
+
"3": {
|
655
|
+
"name": "punctuation.definition.textbf.begin.latex"
|
656
|
+
}
|
657
|
+
},
|
658
|
+
"contentName": "markup.bold.textbf.latex",
|
659
|
+
"end": "\\}",
|
660
|
+
"endCaptures": {
|
661
|
+
"0": {
|
662
|
+
"name": "punctuation.definition.textbf.end.latex"
|
663
|
+
}
|
664
|
+
},
|
665
|
+
"name": "meta.function.textbf.latex",
|
666
|
+
"patterns": [
|
667
|
+
{
|
668
|
+
"include": "$base"
|
669
|
+
}
|
670
|
+
]
|
671
|
+
},
|
672
|
+
{
|
673
|
+
"begin": "((\\\\)texttt)(\\{)",
|
674
|
+
"captures": {
|
675
|
+
"1": {
|
676
|
+
"name": "support.function.texttt.latex"
|
677
|
+
},
|
678
|
+
"2": {
|
679
|
+
"name": "punctuation.definition.function.latex"
|
680
|
+
},
|
681
|
+
"3": {
|
682
|
+
"name": "punctuation.definition.texttt.begin.latex"
|
683
|
+
}
|
684
|
+
},
|
685
|
+
"contentName": "markup.raw.texttt.latex",
|
686
|
+
"end": "\\}",
|
687
|
+
"endCaptures": {
|
688
|
+
"0": {
|
689
|
+
"name": "punctuation.definition.texttt.end.latex"
|
690
|
+
}
|
691
|
+
},
|
692
|
+
"name": "meta.function.texttt.latex",
|
693
|
+
"patterns": [
|
694
|
+
{
|
695
|
+
"include": "$base"
|
696
|
+
}
|
697
|
+
]
|
698
|
+
},
|
699
|
+
{
|
700
|
+
"captures": {
|
701
|
+
"0": {
|
702
|
+
"name": "keyword.other.item.latex"
|
703
|
+
},
|
704
|
+
"1": {
|
705
|
+
"name": "punctuation.definition.keyword.latex"
|
706
|
+
}
|
707
|
+
},
|
708
|
+
"match": "(\\\\)item\\b",
|
709
|
+
"name": "meta.scope.item.latex"
|
710
|
+
},
|
711
|
+
{
|
712
|
+
"begin": "(?x)\n\t\t\t\t\t(\n\t\t\t\t\t\t(\\\\)\t\t\t\t\t\t\t\t\t\t# Marker\n\t\t\t\t\t\t(?:auto)?(?:foot)?(?:full)?(?:no)?(?:short)?\t\t# Function Name\n\t\t\t\t\t\t[cC]ite\n\t\t\t\t\t\t(?:al)?(?:t|p|author|year(?:par)?|title)?[ANP]*\n\t\t\t\t\t\t\\*?\t\t\t\t\t\t\t\t\t\t\t# Optional Unabreviated\n\t\t\t\t\t)\n\t\t\t\t\t(?:(\\[)[^\\]]*(\\]))?\t\t\t\t\t\t\t\t# Optional\n\t\t\t\t\t(?:(\\[)[^\\]]*(\\]))?\t\t\t\t\t\t\t\t# Arguments\n\t\t\t\t\t(\\{)\t\t\t\t\t\t\t\t\t\t\t# Opening Bracket\n\t\t\t\t",
|
713
|
+
"captures": {
|
714
|
+
"1": {
|
715
|
+
"name": "keyword.control.cite.latex"
|
716
|
+
},
|
717
|
+
"2": {
|
718
|
+
"name": "punctuation.definition.keyword.latex"
|
719
|
+
},
|
720
|
+
"3": {
|
721
|
+
"name": "punctuation.definition.arguments.optional.begin.latex"
|
722
|
+
},
|
723
|
+
"4": {
|
724
|
+
"name": "punctuation.definition.arguments.optional.end.latex"
|
725
|
+
},
|
726
|
+
"5": {
|
727
|
+
"name": "punctuation.definition.arguments.optional.begin.latex"
|
728
|
+
},
|
729
|
+
"6": {
|
730
|
+
"name": "punctuation.definition.arguments.optional.end.latex"
|
731
|
+
},
|
732
|
+
"7": {
|
733
|
+
"name": "punctuation.definition.arguments.latex"
|
734
|
+
}
|
735
|
+
},
|
736
|
+
"end": "\\}",
|
737
|
+
"endCaptures": {
|
738
|
+
"0": {
|
739
|
+
"name": "punctuation.definition.arguments.latex"
|
740
|
+
}
|
741
|
+
},
|
742
|
+
"name": "meta.citation.latex",
|
743
|
+
"patterns": [
|
744
|
+
{
|
745
|
+
"match": "[\\w:.]+",
|
746
|
+
"name": "constant.other.reference.citation.latex"
|
747
|
+
}
|
748
|
+
]
|
749
|
+
},
|
750
|
+
{
|
751
|
+
"begin": "((\\\\)(?:\\w*[r|R]ef\\*?))(\\{)",
|
752
|
+
"beginCaptures": {
|
753
|
+
"1": {
|
754
|
+
"name": "keyword.control.ref.latex"
|
755
|
+
},
|
756
|
+
"2": {
|
757
|
+
"name": "punctuation.definition.keyword.latex"
|
758
|
+
},
|
759
|
+
"3": {
|
760
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
761
|
+
}
|
762
|
+
},
|
763
|
+
"end": "\\}",
|
764
|
+
"endCaptures": {
|
765
|
+
"0": {
|
766
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
767
|
+
}
|
768
|
+
},
|
769
|
+
"name": "meta.reference.label.latex",
|
770
|
+
"patterns": [
|
771
|
+
{
|
772
|
+
"match": "[a-zA-Z0-9\\.,:/*!^_-]",
|
773
|
+
"name": "constant.other.reference.label.latex"
|
774
|
+
}
|
775
|
+
]
|
776
|
+
},
|
777
|
+
{
|
778
|
+
"begin": "((\\\\)label)(\\{)",
|
779
|
+
"beginCaptures": {
|
780
|
+
"1": {
|
781
|
+
"name": "keyword.control.label.latex"
|
782
|
+
},
|
783
|
+
"2": {
|
784
|
+
"name": "punctuation.definition.keyword.latex"
|
785
|
+
},
|
786
|
+
"3": {
|
787
|
+
"name": "punctuation.definition.arguments.begin.latex"
|
788
|
+
}
|
789
|
+
},
|
790
|
+
"end": "\\}",
|
791
|
+
"endCaptures": {
|
792
|
+
"0": {
|
793
|
+
"name": "punctuation.definition.arguments.end.latex"
|
794
|
+
}
|
795
|
+
},
|
796
|
+
"name": "meta.definition.label.latex",
|
797
|
+
"patterns": [
|
798
|
+
{
|
799
|
+
"match": "[a-zA-Z0-9\\.,:/*!^_-]",
|
800
|
+
"name": "variable.parameter.definition.label.latex"
|
801
|
+
}
|
802
|
+
]
|
803
|
+
},
|
804
|
+
{
|
805
|
+
"begin": "((\\\\)verb[\\*]?)\\s*((\\\\)scantokens)(\\{)",
|
806
|
+
"beginCaptures": {
|
807
|
+
"1": {
|
808
|
+
"name": "support.function.verb.latex"
|
809
|
+
},
|
810
|
+
"2": {
|
811
|
+
"name": "punctuation.definition.function.latex"
|
812
|
+
},
|
813
|
+
"3": {
|
814
|
+
"name": "support.function.verb.latex"
|
815
|
+
},
|
816
|
+
"4": {
|
817
|
+
"name": "punctuation.definition.verb.latex"
|
818
|
+
},
|
819
|
+
"5": {
|
820
|
+
"name": "punctuation.definition.begin.latex"
|
821
|
+
}
|
822
|
+
},
|
823
|
+
"contentName": "markup.raw.verb.latex",
|
824
|
+
"end": "(\\})",
|
825
|
+
"endCaptures": {
|
826
|
+
"1": {
|
827
|
+
"name": "punctuation.definition.end.latex"
|
828
|
+
}
|
829
|
+
},
|
830
|
+
"name": "meta.function.verb.latex",
|
831
|
+
"patterns": [
|
832
|
+
{
|
833
|
+
"include": "$self"
|
834
|
+
}
|
835
|
+
]
|
836
|
+
},
|
837
|
+
{
|
838
|
+
"captures": {
|
839
|
+
"1": {
|
840
|
+
"name": "support.function.verb.latex"
|
841
|
+
},
|
842
|
+
"2": {
|
843
|
+
"name": "punctuation.definition.function.latex"
|
844
|
+
},
|
845
|
+
"3": {
|
846
|
+
"name": "punctuation.definition.verb.latex"
|
847
|
+
},
|
848
|
+
"4": {
|
849
|
+
"name": "markup.raw.verb.latex"
|
850
|
+
},
|
851
|
+
"5": {
|
852
|
+
"name": "punctuation.definition.verb.latex"
|
853
|
+
}
|
854
|
+
},
|
855
|
+
"match": "((\\\\)verb[\\*]?)\\s*((?<=\\s)\\S|[^a-zA-Z])(.*?)(\\3|$)",
|
856
|
+
"name": "meta.function.verb.latex"
|
857
|
+
},
|
858
|
+
{
|
859
|
+
"begin": "\"`",
|
860
|
+
"beginCaptures": {
|
861
|
+
"0": {
|
862
|
+
"name": "punctuation.definition.string.begin.latex"
|
863
|
+
}
|
864
|
+
},
|
865
|
+
"end": "\"'",
|
866
|
+
"endCaptures": {
|
867
|
+
"0": {
|
868
|
+
"name": "punctuation.definition.string.end.latex"
|
869
|
+
}
|
870
|
+
},
|
871
|
+
"name": "string.quoted.double.european.latex",
|
872
|
+
"patterns": [
|
873
|
+
{
|
874
|
+
"include": "$base"
|
875
|
+
}
|
876
|
+
]
|
877
|
+
},
|
878
|
+
{
|
879
|
+
"begin": "``",
|
880
|
+
"beginCaptures": {
|
881
|
+
"0": {
|
882
|
+
"name": "punctuation.definition.string.begin.latex"
|
883
|
+
}
|
884
|
+
},
|
885
|
+
"end": "''|\"",
|
886
|
+
"endCaptures": {
|
887
|
+
"0": {
|
888
|
+
"name": "punctuation.definition.string.end.latex"
|
889
|
+
}
|
890
|
+
},
|
891
|
+
"name": "string.quoted.double.latex",
|
892
|
+
"patterns": [
|
893
|
+
{
|
894
|
+
"include": "$base"
|
895
|
+
}
|
896
|
+
]
|
897
|
+
},
|
898
|
+
{
|
899
|
+
"begin": "\">",
|
900
|
+
"beginCaptures": {
|
901
|
+
"0": {
|
902
|
+
"name": "punctuation.definition.string.begin.latex"
|
903
|
+
}
|
904
|
+
},
|
905
|
+
"end": "\"<",
|
906
|
+
"endCaptures": {
|
907
|
+
"0": {
|
908
|
+
"name": "punctuation.definition.string.end.latex"
|
909
|
+
}
|
910
|
+
},
|
911
|
+
"name": "string.quoted.double.guillemot.latex",
|
912
|
+
"patterns": [
|
913
|
+
{
|
914
|
+
"include": "$base"
|
915
|
+
}
|
916
|
+
]
|
917
|
+
},
|
918
|
+
{
|
919
|
+
"begin": "\"<",
|
920
|
+
"beginCaptures": {
|
921
|
+
"0": {
|
922
|
+
"name": "punctuation.definition.string.begin.latex"
|
923
|
+
}
|
924
|
+
},
|
925
|
+
"end": "\">",
|
926
|
+
"endCaptures": {
|
927
|
+
"0": {
|
928
|
+
"name": "punctuation.definition.string.end.latex"
|
929
|
+
}
|
930
|
+
},
|
931
|
+
"name": "string.quoted.double.guillemot.latex",
|
932
|
+
"patterns": [
|
933
|
+
{
|
934
|
+
"include": "$base"
|
935
|
+
}
|
936
|
+
]
|
937
|
+
},
|
938
|
+
{
|
939
|
+
"begin": "\\\\\\(",
|
940
|
+
"beginCaptures": {
|
941
|
+
"0": {
|
942
|
+
"name": "punctuation.definition.string.begin.latex"
|
943
|
+
}
|
944
|
+
},
|
945
|
+
"end": "\\\\\\)",
|
946
|
+
"endCaptures": {
|
947
|
+
"0": {
|
948
|
+
"name": "punctuation.definition.string.end.latex"
|
949
|
+
}
|
950
|
+
},
|
951
|
+
"name": "string.other.math.latex",
|
952
|
+
"patterns": [
|
953
|
+
{
|
954
|
+
"include": "$base"
|
955
|
+
}
|
956
|
+
]
|
957
|
+
},
|
958
|
+
{
|
959
|
+
"begin": "\\\\\\[",
|
960
|
+
"beginCaptures": {
|
961
|
+
"0": {
|
962
|
+
"name": "punctuation.definition.string.begin.latex"
|
963
|
+
}
|
964
|
+
},
|
965
|
+
"end": "\\\\\\]",
|
966
|
+
"endCaptures": {
|
967
|
+
"0": {
|
968
|
+
"name": "punctuation.definition.string.end.latex"
|
969
|
+
}
|
970
|
+
},
|
971
|
+
"name": "string.other.math.latex",
|
972
|
+
"patterns": [
|
973
|
+
{
|
974
|
+
"include": "$base"
|
975
|
+
}
|
976
|
+
]
|
977
|
+
},
|
978
|
+
{
|
979
|
+
"match": "(?<!\\S)'.*?'",
|
980
|
+
"name": "invalid.illegal.string.quoted.single.latex"
|
981
|
+
},
|
982
|
+
{
|
983
|
+
"match": "(?<!\\S)\".*?\"",
|
984
|
+
"name": "invalid.illegal.string.quoted.double.latex"
|
985
|
+
},
|
986
|
+
{
|
987
|
+
"captures": {
|
988
|
+
"1": {
|
989
|
+
"name": "punctuation.definition.constant.latex"
|
990
|
+
}
|
991
|
+
},
|
992
|
+
"match": "(\\\\)(text(s(terling|ixoldstyle|urd|e(ction|venoldstyle|rvicemark))|yen|n(ineoldstyle|umero|aira)|c(ircledP|o(py(left|right)|lonmonetary)|urrency|e(nt(oldstyle)?|lsius))|t(hree(superior|oldstyle|quarters(emdash)?)|i(ldelow|mes)|w(o(superior|oldstyle)|elveudash)|rademark)|interrobang(down)?|zerooldstyle|o(hm|ne(superior|half|oldstyle|quarter)|penbullet|rd(feminine|masculine))|d(i(scount|ed|v(orced)?)|o(ng|wnarrow|llar(oldstyle)?)|egree|agger(dbl)?|blhyphen(char)?)|uparrow|p(ilcrow|e(so|r(t(housand|enthousand)|iodcentered))|aragraph|m)|e(stimated|ightoldstyle|uro)|quotes(traight(dblbase|base)|ingle)|f(iveoldstyle|ouroldstyle|lorin|ractionsolidus)|won|l(not|ira|e(ftarrow|af)|quill|angle|brackdbl)|a(s(cii(caron|dieresis|acute|grave|macron|breve)|teriskcentered)|cutedbl)|r(ightarrow|e(cipe|ferencemark|gistered)|quill|angle|brackdbl)|g(uarani|ravedbl)|m(ho|inus|u(sicalnote)?|arried)|b(igcircle|orn|ullet|lank|a(ht|rdbl)|rokenbar)))\\b",
|
993
|
+
"name": "constant.character.latex"
|
994
|
+
},
|
995
|
+
{
|
996
|
+
"captures": {
|
997
|
+
"1": {
|
998
|
+
"name": "punctuation.definition.column-specials.begin.latex"
|
999
|
+
},
|
1000
|
+
"2": {
|
1001
|
+
"name": "punctuation.definition.column-specials.end.latex"
|
1002
|
+
}
|
1003
|
+
},
|
1004
|
+
"match": "(?:<|>)(\\{)\\$(\\})",
|
1005
|
+
"name": "meta.column-specials.latex"
|
1006
|
+
},
|
1007
|
+
{
|
1008
|
+
"include": "text.tex"
|
1009
|
+
}
|
1010
|
+
],
|
1011
|
+
"scopeName": "text.tex.latex",
|
1012
|
+
"uuid": "3BEEA00C-6B1D-11D9-B8AD-000D93589AF6"
|
1013
|
+
}
|