PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.27.5
Code Block Pro – Beautiful Syntax Highlighting v1.27.5
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.27.5, at build/shiki/languages/tex.tmLanguage.json

287 lines 11.1 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/69915f318570484ef40ed8798c73c63c58704183",
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|csname|else|endcsname|fi|frontmatter|mainmatter|unless|if(case|cat|csname|defined|dim|eof|false|fontchar|hbox|hmode|inner|mmode|num|odd|true|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 },
69 {
70 "match": "[\\[\\]]",
71 "name": "punctuation.definition.brackets.tex"
72 },
73 {
74 "begin": "(\\$\\$|\\$)",
75 "beginCaptures": {
76 "1": {
77 "name": "punctuation.definition.string.begin.tex"
78 }
79 },
80 "end": "(\\1)",
81 "endCaptures": {
82 "1": {
83 "name": "punctuation.definition.string.end.tex"
84 }
85 },
86 "name": "meta.math.block.tex support.class.math.block.tex",
87 "patterns": [
88 {
89 "match": "\\\\\\$",
90 "name": "constant.character.escape.tex"
91 },
92 {
93 "include": "#math"
94 },
95 {
96 "include": "$self"
97 }
98 ]
99 },
100 {
101 "match": "\\\\\\\\",
102 "name": "keyword.control.newline.tex"
103 },
104 {
105 "captures": {
106 "1": {
107 "name": "punctuation.definition.function.tex"
108 }
109 },
110 "match": "(\\\\)(?:[\\p{Alphabetic}@]+|[,;])",
111 "name": "support.function.general.tex"
112 },
113 {
114 "captures": {
115 "1": {
116 "name": "punctuation.definition.keyword.tex"
117 }
118 },
119 "match": "(\\\\)[^a-zA-Z@]",
120 "name": "constant.character.escape.tex"
121 }
122 ],
123 "repository": {
124 "math": {
125 "patterns": [
126 {
127 "begin": "((\\\\)(?:text|mbox))(\\{)",
128 "beginCaptures": {
129 "1": {
130 "name": "constant.other.math.tex"
131 },
132 "2": {
133 "name": "punctuation.definition.function.tex"
134 },
135 "3": {
136 "name": "punctuation.definition.arguments.begin.tex meta.text.normal.tex"
137 }
138 },
139 "contentName": "meta.text.normal.tex",
140 "end": "\\}",
141 "endCaptures": {
142 "0": {
143 "name": "punctuation.definition.arguments.end.tex meta.text.normal.tex"
144 }
145 },
146 "patterns": [
147 {
148 "include": "#math"
149 },
150 {
151 "include": "$base"
152 }
153 ]
154 },
155 {
156 "match": "\\\\{|\\\\}",
157 "name": "punctuation.math.bracket.pair.tex"
158 },
159 {
160 "match": "\\\\(left|right|((big|bigg|Big|Bigg)[lr]?))([\\(\\[\\<\\>\\]\\)\\.\\|]|\\\\[{}|]|\\\\[lr]?[Vv]ert|\\\\[lr]angle)",
161 "name": "punctuation.math.bracket.pair.big.tex"
162 },
163 {
164 "captures": {
165 "1": {
166 "name": "punctuation.definition.constant.math.tex"
167 }
168 },
169 "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)(?![a-zA-Z@])",
170 "name": "constant.character.math.tex"
171 },
172 {
173 "captures": {
174 "1": {
175 "name": "punctuation.definition.constant.math.tex"
176 }
177 },
178 "match": "(\\\\)(sum|prod|coprod|int|oint|bigcap|bigcup|bigsqcup|bigvee|bigwedge|bigodot|bigotimes|bogoplus|biguplus)\\b",
179 "name": "constant.character.math.tex"
180 },
181 {
182 "captures": {
183 "1": {
184 "name": "punctuation.definition.constant.math.tex"
185 }
186 },
187 "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",
188 "name": "constant.other.math.tex"
189 },
190 {
191 "begin": "((\\\\)Sexpr(\\{))",
192 "beginCaptures": {
193 "1": {
194 "name": "support.function.sexpr.math.tex"
195 },
196 "2": {
197 "name": "punctuation.definition.function.math.tex"
198 },
199 "3": {
200 "name": "punctuation.section.embedded.begin.math.tex"
201 }
202 },
203 "contentName": "support.function.sexpr.math.tex",
204 "end": "(((\\})))",
205 "endCaptures": {
206 "1": {
207 "name": "support.function.sexpr.math.tex"
208 },
209 "2": {
210 "name": "punctuation.section.embedded.end.math.tex"
211 },
212 "3": {
213 "name": "source.r"
214 }
215 },
216 "name": "meta.embedded.line.r",
217 "patterns": [
218 {
219 "begin": "\\G(?!\\})",
220 "end": "(?=\\})",
221 "name": "source.r",
222 "patterns": [
223 {
224 "include": "source.r"
225 }
226 ]
227 }
228 ]
229 },
230 {
231 "captures": {
232 "1": {
233 "name": "punctuation.definition.constant.math.tex"
234 }
235 },
236 "match": "(\\\\)(?!begin\\{|verb)([A-Za-z]+)",
237 "name": "constant.other.general.math.tex"
238 },
239 {
240 "match": "(?<!\\\\)\\{",
241 "name": "punctuation.math.begin.bracket.curly.tex"
242 },
243 {
244 "match": "(?<!\\\\)\\}",
245 "name": "punctuation.math.end.bracket.curly.tex"
246 },
247 {
248 "match": "(?<!\\\\)\\(",
249 "name": "punctuation.math.begin.bracket.round.tex"
250 },
251 {
252 "match": "(?<!\\\\)\\)",
253 "name": "punctuation.math.end.bracket.round.tex"
254 },
255 {
256 "match": "(([0-9]*[\\.][0-9]+)|[0-9]+)",
257 "name": "constant.numeric.math.tex"
258 },
259 {
260 "match": "[\\+\\*/_\\^-]",
261 "name": "punctuation.math.operator.tex"
262 }
263 ]
264 },
265 "braces": {
266 "begin": "(?<!\\\\)\\{",
267 "beginCaptures": {
268 "0": {
269 "name": "punctuation.group.begin.tex"
270 }
271 },
272 "end": "(?<!\\\\)\\}",
273 "endCaptures": {
274 "0": {
275 "name": "punctuation.group.end.tex"
276 }
277 },
278 "name": "meta.group.braces.tex",
279 "patterns": [
280 {
281 "include": "#braces"
282 }
283 ]
284 }
285 }
286 }
287