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

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