PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.6.0
Code Block Pro – Beautiful Syntax Highlighting v1.6.0
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / build / shiki / languages / tex.tmLanguage.json

tex.tmLanguage.json in Code Block Pro – Beautiful Syntax Highlighting 1.6.0, at build/shiki/languages/tex.tmLanguage.json

297 lines 11.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "information_for_contributors": [
3 "This file has been converted from https://github.com/jlelong/vscode-latex-basics/blob/master/syntaxes/TeX.tmLanguage.json",
4 "If you want to provide a fix or improvement, please create a pull request against the original repository.",
5 "Once accepted there, we are happy to receive an update request."
6 ],
7 "version": "https://github.com/jlelong/vscode-latex-basics/commit/8776a0856846b63d9e5765e8ec42a8a2f4f52219",
8 "name": "tex",
9 "scopeName": "text.tex",
10 "patterns": [
11 {
12 "captures": {
13 "1": {
14 "name": "punctuation.definition.keyword.tex"
15 }
16 },
17 "match": "(\\\\)(backmatter|else|fi|frontmatter|mainmatter|if(case|cat|dim|eof|false|hbox|hmode|inner|mmode|num|odd|true|undefined|vbox|vmode|void|x)?)(?![a-zA-Z@])",
18 "name": "keyword.control.tex"
19 },
20 {
21 "captures": {
22 "1": {
23 "name": "keyword.control.catcode.tex"
24 },
25 "2": {
26 "name": "punctuation.definition.keyword.tex"
27 },
28 "3": {
29 "name": "punctuation.separator.key-value.tex"
30 },
31 "4": {
32 "name": "constant.numeric.category.tex"
33 }
34 },
35 "match": "((\\\\)catcode)`(?:\\\\)?.(=)(\\d+)",
36 "name": "meta.catcode.tex"
37 },
38 {
39 "begin": "(^[ \\t]+)?(?=%)",
40 "beginCaptures": {
41 "1": {
42 "name": "punctuation.whitespace.comment.leading.tex"
43 }
44 },
45 "end": "(?!\\G)",
46 "patterns": [
47 {
48 "begin": "%:",
49 "beginCaptures": {
50 "0": {
51 "name": "punctuation.definition.comment.tex"
52 }
53 },
54 "end": "$\\n?",
55 "name": "comment.line.percentage.tex"
56 },
57 {
58 "begin": "^(%!TEX) (\\S*) =",
59 "beginCaptures": {
60 "1": {
61 "name": "punctuation.definition.comment.tex"
62 }
63 },
64 "end": "$\\n?",
65 "name": "comment.line.percentage.directive.tex"
66 },
67 {
68 "begin": "%",
69 "beginCaptures": {
70 "0": {
71 "name": "punctuation.definition.comment.tex"
72 }
73 },
74 "end": "$\\n?",
75 "name": "comment.line.percentage.tex"
76 }
77 ]
78 },
79 {
80 "match": "[\\[\\]]",
81 "name": "punctuation.definition.brackets.tex"
82 },
83 {
84 "begin": "(\\$\\$|\\$)",
85 "beginCaptures": {
86 "1": {
87 "name": "punctuation.definition.string.begin.tex"
88 }
89 },
90 "end": "(\\1)",
91 "endCaptures": {
92 "1": {
93 "name": "punctuation.definition.string.end.tex"
94 }
95 },
96 "name": "meta.math.block.tex support.class.math.block.tex",
97 "patterns": [
98 {
99 "match": "\\\\\\$",
100 "name": "constant.character.escape.tex"
101 },
102 {
103 "include": "#math"
104 },
105 {
106 "include": "$self"
107 }
108 ]
109 },
110 {
111 "match": "\\\\\\\\",
112 "name": "keyword.control.newline.tex"
113 },
114 {
115 "captures": {
116 "1": {
117 "name": "punctuation.definition.function.tex"
118 }
119 },
120 "match": "(\\\\)(?:[A-Za-z@]+|[,;])",
121 "name": "support.function.general.tex"
122 },
123 {
124 "captures": {
125 "1": {
126 "name": "punctuation.definition.keyword.tex"
127 }
128 },
129 "match": "(\\\\)[^a-zA-Z@]",
130 "name": "constant.character.escape.tex"
131 }
132 ],
133 "repository": {
134 "math": {
135 "patterns": [
136 {
137 "begin": "((\\\\)(?:text|mbox))(\\{)",
138 "beginCaptures": {
139 "1": {
140 "name": "constant.other.math.tex"
141 },
142 "2": {
143 "name": "punctuation.definition.function.tex"
144 },
145 "3": {
146 "name": "punctuation.definition.arguments.begin.tex meta.text.normal.tex"
147 }
148 },
149 "contentName": "meta.text.normal.tex",
150 "end": "\\}",
151 "endCaptures": {
152 "0": {
153 "name": "punctuation.definition.arguments.end.tex meta.text.normal.tex"
154 }
155 },
156 "patterns": [
157 {
158 "include": "#math"
159 },
160 {
161 "include": "$base"
162 }
163 ]
164 },
165 {
166 "match": "\\\\{|\\\\}",
167 "name": "punctuation.math.bracket.pair.tex"
168 },
169 {
170 "match": "\\\\(left|right|((big|bigg|Big|Bigg)[lr]?))([\\(\\[\\<\\>\\]\\)\\.\\|]|\\\\[{}|]|\\\\[lr]?[Vv]ert|\\\\[lr]angle)",
171 "name": "punctuation.math.bracket.pair.big.tex"
172 },
173 {
174 "captures": {
175 "1": {
176 "name": "punctuation.definition.constant.math.tex"
177 }
178 },
179 "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|_)",
180 "name": "constant.character.math.tex"
181 },
182 {
183 "captures": {
184 "1": {
185 "name": "punctuation.definition.constant.math.tex"
186 }
187 },
188 "match": "(\\\\)(sum|prod|coprod|int|oint|bigcap|bigcup|bigsqcup|bigvee|bigwedge|bigodot|bigotimes|bogoplus|biguplus)\\b",
189 "name": "constant.character.math.tex"
190 },
191 {
192 "captures": {
193 "1": {
194 "name": "punctuation.definition.constant.math.tex"
195 }
196 },
197 "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",
198 "name": "constant.other.math.tex"
199 },
200 {
201 "begin": "((\\\\)Sexpr(\\{))",
202 "beginCaptures": {
203 "1": {
204 "name": "support.function.sexpr.math.tex"
205 },
206 "2": {
207 "name": "punctuation.definition.function.math.tex"
208 },
209 "3": {
210 "name": "punctuation.section.embedded.begin.math.tex"
211 }
212 },
213 "contentName": "support.function.sexpr.math.tex",
214 "end": "(((\\})))",
215 "endCaptures": {
216 "1": {
217 "name": "support.function.sexpr.math.tex"
218 },
219 "2": {
220 "name": "punctuation.section.embedded.end.math.tex"
221 },
222 "3": {
223 "name": "source.r"
224 }
225 },
226 "name": "meta.embedded.line.r",
227 "patterns": [
228 {
229 "begin": "\\G(?!\\})",
230 "end": "(?=\\})",
231 "name": "source.r",
232 "patterns": [
233 {
234 "include": "source.r"
235 }
236 ]
237 }
238 ]
239 },
240 {
241 "captures": {
242 "1": {
243 "name": "punctuation.definition.constant.math.tex"
244 }
245 },
246 "match": "(\\\\)(?!begin\\{|verb)([A-Za-z]+)",
247 "name": "constant.other.general.math.tex"
248 },
249 {
250 "match": "(?<!\\\\)\\{",
251 "name": "punctuation.math.begin.bracket.curly.tex"
252 },
253 {
254 "match": "(?<!\\\\)\\}",
255 "name": "punctuation.math.end.bracket.curly.tex"
256 },
257 {
258 "match": "(?<!\\\\)\\(",
259 "name": "punctuation.math.begin.bracket.round.tex"
260 },
261 {
262 "match": "(?<!\\\\)\\)",
263 "name": "punctuation.math.end.bracket.round.tex"
264 },
265 {
266 "match": "(([0-9]*[\\.][0-9]+)|[0-9]+)",
267 "name": "constant.numeric.math.tex"
268 },
269 {
270 "match": "[\\+\\*/_\\^-]",
271 "name": "punctuation.math.operator.tex"
272 }
273 ]
274 },
275 "braces": {
276 "begin": "(?<!\\\\)\\{",
277 "beginCaptures": {
278 "0": {
279 "name": "punctuation.group.begin.tex"
280 }
281 },
282 "end": "(?<!\\\\)\\}",
283 "endCaptures": {
284 "0": {
285 "name": "punctuation.group.end.tex"
286 }
287 },
288 "name": "meta.group.braces.tex",
289 "patterns": [
290 {
291 "include": "#braces"
292 }
293 ]
294 }
295 }
296 }
297