@nuxtjs/mdc 0.1.6 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,582 +0,0 @@
1
- const grammar = {
2
- "information_for_contributors": [
3
- "This file has been converted from https://github.com/docusgen/vscode-extension/blob/main/syntaxes/mdc.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/docusgen/vscode-extension/blob/1303abd16342880a42a4d143a660da049c79ea6c/syntaxes/mdc.tmLanguage.json",
8
- "name": "markdown",
9
- "injectionSelector": "L:text.html.markdown",
10
- "scopeName": "text.markdown.mdc",
11
- "patterns": [
12
- {
13
- "include": "text.html.markdown#frontMatter"
14
- },
15
- {
16
- "include": "#component_block"
17
- },
18
- {
19
- "include": "#block"
20
- }
21
- ],
22
- "repository": {
23
- "block": {
24
- "comment": "Same as `text.html.markdown#block`, but without `raw_block`",
25
- "patterns": [
26
- {
27
- "include": "#component_block"
28
- },
29
- {
30
- "include": "text.html.markdown#separator"
31
- },
32
- {
33
- "include": "#heading"
34
- },
35
- {
36
- "include": "#blockquote"
37
- },
38
- {
39
- "include": "#lists"
40
- },
41
- {
42
- "include": "#paragraph"
43
- },
44
- {
45
- "include": "text.html.markdown#fenced_code_block"
46
- },
47
- {
48
- "include": "text.html.markdown#link-def"
49
- },
50
- {
51
- "include": "text.html.markdown#html"
52
- }
53
- ]
54
- },
55
- "inline": {
56
- "patterns": [
57
- {
58
- "include": "#component_inline"
59
- },
60
- {
61
- "include": "#span"
62
- },
63
- {
64
- "include": "#markdown_attributes"
65
- }
66
- ]
67
- },
68
- "markdown_attributes": {
69
- "match": "(?x)([^ ])( # attributes\n ({)\n ([^{]*)\n (})\n )",
70
- "name": "markup.component.attribute",
71
- "captures": {
72
- "4": {
73
- "patterns": [
74
- {
75
- "include": "#attribute"
76
- }
77
- ]
78
- }
79
- }
80
- },
81
- "span": {
82
- "match": "(?x)\n (\\[) # Open\n ([^]]*)\n (\\])\n ( # attributes\n ({)\n ([^{]*)\n (})\n )?",
83
- "name": "markup.component.span",
84
- "captures": {
85
- "2": {
86
- "name": "string.other.link.description.title.markdown"
87
- },
88
- "4": {
89
- "patterns": [
90
- {
91
- "include": "#attributes"
92
- }
93
- ]
94
- }
95
- }
96
- },
97
- "attributes": {
98
- "match": "(?x)( # attributes\n ({)\n ([^{]*)\n (})\n )",
99
- "name": "markup.attributes",
100
- "captures": {
101
- "3": {
102
- "patterns": [
103
- {
104
- "include": "#attribute"
105
- }
106
- ]
107
- }
108
- }
109
- },
110
- "component_inline": {
111
- "match": "(?x)\n (^|\\G|\\s+)\n (:) # component colon\n (?i: # component name\n (\\w[\\w\\d-]*)\n )\n (\n ({[^}]*}) # attributes\n (\\[[^\\]]*\\]?) # slot\n # reverse order\n | (\\[[^\\]]*\\]) # slot\n ({[^}]*})? # attributes\n )?",
112
- "name": "markup.component.inline",
113
- "captures": {
114
- "2": {
115
- "name": "punctuation.definition.tag.start.component"
116
- },
117
- "3": {
118
- "name": "entity.name.tag.component"
119
- },
120
- "5": {
121
- "patterns": [
122
- {
123
- "include": "#attributes"
124
- }
125
- ]
126
- },
127
- "6": {
128
- "patterns": [
129
- {
130
- "include": "#span"
131
- }
132
- ]
133
- },
134
- "7": {
135
- "patterns": [
136
- {
137
- "include": "#span"
138
- }
139
- ]
140
- },
141
- "8": {
142
- "patterns": [
143
- {
144
- "include": "#attributes"
145
- }
146
- ]
147
- }
148
- }
149
- },
150
- "component_block": {
151
- "begin": "(?x)\n (^|\\G)(\\s*)\n (:{2,}) # component colons\n (?i:\n (\\w[\\w\\d-]+) # component name\n ( # folowing spaces or attributes\n \\s*\n | {([^{]*)}\n )\n $\n )",
152
- "name": "markup.component.block",
153
- "end": "(^|\\G)(\\2)(\\3)\\s*$",
154
- "beginCaptures": {
155
- "4": {
156
- "name": "entity.name.tag.component"
157
- },
158
- "5": {
159
- "patterns": [
160
- {
161
- "include": "#attribute"
162
- }
163
- ]
164
- }
165
- },
166
- "patterns": [
167
- {
168
- "include": "#content"
169
- }
170
- ]
171
- },
172
- "content": {
173
- "begin": "(^|\\G)(\\s*)(.*)",
174
- "while": "(^|\\G)(?!\\s*([:]{2,})\\s*$)",
175
- "contentName": "meta.embedded.block.component",
176
- "patterns": [
177
- {
178
- "begin": "(^|\\G)(\\s*)(-{3})(\\s*)$",
179
- "end": "(^|\\G)(\\s*(-{3})(\\s*)$)",
180
- "patterns": [
181
- {
182
- "include": "source.yaml"
183
- }
184
- ]
185
- },
186
- {
187
- "match": "^(\\s*)(#[\\w\\-\\_]*)\\s*(<!--(.*)-->)?$",
188
- "captures": {
189
- "2": {
190
- "name": "entity.other.attribute-name.html"
191
- },
192
- "3": {
193
- "name": "comment.block.html"
194
- }
195
- }
196
- },
197
- {
198
- "comment": "Block Repository created to disable 4-space raw block inside components",
199
- "include": "#block"
200
- }
201
- ]
202
- },
203
- "attribute": {
204
- "patterns": [
205
- {
206
- "match": `(?x)
207
- (
208
- ([^=><\\s]*) # attribute name
209
- ( # attribute value
210
- =["]([^"]*)(["])|[']([^']*)(['])
211
- | =[^\\s'"]*
212
- )?
213
- \\s*
214
- )`,
215
- "captures": {
216
- "2": {
217
- "name": "entity.other.attribute-name.html"
218
- },
219
- "3": {
220
- "patterns": [
221
- {
222
- "include": "#attribute-interior"
223
- }
224
- ]
225
- }
226
- }
227
- }
228
- ]
229
- },
230
- "attribute-interior": {
231
- "comment": "https://github.com/microsoft/vscode/blob/08d59c432609ae9306eb3889815977e93bb548de/extensions/html/syntaxes/html.tmLanguage.json#L376",
232
- "patterns": [
233
- {
234
- "begin": "=",
235
- "beginCaptures": {
236
- "0": {
237
- "name": "punctuation.separator.key-value.html"
238
- }
239
- },
240
- "end": "(?<=[^\\s=])(?!\\s*=)|(?=/?>)",
241
- "patterns": [
242
- {
243
- "match": "([^\\s\"'=<>`/]|/(?!>))+",
244
- "name": "string.unquoted.html"
245
- },
246
- {
247
- "begin": '"',
248
- "beginCaptures": {
249
- "0": {
250
- "name": "punctuation.definition.string.begin.html"
251
- }
252
- },
253
- "end": '"',
254
- "endCaptures": {
255
- "0": {
256
- "name": "punctuation.definition.string.end.html"
257
- }
258
- },
259
- "name": "string.quoted.double.html",
260
- "patterns": [
261
- {
262
- "include": "#entities"
263
- }
264
- ]
265
- },
266
- {
267
- "begin": "'",
268
- "beginCaptures": {
269
- "0": {
270
- "name": "punctuation.definition.string.begin.html"
271
- }
272
- },
273
- "end": "'",
274
- "endCaptures": {
275
- "0": {
276
- "name": "punctuation.definition.string.end.html"
277
- }
278
- },
279
- "name": "string.quoted.single.html",
280
- "patterns": [
281
- {
282
- "include": "#entities"
283
- }
284
- ]
285
- },
286
- {
287
- "match": "=",
288
- "name": "invalid.illegal.unexpected-equals-sign.html"
289
- }
290
- ]
291
- }
292
- ]
293
- },
294
- "entities": {
295
- "comment": "https://github.com/microsoft/vscode/blob/08d59c432609ae9306eb3889815977e93bb548de/extensions/html/syntaxes/html.tmLanguage.json#L532",
296
- "patterns": [
297
- {
298
- "captures": {
299
- "1": {
300
- "name": "punctuation.definition.entity.html"
301
- },
302
- "912": {
303
- "name": "punctuation.definition.entity.html"
304
- }
305
- },
306
- "comment": "Yes this is a bit ridiculous, there are quite a lot of these",
307
- "match": "(?x)\n (&) (?=[a-zA-Z])\n (\n (a(s(ymp(eq)?|cr|t)|n(d(slope|d|v|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a(h|c|d|e|f|a|g|b))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|e|E|acir)?|elig|f(r)?|w(conint|int)|l(pha|e(ph|fsym))|acute|ring|grave|m(p|a(cr|lg))|breve)|A(s(sign|cr)|nd|MP|c(y|irc)|tilde|o(pf|gon)|uml|pplyFunction|fr|Elig|lpha|acute|ring|grave|macr|breve))\n | (B(scr|cy|opf|umpeq|e(cause|ta|rnoullis)|fr|a(ckslash|r(v|wed))|reve)|b(s(cr|im(e)?|ol(hsub|b)?|emi)|n(ot|e(quiv)?)|c(y|ong)|ig(s(tar|qcup)|c(irc|up|ap)|triangle(down|up)|o(times|dot|plus)|uplus|vee|wedge)|o(t(tom)?|pf|wtie|x(h(d|u|D|U)?|times|H(d|u|D|U)?|d(R|l|r|L)|u(R|l|r|L)|plus|D(R|l|r|L)|v(R|h|H|l|r|L)?|U(R|l|r|L)|V(R|h|H|l|r|L)?|minus|box))|Not|dquo|u(ll(et)?|mp(e(q)?|E)?)|prime|e(caus(e)?|t(h|ween|a)|psi|rnou|mptyv)|karow|fr|l(ock|k(1(2|4)|34)|a(nk|ck(square|triangle(down|left|right)?|lozenge)))|a(ck(sim(eq)?|cong|prime|epsilon)|r(vee|wed(ge)?))|r(eve|vbar)|brk(tbrk)?))\n | (c(s(cr|u(p(e)?|b(e)?))|h(cy|i|eck(mark)?)|ylcty|c(irc|ups(sm)?|edil|a(ps|ron))|tdot|ir(scir|c(eq|le(d(R|circ|S|dash|ast)|arrow(left|right)))?|e|fnint|E|mid)?|o(n(int|g(dot)?)|p(y(sr)?|f|rod)|lon(e(q)?)?|m(p(fn|le(xes|ment))?|ma(t)?))|dot|u(darr(l|r)|p(s|c(up|ap)|or|dot|brcap)?|e(sc|pr)|vee|wed|larr(p)?|r(vearrow(left|right)|ly(eq(succ|prec)|vee|wedge)|arr(m)?|ren))|e(nt(erdot)?|dil|mptyv)|fr|w(conint|int)|lubs(uit)?|a(cute|p(s|c(up|ap)|dot|and|brcup)?|r(on|et))|r(oss|arr))|C(scr|hi|c(irc|onint|edil|aron)|ircle(Minus|Times|Dot|Plus)|Hcy|o(n(tourIntegral|int|gruent)|unterClockwiseContourIntegral|p(f|roduct)|lon(e)?)|dot|up(Cap)?|OPY|e(nterDot|dilla)|fr|lo(seCurly(DoubleQuote|Quote)|ckwiseContourIntegral)|a(yleys|cute|p(italDifferentialD)?)|ross))\n | (d(s(c(y|r)|trok|ol)|har(l|r)|c(y|aron)|t(dot|ri(f)?)|i(sin|e|v(ide(ontimes)?|onx)?|am(s|ond(suit)?)?|gamma)|Har|z(cy|igrarr)|o(t(square|plus|eq(dot)?|minus)?|ublebarwedge|pf|wn(harpoon(left|right)|downarrows|arrow)|llar)|d(otseq|a(rr|gger))?|u(har|arr)|jcy|e(lta|g|mptyv)|f(isht|r)|wangle|lc(orn|rop)|a(sh(v)?|leth|rr|gger)|r(c(orn|rop)|bkarow)|b(karow|lac)|Arr)|D(s(cr|trok)|c(y|aron)|Scy|i(fferentialD|a(critical(Grave|Tilde|Do(t|ubleAcute)|Acute)|mond))|o(t(Dot|Equal)?|uble(Right(Tee|Arrow)|ContourIntegral|Do(t|wnArrow)|Up(DownArrow|Arrow)|VerticalBar|L(ong(RightArrow|Left(RightArrow|Arrow))|eft(RightArrow|Tee|Arrow)))|pf|wn(Right(TeeVector|Vector(Bar)?)|Breve|Tee(Arrow)?|arrow|Left(RightVector|TeeVector|Vector(Bar)?)|Arrow(Bar|UpArrow)?))|Zcy|el(ta)?|D(otrahd)?|Jcy|fr|a(shv|rr|gger)))\n | (e(s(cr|im|dot)|n(sp|g)|c(y|ir(c)?|olon|aron)|t(h|a)|o(pf|gon)|dot|u(ro|ml)|p(si(v|lon)?|lus|ar(sl)?)|e|D(ot|Dot)|q(s(im|lant(less|gtr))|c(irc|olon)|u(iv(DD)?|est|als)|vparsl)|f(Dot|r)|l(s(dot)?|inters|l)?|a(ster|cute)|r(Dot|arr)|g(s(dot)?|rave)?|x(cl|ist|p(onentiale|ectation))|m(sp(1(3|4))?|pty(set|v)?|acr))|E(s(cr|im)|c(y|irc|aron)|ta|o(pf|gon)|NG|dot|uml|TH|psilon|qu(ilibrium|al(Tilde)?)|fr|lement|acute|grave|x(ists|ponentialE)|m(pty(SmallSquare|VerySmallSquare)|acr)))\n | (f(scr|nof|cy|ilig|o(pf|r(k(v)?|all))|jlig|partint|emale|f(ilig|l(ig|lig)|r)|l(tns|lig|at)|allingdotseq|r(own|a(sl|c(1(2|8|3|4|5|6)|78|2(3|5)|3(8|4|5)|45|5(8|6)))))|F(scr|cy|illed(SmallSquare|VerySmallSquare)|o(uriertrf|pf|rAll)|fr))\n | (G(scr|c(y|irc|edil)|t|opf|dot|T|Jcy|fr|amma(d)?|reater(Greater|SlantEqual|Tilde|Equal(Less)?|FullEqual|Less)|g|breve)|g(s(cr|im(e|l)?)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|irc)|t(c(c|ir)|dot|quest|lPar|r(sim|dot|eq(qless|less)|less|a(pprox|rr)))?|imel|opf|dot|jcy|e(s(cc|dot(o(l)?)?|l(es)?)?|q(slant|q)?|l)?|v(nE|ertneqq)|fr|E(l)?|l(j|E|a)?|a(cute|p|mma(d)?)|rave|g(g)?|breve))\n | (h(s(cr|trok|lash)|y(phen|bull)|circ|o(ok(leftarrow|rightarrow)|pf|arr|rbar|mtht)|e(llip|arts(uit)?|rcon)|ks(earow|warow)|fr|a(irsp|lf|r(dcy|r(cir|w)?)|milt)|bar|Arr)|H(s(cr|trok)|circ|ilbertSpace|o(pf|rizontalLine)|ump(DownHump|Equal)|fr|a(cek|t)|ARDcy))\n | (i(s(cr|in(s(v)?|dot|v|E)?)|n(care|t(cal|prod|e(rcal|gers)|larhk)?|odot|fin(tie)?)?|c(y|irc)?|t(ilde)?|i(nfin|i(nt|int)|ota)?|o(cy|ta|pf|gon)|u(kcy|ml)|jlig|prod|e(cy|xcl)|quest|f(f|r)|acute|grave|m(of|ped|a(cr|th|g(part|e|line))))|I(scr|n(t(e(rsection|gral))?|visible(Comma|Times))|c(y|irc)|tilde|o(ta|pf|gon)|dot|u(kcy|ml)|Ocy|Jlig|fr|Ecy|acute|grave|m(plies|a(cr|ginaryI))?))\n | (j(s(cr|ercy)|c(y|irc)|opf|ukcy|fr|math)|J(s(cr|ercy)|c(y|irc)|opf|ukcy|fr))\n | (k(scr|hcy|c(y|edil)|opf|jcy|fr|appa(v)?|green)|K(scr|c(y|edil)|Hcy|opf|Jcy|fr|appa))\n | (l(s(h|cr|trok|im(e|g)?|q(uo(r)?|b)|aquo)|h(ar(d|u(l)?)|blk)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|ub|e(il|dil)|aron)|Barr|t(hree|c(c|ir)|imes|dot|quest|larr|r(i(e|f)?|Par))?|Har|o(ng(left(arrow|rightarrow)|rightarrow|mapsto)|times|z(enge|f)?|oparrow(left|right)|p(f|lus|ar)|w(ast|bar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|r(dhar|ushar))|ur(dshar|uhar)|jcy|par(lt)?|e(s(s(sim|dot|eq(qgtr|gtr)|approx|gtr)|cc|dot(o(r)?)?|g(es)?)?|q(slant|q)?|ft(harpoon(down|up)|threetimes|leftarrows|arrow(tail)?|right(squigarrow|harpoons|arrow(s)?))|g)?|v(nE|ertneqq)|f(isht|loor|r)|E(g)?|l(hard|corner|tri|arr)?|a(ng(d|le)?|cute|t(e(s)?|ail)?|p|emptyv|quo|rr(sim|hk|tl|pl|fs|lp|b(fs)?)?|gran|mbda)|r(har(d)?|corner|tri|arr|m)|g(E)?|m(idot|oust(ache)?)|b(arr|r(k(sl(d|u)|e)|ac(e|k))|brk)|A(tail|arr|rr))|L(s(h|cr|trok)|c(y|edil|aron)|t|o(ng(RightArrow|left(arrow|rightarrow)|rightarrow|Left(RightArrow|Arrow))|pf|wer(RightArrow|LeftArrow))|T|e(ss(Greater|SlantEqual|Tilde|EqualGreater|FullEqual|Less)|ft(Right(Vector|Arrow)|Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|rightarrow|Floor|A(ngleBracket|rrow(RightArrow|Bar)?)))|Jcy|fr|l(eftarrow)?|a(ng|cute|placetrf|rr|mbda)|midot))\n | (M(scr|cy|inusPlus|opf|u|e(diumSpace|llintrf)|fr|ap)|m(s(cr|tpos)|ho|nplus|c(y|omma)|i(nus(d(u)?|b)?|cro|d(cir|dot|ast)?)|o(dels|pf)|dash|u(ltimap|map)?|p|easuredangle|DDot|fr|l(cp|dr)|a(cr|p(sto(down|up|left)?)?|l(t(ese)?|e)|rker)))\n | (n(s(hort(parallel|mid)|c(cue|e|r)?|im(e(q)?)?|u(cc(eq)?|p(set(eq(q)?)?|e|E)?|b(set(eq(q)?)?|e|E)?)|par|qsu(pe|be)|mid)|Rightarrow|h(par|arr|Arr)|G(t(v)?|g)|c(y|ong(dot)?|up|edil|a(p|ron))|t(ilde|lg|riangle(left(eq)?|right(eq)?)|gl)|i(s(d)?|v)?|o(t(ni(v(c|a|b))?|in(dot|v(c|a|b)|E)?)?|pf)|dash|u(m(sp|ero)?)?|jcy|p(olint|ar(sl|t|allel)?|r(cue|e(c(eq)?)?)?)|e(s(im|ear)|dot|quiv|ar(hk|r(ow)?)|xist(s)?|Arr)?|v(sim|infin|Harr|dash|Dash|l(t(rie)?|e|Arr)|ap|r(trie|Arr)|g(t|e))|fr|w(near|ar(hk|r(ow)?)|Arr)|V(dash|Dash)|l(sim|t(ri(e)?)?|dr|e(s(s)?|q(slant|q)?|ft(arrow|rightarrow))?|E|arr|Arr)|a(ng|cute|tur(al(s)?)?|p(id|os|prox|E)?|bla)|r(tri(e)?|ightarrow|arr(c|w)?|Arr)|g(sim|t(r)?|e(s|q(slant|q)?)?|E)|mid|L(t(v)?|eft(arrow|rightarrow)|l)|b(sp|ump(e)?))|N(scr|c(y|edil|aron)|tilde|o(nBreakingSpace|Break|t(R(ightTriangle(Bar|Equal)?|everseElement)|Greater(Greater|SlantEqual|Tilde|Equal|FullEqual|Less)?|S(u(cceeds(SlantEqual|Tilde|Equal)?|perset(Equal)?|bset(Equal)?)|quareSu(perset(Equal)?|bset(Equal)?))|Hump(DownHump|Equal)|Nested(GreaterGreater|LessLess)|C(ongruent|upCap)|Tilde(Tilde|Equal|FullEqual)?|DoubleVerticalBar|Precedes(SlantEqual|Equal)?|E(qual(Tilde)?|lement|xists)|VerticalBar|Le(ss(Greater|SlantEqual|Tilde|Equal|Less)?|ftTriangle(Bar|Equal)?))?|pf)|u|e(sted(GreaterGreater|LessLess)|wLine|gative(MediumSpace|Thi(nSpace|ckSpace)|VeryThinSpace))|Jcy|fr|acute))\n | (o(s(cr|ol|lash)|h(m|bar)|c(y|ir(c)?)|ti(lde|mes(as)?)|S|int|opf|d(sold|iv|ot|ash|blac)|uml|p(erp|lus|ar)|elig|vbar|f(cir|r)|l(c(ir|ross)|t|ine|arr)|a(st|cute)|r(slope|igof|or|d(er(of)?|f|m)?|v|arr)?|g(t|on|rave)|m(i(nus|cron|d)|ega|acr))|O(s(cr|lash)|c(y|irc)|ti(lde|mes)|opf|dblac|uml|penCurly(DoubleQuote|Quote)|ver(B(ar|rac(e|ket))|Parenthesis)|fr|Elig|acute|r|grave|m(icron|ega|acr)))\n | (p(s(cr|i)|h(i(v)?|one|mmat)|cy|i(tchfork|v)?|o(intint|und|pf)|uncsp|er(cnt|tenk|iod|p|mil)|fr|l(us(sim|cir|two|d(o|u)|e|acir|mn|b)?|an(ck(h)?|kv))|ar(s(im|l)|t|a(llel)?)?|r(sim|n(sim|E|ap)|cue|ime(s)?|o(d|p(to)?|f(surf|line|alar))|urel|e(c(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?)?|E|ap)?|m)|P(s(cr|i)|hi|cy|i|o(incareplane|pf)|fr|lusMinus|artialD|r(ime|o(duct|portion(al)?)|ecedes(SlantEqual|Tilde|Equal)?)?))\n | (q(scr|int|opf|u(ot|est(eq)?|at(int|ernions))|prime|fr)|Q(scr|opf|UOT|fr))\n | (R(s(h|cr)|ho|c(y|edil|aron)|Barr|ight(Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|Floor|A(ngleBracket|rrow(Bar|LeftArrow)?))|o(undImplies|pf)|uleDelayed|e(verse(UpEquilibrium|E(quilibrium|lement)))?|fr|EG|a(ng|cute|rr(tl)?)|rightarrow)|r(s(h|cr|q(uo(r)?|b)|aquo)|h(o(v)?|ar(d|u(l)?))|nmid|c(y|ub|e(il|dil)|aron)|Barr|t(hree|imes|ri(e|f|ltri)?)|i(singdotseq|ng|ght(squigarrow|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(tail)?|rightarrows))|Har|o(times|p(f|lus|ar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|ldhar)|uluhar|p(polint|ar(gt)?)|e(ct|al(s|ine|part)?|g)|f(isht|loor|r)|l(har|arr|m)|a(ng(d|e|le)?|c(ute|e)|t(io(nals)?|ail)|dic|emptyv|quo|rr(sim|hk|c|tl|pl|fs|w|lp|ap|b(fs)?)?)|rarr|x|moust(ache)?|b(arr|r(k(sl(d|u)|e)|ac(e|k))|brk)|A(tail|arr|rr)))\n | (s(s(cr|tarf|etmn|mile)|h(y|c(hcy|y)|ort(parallel|mid)|arp)|c(sim|y|n(sim|E|ap)|cue|irc|polint|e(dil)?|E|a(p|ron))?|t(ar(f)?|r(ns|aight(phi|epsilon)))|i(gma(v|f)?|m(ne|dot|plus|e(q)?|l(E)?|rarr|g(E)?)?)|zlig|o(pf|ftcy|l(b(ar)?)?)|dot(e|b)?|u(ng|cc(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?|p(s(im|u(p|b)|et(neq(q)?|eq(q)?)?)|hs(ol|ub)|1|n(e|E)|2|d(sub|ot)|3|plus|e(dot)?|E|larr|mult)?|m|b(s(im|u(p|b)|et(neq(q)?|eq(q)?)?)|n(e|E)|dot|plus|e(dot)?|E|rarr|mult)?)|pa(des(uit)?|r)|e(swar|ct|tm(n|inus)|ar(hk|r(ow)?)|xt|mi|Arr)|q(su(p(set(eq)?|e)?|b(set(eq)?|e)?)|c(up(s)?|ap(s)?)|u(f|ar(e|f))?)|fr(own)?|w(nwar|ar(hk|r(ow)?)|Arr)|larr|acute|rarr|m(t(e(s)?)?|i(d|le)|eparsl|a(shp|llsetminus))|bquo)|S(scr|hort(RightArrow|DownArrow|UpArrow|LeftArrow)|c(y|irc|edil|aron)?|tar|igma|H(cy|CHcy)|opf|u(c(hThat|ceeds(SlantEqual|Tilde|Equal)?)|p(set|erset(Equal)?)?|m|b(set(Equal)?)?)|OFTcy|q(uare(Su(perset(Equal)?|bset(Equal)?)|Intersection|Union)?|rt)|fr|acute|mallCircle))\n | (t(s(hcy|c(y|r)|trok)|h(i(nsp|ck(sim|approx))|orn|e(ta(sym|v)?|re(4|fore))|k(sim|ap))|c(y|edil|aron)|i(nt|lde|mes(d|b(ar)?)?)|o(sa|p(cir|f(ork)?|bot)?|ea)|dot|prime|elrec|fr|w(ixt|ohead(leftarrow|rightarrow))|a(u|rget)|r(i(sb|time|dot|plus|e|angle(down|q|left(eq)?|right(eq)?)?|minus)|pezium|ade)|brk)|T(s(cr|trok)|RADE|h(i(nSpace|ckSpace)|e(ta|refore))|c(y|edil|aron)|S(cy|Hcy)|ilde(Tilde|Equal|FullEqual)?|HORN|opf|fr|a(u|b)|ripleDot))\n | (u(scr|h(ar(l|r)|blk)|c(y|irc)|t(ilde|dot|ri(f)?)|Har|o(pf|gon)|d(har|arr|blac)|u(arr|ml)|p(si(h|lon)?|harpoon(left|right)|downarrow|uparrows|lus|arrow)|f(isht|r)|wangle|l(c(orn(er)?|rop)|tri)|a(cute|rr)|r(c(orn(er)?|rop)|tri|ing)|grave|m(l|acr)|br(cy|eve)|Arr)|U(scr|n(ion(Plus)?|der(B(ar|rac(e|ket))|Parenthesis))|c(y|irc)|tilde|o(pf|gon)|dblac|uml|p(si(lon)?|downarrow|Tee(Arrow)?|per(RightArrow|LeftArrow)|DownArrow|Equilibrium|arrow|Arrow(Bar|DownArrow)?)|fr|a(cute|rr(ocir)?)|ring|grave|macr|br(cy|eve)))\n | (v(s(cr|u(pn(e|E)|bn(e|E)))|nsu(p|b)|cy|Bar(v)?|zigzag|opf|dash|prop|e(e(eq|bar)?|llip|r(t|bar))|Dash|fr|ltri|a(ngrt|r(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|t(heta|riangle(left|right))|p(hi|i|ropto)|epsilon|kappa|r(ho)?))|rtri|Arr)|V(scr|cy|opf|dash(l)?|e(e|r(yThinSpace|t(ical(Bar|Separator|Tilde|Line))?|bar))|Dash|vdash|fr|bar))\n | (w(scr|circ|opf|p|e(ierp|d(ge(q)?|bar))|fr|r(eath)?)|W(scr|circ|opf|edge|fr))\n | (X(scr|i|opf|fr)|x(s(cr|qcup)|h(arr|Arr)|nis|c(irc|up|ap)|i|o(time|dot|p(f|lus))|dtri|u(tri|plus)|vee|fr|wedge|l(arr|Arr)|r(arr|Arr)|map))\n | (y(scr|c(y|irc)|icy|opf|u(cy|ml)|en|fr|ac(y|ute))|Y(scr|c(y|irc)|opf|uml|Icy|Ucy|fr|acute|Acy))\n | (z(scr|hcy|c(y|aron)|igrarr|opf|dot|e(ta|etrf)|fr|w(nj|j)|acute)|Z(scr|c(y|aron)|Hcy|opf|dot|e(ta|roWidthSpace)|fr|acute))\n )\n (;)\n ",
308
- "name": "constant.character.entity.named.$2.html"
309
- },
310
- {
311
- "captures": {
312
- "1": {
313
- "name": "punctuation.definition.entity.html"
314
- },
315
- "3": {
316
- "name": "punctuation.definition.entity.html"
317
- }
318
- },
319
- "match": "(&)#[0-9]+(;)",
320
- "name": "constant.character.entity.numeric.decimal.html"
321
- },
322
- {
323
- "captures": {
324
- "1": {
325
- "name": "punctuation.definition.entity.html"
326
- },
327
- "3": {
328
- "name": "punctuation.definition.entity.html"
329
- }
330
- },
331
- "match": "(&)#[xX][0-9a-fA-F]+(;)",
332
- "name": "constant.character.entity.numeric.hexadecimal.html"
333
- },
334
- {
335
- "match": "&(?=[a-zA-Z0-9]+;)",
336
- "name": "invalid.illegal.ambiguous-ampersand.html"
337
- }
338
- ]
339
- },
340
- "heading": {
341
- "match": "(?:^|\\G)[ ]*(#{1,6}\\s+(.*?)(\\s+#{1,6})?\\s*)$",
342
- "captures": {
343
- "1": {
344
- "patterns": [
345
- {
346
- "match": "(#{6})\\s+(.*?)(?:\\s+(#+))?\\s*$",
347
- "name": "heading.6.markdown",
348
- "captures": {
349
- "1": {
350
- "name": "punctuation.definition.heading.markdown"
351
- },
352
- "2": {
353
- "name": "entity.name.section.markdown",
354
- "patterns": [
355
- {
356
- "include": "text.html.markdown#inline"
357
- },
358
- {
359
- "include": "text.html.derivative"
360
- }
361
- ]
362
- },
363
- "3": {
364
- "name": "punctuation.definition.heading.markdown"
365
- }
366
- }
367
- },
368
- {
369
- "match": "(#{5})\\s+(.*?)(?:\\s+(#+))?\\s*$",
370
- "name": "heading.5.markdown",
371
- "captures": {
372
- "1": {
373
- "name": "punctuation.definition.heading.markdown"
374
- },
375
- "2": {
376
- "name": "entity.name.section.markdown",
377
- "patterns": [
378
- {
379
- "include": "text.html.markdown#inline"
380
- },
381
- {
382
- "include": "text.html.derivative"
383
- }
384
- ]
385
- },
386
- "3": {
387
- "name": "punctuation.definition.heading.markdown"
388
- }
389
- }
390
- },
391
- {
392
- "match": "(#{4})\\s+(.*?)(?:\\s+(#+))?\\s*$",
393
- "name": "heading.4.markdown",
394
- "captures": {
395
- "1": {
396
- "name": "punctuation.definition.heading.markdown"
397
- },
398
- "2": {
399
- "name": "entity.name.section.markdown",
400
- "patterns": [
401
- {
402
- "include": "text.html.markdown#inline"
403
- },
404
- {
405
- "include": "text.html.derivative"
406
- }
407
- ]
408
- },
409
- "3": {
410
- "name": "punctuation.definition.heading.markdown"
411
- }
412
- }
413
- },
414
- {
415
- "match": "(#{3})\\s+(.*?)(?:\\s+(#+))?\\s*$",
416
- "name": "heading.3.markdown",
417
- "captures": {
418
- "1": {
419
- "name": "punctuation.definition.heading.markdown"
420
- },
421
- "2": {
422
- "name": "entity.name.section.markdown",
423
- "patterns": [
424
- {
425
- "include": "text.html.markdown#inline"
426
- },
427
- {
428
- "include": "text.html.derivative"
429
- }
430
- ]
431
- },
432
- "3": {
433
- "name": "punctuation.definition.heading.markdown"
434
- }
435
- }
436
- },
437
- {
438
- "match": "(#{2})\\s+(.*?)(?:\\s+(#+))?\\s*$",
439
- "name": "heading.2.markdown",
440
- "captures": {
441
- "1": {
442
- "name": "punctuation.definition.heading.markdown"
443
- },
444
- "2": {
445
- "name": "entity.name.section.markdown",
446
- "patterns": [
447
- {
448
- "include": "text.html.markdown#inline"
449
- },
450
- {
451
- "include": "text.html.derivative"
452
- }
453
- ]
454
- },
455
- "3": {
456
- "name": "punctuation.definition.heading.markdown"
457
- }
458
- }
459
- },
460
- {
461
- "match": "(#{1})\\s+(.*?)(?:\\s+(#+))?\\s*$",
462
- "name": "heading.1.markdown",
463
- "captures": {
464
- "1": {
465
- "name": "punctuation.definition.heading.markdown"
466
- },
467
- "2": {
468
- "name": "entity.name.section.markdown",
469
- "patterns": [
470
- {
471
- "include": "text.html.markdown#inline"
472
- },
473
- {
474
- "include": "text.html.derivative"
475
- }
476
- ]
477
- },
478
- "3": {
479
- "name": "punctuation.definition.heading.markdown"
480
- }
481
- }
482
- }
483
- ]
484
- }
485
- },
486
- "name": "markup.heading.markdown",
487
- "patterns": [
488
- {
489
- "include": "text.html.markdown#inline"
490
- }
491
- ]
492
- },
493
- "heading-setext": {
494
- "patterns": [
495
- {
496
- "match": "^(={3,})(?=[ \\t]*$\\n?)",
497
- "name": "markup.heading.setext.1.markdown"
498
- },
499
- {
500
- "match": "^(-{3,})(?=[ \\t]*$\\n?)",
501
- "name": "markup.heading.setext.2.markdown"
502
- }
503
- ]
504
- },
505
- "lists": {
506
- "patterns": [
507
- {
508
- "begin": "(^|\\G)([ ]*)([*+-])([ \\t])",
509
- "beginCaptures": {
510
- "3": {
511
- "name": "punctuation.definition.list.begin.markdown"
512
- }
513
- },
514
- "comment": "Currently does not support un-indented second lines.",
515
- "name": "markup.list.unnumbered.markdown",
516
- "patterns": [
517
- {
518
- "include": "#block"
519
- },
520
- {
521
- "include": "text.html.markdown#list_paragraph"
522
- }
523
- ],
524
- "while": "((^|\\G)([ ]*|\\t))|(^[ \\t]*$)"
525
- },
526
- {
527
- "begin": "(^|\\G)([ ]*)([0-9]+\\.)([ \\t])",
528
- "beginCaptures": {
529
- "3": {
530
- "name": "punctuation.definition.list.begin.markdown"
531
- }
532
- },
533
- "name": "markup.list.numbered.markdown",
534
- "patterns": [
535
- {
536
- "include": "#block"
537
- },
538
- {
539
- "include": "text.html.markdown#list_paragraph"
540
- }
541
- ],
542
- "while": "((^|\\G)([ ]*|\\t))|(^[ \\t]*$)"
543
- }
544
- ]
545
- },
546
- "paragraph": {
547
- "begin": "(^|\\G)[ ]*(?=\\S)",
548
- "name": "meta.paragraph.markdown",
549
- "patterns": [
550
- {
551
- "include": "#inline"
552
- },
553
- {
554
- "include": "text.html.markdown#inline"
555
- },
556
- {
557
- "include": "text.html.derivative"
558
- },
559
- {
560
- "include": "#heading-setext"
561
- }
562
- ],
563
- "while": "(^|\\G)((?=\\s*[-=]{3,}\\s*$)|[ ]{4,}(?=\\S))"
564
- },
565
- "blockquote": {
566
- "begin": "(^|\\G)[ ]*(>) ?",
567
- "captures": {
568
- "2": {
569
- "name": "punctuation.definition.quote.begin.markdown"
570
- }
571
- },
572
- "name": "markup.quote.markdown",
573
- "patterns": [
574
- {
575
- "include": "#block"
576
- }
577
- ],
578
- "while": "(^|\\G)\\s*(>) ?"
579
- }
580
- }
581
- };
582
- export default grammar;