form-imagining 0.0.92-beta1 → 0.0.92-beta2
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.
- package/dist/App-DZeeXrAi.js +32 -0
- package/dist/Area-BHKEscV-.js +4 -0
- package/dist/Bar--Tn_i50U.js +4 -0
- package/dist/ChartsArea-0wrqHfos.js +4 -0
- package/dist/ChartsBar-De3wqxB9.js +4 -0
- package/dist/ChartsPie-M9v47a1y.js +4 -0
- package/dist/CheckBoxModel-DL90UDdw.js +4 -0
- package/dist/Col-DAuf-D27.js +4 -0
- package/dist/Collapse-D1wtVr4J.js +4 -0
- package/dist/CommonText copy-CnTaynHd.js +189 -0
- package/dist/Demo-B3jXn-Wm.js +201 -0
- package/dist/Demo-DCuaQcE7.js +72 -0
- package/dist/FView-D5njXTYr.js +4 -0
- package/dist/FX-Ds_RTNfB.js +4 -0
- package/dist/FormGridCopy-BhNEuN_v.js +168 -0
- package/dist/FormImagining-DPQkYBgj.js +9 -0
- package/dist/GenerateForm-Bc_gKUhp.js +4 -0
- package/dist/GenerateReport-MBi8bZl7.js +4 -0
- package/dist/HelloWorld-ozWUgTPI.js +9 -0
- package/dist/Input-/345/210/240/351/231/244-BSy1dpR9.js +87 -0
- package/dist/Label-/345/210/240/351/231/244-BlmENKyQ.js +92 -0
- package/dist/LabelModel-BAM6G3Ie.js +4 -0
- package/dist/Login-lb3t6gnq.js +9 -0
- package/dist/Pie-Bdwe3wcU.js +4 -0
- package/dist/PropertyIndex-DgQ24KcZ.js +4 -0
- package/dist/RView-CCm2BHv0.js +4 -0
- package/dist/SqlModule-DTW0tMR7.js +4 -0
- package/dist/SvgIconCopy-Bmi1qbTC.js +39 -0
- package/dist/TableBtnModal-r-13ZsI9.js +4 -0
- package/dist/TextModel-aT7LooUr.js +9 -0
- package/dist/childForm-BglEql5G.js +4 -0
- package/dist/cssMode-SsosamS5.js +1577 -0
- package/dist/form-imagining.js +1 -1
- package/dist/form-imagining.umd.cjs +3 -3
- package/dist/formTest-DdIjfGpu.js +19 -0
- package/dist/freemarker2-CcHBBlpf.js +995 -0
- package/dist/handlebars-DfcmDcw8.js +425 -0
- package/dist/html-CKJuyuep.js +314 -0
- package/dist/htmlMode-BWiO4pRY.js +1587 -0
- package/dist/index - /345/211/257/346/234/254-UCuyvE6m.js" +531 -0
- package/dist/index-B62shk7i.js +11 -0
- package/dist/index-BpyIDAPw.js +3323 -0
- package/dist/index-Ctpjp4rq.js +36 -0
- package/dist/index-wY48_10N.js +300162 -0
- package/dist/javascript-CPCjva_r.js +76 -0
- package/dist/jsonMode-BlL2u-dx.js +2002 -0
- package/dist/liquid-D3Ero-K5.js +246 -0
- package/dist/mdx-9y_7F0Bo.js +171 -0
- package/dist/python-CZaLu6bh.js +307 -0
- package/dist/razor-Bnmmlnh_.js +556 -0
- package/dist/style.css +1 -1
- package/dist/tableSelectDemo-DsTljq6I.js +134 -0
- package/dist/tableSelectDemo2-BaV81cyf.js +108 -0
- package/dist/tsMode-BMfmnceI.js +895 -0
- package/dist/typescript-BN1BF4_9.js +349 -0
- package/dist/xml-CSQLleJF.js +101 -0
- package/dist/yaml-DxoitMTx.js +212 -0
- package/package.json +1 -1
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { aq as l } from "./index-wY48_10N.js";
|
|
2
|
+
/*!-----------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
5
|
+
* Released under the MIT license
|
|
6
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
7
|
+
*-----------------------------------------------------------------------------*/
|
|
8
|
+
var d = Object.defineProperty, s = Object.getOwnPropertyDescriptor, c = Object.getOwnPropertyNames, u = Object.prototype.hasOwnProperty, m = (t, e, r, n) => {
|
|
9
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
10
|
+
for (let i of c(e))
|
|
11
|
+
!u.call(t, i) && i !== r && d(t, i, { get: () => e[i], enumerable: !(n = s(e, i)) || n.enumerable });
|
|
12
|
+
return t;
|
|
13
|
+
}, p = (t, e, r) => (m(t, e, "default"), r), o = {};
|
|
14
|
+
p(o, l);
|
|
15
|
+
var a = [
|
|
16
|
+
"area",
|
|
17
|
+
"base",
|
|
18
|
+
"br",
|
|
19
|
+
"col",
|
|
20
|
+
"embed",
|
|
21
|
+
"hr",
|
|
22
|
+
"img",
|
|
23
|
+
"input",
|
|
24
|
+
"keygen",
|
|
25
|
+
"link",
|
|
26
|
+
"menuitem",
|
|
27
|
+
"meta",
|
|
28
|
+
"param",
|
|
29
|
+
"source",
|
|
30
|
+
"track",
|
|
31
|
+
"wbr"
|
|
32
|
+
], g = {
|
|
33
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
|
34
|
+
brackets: [
|
|
35
|
+
["<!--", "-->"],
|
|
36
|
+
["<", ">"],
|
|
37
|
+
["{{", "}}"],
|
|
38
|
+
["{%", "%}"],
|
|
39
|
+
["{", "}"],
|
|
40
|
+
["(", ")"]
|
|
41
|
+
],
|
|
42
|
+
autoClosingPairs: [
|
|
43
|
+
{ open: "{", close: "}" },
|
|
44
|
+
{ open: "%", close: "%" },
|
|
45
|
+
{ open: "[", close: "]" },
|
|
46
|
+
{ open: "(", close: ")" },
|
|
47
|
+
{ open: '"', close: '"' },
|
|
48
|
+
{ open: "'", close: "'" }
|
|
49
|
+
],
|
|
50
|
+
surroundingPairs: [
|
|
51
|
+
{ open: "<", close: ">" },
|
|
52
|
+
{ open: '"', close: '"' },
|
|
53
|
+
{ open: "'", close: "'" }
|
|
54
|
+
],
|
|
55
|
+
onEnterRules: [
|
|
56
|
+
{
|
|
57
|
+
beforeText: new RegExp(
|
|
58
|
+
`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
|
|
59
|
+
"i"
|
|
60
|
+
),
|
|
61
|
+
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
|
62
|
+
action: {
|
|
63
|
+
indentAction: o.languages.IndentAction.IndentOutdent
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
beforeText: new RegExp(
|
|
68
|
+
`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
|
|
69
|
+
"i"
|
|
70
|
+
),
|
|
71
|
+
action: { indentAction: o.languages.IndentAction.Indent }
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}, _ = {
|
|
75
|
+
defaultToken: "",
|
|
76
|
+
tokenPostfix: "",
|
|
77
|
+
builtinTags: [
|
|
78
|
+
"if",
|
|
79
|
+
"else",
|
|
80
|
+
"elseif",
|
|
81
|
+
"endif",
|
|
82
|
+
"render",
|
|
83
|
+
"assign",
|
|
84
|
+
"capture",
|
|
85
|
+
"endcapture",
|
|
86
|
+
"case",
|
|
87
|
+
"endcase",
|
|
88
|
+
"comment",
|
|
89
|
+
"endcomment",
|
|
90
|
+
"cycle",
|
|
91
|
+
"decrement",
|
|
92
|
+
"for",
|
|
93
|
+
"endfor",
|
|
94
|
+
"include",
|
|
95
|
+
"increment",
|
|
96
|
+
"layout",
|
|
97
|
+
"raw",
|
|
98
|
+
"endraw",
|
|
99
|
+
"render",
|
|
100
|
+
"tablerow",
|
|
101
|
+
"endtablerow",
|
|
102
|
+
"unless",
|
|
103
|
+
"endunless"
|
|
104
|
+
],
|
|
105
|
+
builtinFilters: [
|
|
106
|
+
"abs",
|
|
107
|
+
"append",
|
|
108
|
+
"at_least",
|
|
109
|
+
"at_most",
|
|
110
|
+
"capitalize",
|
|
111
|
+
"ceil",
|
|
112
|
+
"compact",
|
|
113
|
+
"date",
|
|
114
|
+
"default",
|
|
115
|
+
"divided_by",
|
|
116
|
+
"downcase",
|
|
117
|
+
"escape",
|
|
118
|
+
"escape_once",
|
|
119
|
+
"first",
|
|
120
|
+
"floor",
|
|
121
|
+
"join",
|
|
122
|
+
"json",
|
|
123
|
+
"last",
|
|
124
|
+
"lstrip",
|
|
125
|
+
"map",
|
|
126
|
+
"minus",
|
|
127
|
+
"modulo",
|
|
128
|
+
"newline_to_br",
|
|
129
|
+
"plus",
|
|
130
|
+
"prepend",
|
|
131
|
+
"remove",
|
|
132
|
+
"remove_first",
|
|
133
|
+
"replace",
|
|
134
|
+
"replace_first",
|
|
135
|
+
"reverse",
|
|
136
|
+
"round",
|
|
137
|
+
"rstrip",
|
|
138
|
+
"size",
|
|
139
|
+
"slice",
|
|
140
|
+
"sort",
|
|
141
|
+
"sort_natural",
|
|
142
|
+
"split",
|
|
143
|
+
"strip",
|
|
144
|
+
"strip_html",
|
|
145
|
+
"strip_newlines",
|
|
146
|
+
"times",
|
|
147
|
+
"truncate",
|
|
148
|
+
"truncatewords",
|
|
149
|
+
"uniq",
|
|
150
|
+
"upcase",
|
|
151
|
+
"url_decode",
|
|
152
|
+
"url_encode",
|
|
153
|
+
"where"
|
|
154
|
+
],
|
|
155
|
+
constants: ["true", "false"],
|
|
156
|
+
operators: ["==", "!=", ">", "<", ">=", "<="],
|
|
157
|
+
symbol: /[=><!]+/,
|
|
158
|
+
identifier: /[a-zA-Z_][\w]*/,
|
|
159
|
+
tokenizer: {
|
|
160
|
+
root: [
|
|
161
|
+
[/\{\%\s*comment\s*\%\}/, "comment.start.liquid", "@comment"],
|
|
162
|
+
[/\{\{/, { token: "@rematch", switchTo: "@liquidState.root" }],
|
|
163
|
+
[/\{\%/, { token: "@rematch", switchTo: "@liquidState.root" }],
|
|
164
|
+
[/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
165
|
+
[/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
166
|
+
[/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
167
|
+
[/</, "delimiter.html"],
|
|
168
|
+
[/\{/, "delimiter.html"],
|
|
169
|
+
[/[^<{]+/]
|
|
170
|
+
// text
|
|
171
|
+
],
|
|
172
|
+
comment: [
|
|
173
|
+
[/\{\%\s*endcomment\s*\%\}/, "comment.end.liquid", "@pop"],
|
|
174
|
+
[/./, "comment.content.liquid"]
|
|
175
|
+
],
|
|
176
|
+
otherTag: [
|
|
177
|
+
[
|
|
178
|
+
/\{\{/,
|
|
179
|
+
{
|
|
180
|
+
token: "@rematch",
|
|
181
|
+
switchTo: "@liquidState.otherTag"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
[
|
|
185
|
+
/\{\%/,
|
|
186
|
+
{
|
|
187
|
+
token: "@rematch",
|
|
188
|
+
switchTo: "@liquidState.otherTag"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
[/\/?>/, "delimiter.html", "@pop"],
|
|
192
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
193
|
+
[/'([^']*)'/, "attribute.value"],
|
|
194
|
+
[/[\w\-]+/, "attribute.name"],
|
|
195
|
+
[/=/, "delimiter"],
|
|
196
|
+
[/[ \t\r\n]+/]
|
|
197
|
+
// whitespace
|
|
198
|
+
],
|
|
199
|
+
liquidState: [
|
|
200
|
+
[/\{\{/, "delimiter.output.liquid"],
|
|
201
|
+
[/\}\}/, { token: "delimiter.output.liquid", switchTo: "@$S2.$S3" }],
|
|
202
|
+
[/\{\%/, "delimiter.tag.liquid"],
|
|
203
|
+
[/raw\s*\%\}/, "delimiter.tag.liquid", "@liquidRaw"],
|
|
204
|
+
[/\%\}/, { token: "delimiter.tag.liquid", switchTo: "@$S2.$S3" }],
|
|
205
|
+
{ include: "liquidRoot" }
|
|
206
|
+
],
|
|
207
|
+
liquidRaw: [
|
|
208
|
+
[/^(?!\{\%\s*endraw\s*\%\}).+/],
|
|
209
|
+
[/\{\%/, "delimiter.tag.liquid"],
|
|
210
|
+
[/@identifier/],
|
|
211
|
+
[/\%\}/, { token: "delimiter.tag.liquid", next: "@root" }]
|
|
212
|
+
],
|
|
213
|
+
liquidRoot: [
|
|
214
|
+
[/\d+(\.\d+)?/, "number.liquid"],
|
|
215
|
+
[/"[^"]*"/, "string.liquid"],
|
|
216
|
+
[/'[^']*'/, "string.liquid"],
|
|
217
|
+
[/\s+/],
|
|
218
|
+
[
|
|
219
|
+
/@symbol/,
|
|
220
|
+
{
|
|
221
|
+
cases: {
|
|
222
|
+
"@operators": "operator.liquid",
|
|
223
|
+
"@default": ""
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
[/\./],
|
|
228
|
+
[
|
|
229
|
+
/@identifier/,
|
|
230
|
+
{
|
|
231
|
+
cases: {
|
|
232
|
+
"@constants": "keyword.liquid",
|
|
233
|
+
"@builtinFilters": "predefined.liquid",
|
|
234
|
+
"@builtinTags": "predefined.liquid",
|
|
235
|
+
"@default": "variable.liquid"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
[/[^}|%]/, "variable.liquid"]
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
export {
|
|
244
|
+
g as conf,
|
|
245
|
+
_ as language
|
|
246
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { aq as s } from "./index-wY48_10N.js";
|
|
2
|
+
/*!-----------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
5
|
+
* Released under the MIT license
|
|
6
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
7
|
+
*-----------------------------------------------------------------------------*/
|
|
8
|
+
var d = Object.defineProperty, c = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, a = Object.prototype.hasOwnProperty, k = (n, e, i, r) => {
|
|
9
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
10
|
+
for (let o of p(e))
|
|
11
|
+
!a.call(n, o) && o !== i && d(n, o, { get: () => e[o], enumerable: !(r = c(e, o)) || r.enumerable });
|
|
12
|
+
return n;
|
|
13
|
+
}, l = (n, e, i) => (k(n, e, "default"), i), t = {};
|
|
14
|
+
l(t, s);
|
|
15
|
+
var m = {
|
|
16
|
+
comments: {
|
|
17
|
+
blockComment: ["{/*", "*/}"]
|
|
18
|
+
},
|
|
19
|
+
brackets: [["{", "}"]],
|
|
20
|
+
autoClosingPairs: [
|
|
21
|
+
{ open: '"', close: '"' },
|
|
22
|
+
{ open: "'", close: "'" },
|
|
23
|
+
{ open: "“", close: "”" },
|
|
24
|
+
{ open: "‘", close: "’" },
|
|
25
|
+
{ open: "`", close: "`" },
|
|
26
|
+
{ open: "{", close: "}" },
|
|
27
|
+
{ open: "(", close: ")" },
|
|
28
|
+
{ open: "_", close: "_" },
|
|
29
|
+
{ open: "**", close: "**" },
|
|
30
|
+
{ open: "<", close: ">" }
|
|
31
|
+
],
|
|
32
|
+
onEnterRules: [
|
|
33
|
+
{
|
|
34
|
+
beforeText: /^\s*- .+/,
|
|
35
|
+
action: { indentAction: t.languages.IndentAction.None, appendText: "- " }
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
beforeText: /^\s*\+ .+/,
|
|
39
|
+
action: { indentAction: t.languages.IndentAction.None, appendText: "+ " }
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
beforeText: /^\s*\* .+/,
|
|
43
|
+
action: { indentAction: t.languages.IndentAction.None, appendText: "* " }
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
beforeText: /^> /,
|
|
47
|
+
action: { indentAction: t.languages.IndentAction.None, appendText: "> " }
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
beforeText: /<\w+/,
|
|
51
|
+
action: { indentAction: t.languages.IndentAction.Indent }
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
beforeText: /\s+>\s*$/,
|
|
55
|
+
action: { indentAction: t.languages.IndentAction.Indent }
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
beforeText: /<\/\w+>/,
|
|
59
|
+
action: { indentAction: t.languages.IndentAction.Outdent }
|
|
60
|
+
},
|
|
61
|
+
...Array.from({ length: 100 }, (n, e) => ({
|
|
62
|
+
beforeText: new RegExp(`^${e}\\. .+`),
|
|
63
|
+
action: { indentAction: t.languages.IndentAction.None, appendText: `${e + 1}. ` }
|
|
64
|
+
}))
|
|
65
|
+
]
|
|
66
|
+
}, b = {
|
|
67
|
+
defaultToken: "",
|
|
68
|
+
tokenPostfix: ".mdx",
|
|
69
|
+
control: /[!#()*+.[\\\]_`{}\-]/,
|
|
70
|
+
escapes: /\\@control/,
|
|
71
|
+
tokenizer: {
|
|
72
|
+
root: [
|
|
73
|
+
[/^---$/, { token: "meta.content", next: "@frontmatter", nextEmbedded: "yaml" }],
|
|
74
|
+
[/^\s*import/, { token: "keyword", next: "@import", nextEmbedded: "js" }],
|
|
75
|
+
[/^\s*export/, { token: "keyword", next: "@export", nextEmbedded: "js" }],
|
|
76
|
+
[/<\w+/, { token: "type.identifier", next: "@jsx" }],
|
|
77
|
+
[/<\/?\w+>/, "type.identifier"],
|
|
78
|
+
[
|
|
79
|
+
/^(\s*)(>*\s*)(#{1,6}\s)/,
|
|
80
|
+
[{ token: "white" }, { token: "comment" }, { token: "keyword", next: "@header" }]
|
|
81
|
+
],
|
|
82
|
+
[/^(\s*)(>*\s*)([*+-])(\s+)/, ["white", "comment", "keyword", "white"]],
|
|
83
|
+
[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, ["white", "comment", "number", "white"]],
|
|
84
|
+
[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, ["white", "comment", "number", "white"]],
|
|
85
|
+
[/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/, ["white", "comment", "keyword"]],
|
|
86
|
+
[/`{3,}(\s.*)?$/, { token: "string", next: "@codeblock_backtick" }],
|
|
87
|
+
[/~{3,}(\s.*)?$/, { token: "string", next: "@codeblock_tilde" }],
|
|
88
|
+
[
|
|
89
|
+
/`{3,}(\S+).*$/,
|
|
90
|
+
{ token: "string", next: "@codeblock_highlight_backtick", nextEmbedded: "$1" }
|
|
91
|
+
],
|
|
92
|
+
[
|
|
93
|
+
/~{3,}(\S+).*$/,
|
|
94
|
+
{ token: "string", next: "@codeblock_highlight_tilde", nextEmbedded: "$1" }
|
|
95
|
+
],
|
|
96
|
+
[/^(\s*)(-{4,})$/, ["white", "comment"]],
|
|
97
|
+
[/^(\s*)(>+)/, ["white", "comment"]],
|
|
98
|
+
{ include: "content" }
|
|
99
|
+
],
|
|
100
|
+
content: [
|
|
101
|
+
[
|
|
102
|
+
/(\[)(.+)(]\()(.+)(\s+".*")(\))/,
|
|
103
|
+
["", "string.link", "", "type.identifier", "string.link", ""]
|
|
104
|
+
],
|
|
105
|
+
[/(\[)(.+)(]\()(.+)(\))/, ["", "type.identifier", "", "string.link", ""]],
|
|
106
|
+
[/(\[)(.+)(]\[)(.+)(])/, ["", "type.identifier", "", "type.identifier", ""]],
|
|
107
|
+
[/(\[)(.+)(]:\s+)(\S*)/, ["", "type.identifier", "", "string.link"]],
|
|
108
|
+
[/(\[)(.+)(])/, ["", "type.identifier", ""]],
|
|
109
|
+
[/`.*`/, "variable.source"],
|
|
110
|
+
[/_/, { token: "emphasis", next: "@emphasis_underscore" }],
|
|
111
|
+
[/\*(?!\*)/, { token: "emphasis", next: "@emphasis_asterisk" }],
|
|
112
|
+
[/\*\*/, { token: "strong", next: "@strong" }],
|
|
113
|
+
[/{/, { token: "delimiter.bracket", next: "@expression", nextEmbedded: "js" }]
|
|
114
|
+
],
|
|
115
|
+
import: [[/'\s*(;|$)/, { token: "string", next: "@pop", nextEmbedded: "@pop" }]],
|
|
116
|
+
expression: [
|
|
117
|
+
[/{/, { token: "delimiter.bracket", next: "@expression" }],
|
|
118
|
+
[/}/, { token: "delimiter.bracket", next: "@pop", nextEmbedded: "@pop" }]
|
|
119
|
+
],
|
|
120
|
+
export: [[/^\s*$/, { token: "delimiter.bracket", next: "@pop", nextEmbedded: "@pop" }]],
|
|
121
|
+
jsx: [
|
|
122
|
+
[/\s+/, ""],
|
|
123
|
+
[/(\w+)(=)("(?:[^"\\]|\\.)*")/, ["attribute.name", "operator", "string"]],
|
|
124
|
+
[/(\w+)(=)('(?:[^'\\]|\\.)*')/, ["attribute.name", "operator", "string"]],
|
|
125
|
+
[/(\w+(?=\s|>|={|$))/, ["attribute.name"]],
|
|
126
|
+
[/={/, { token: "delimiter.bracket", next: "@expression", nextEmbedded: "js" }],
|
|
127
|
+
[/>/, { token: "type.identifier", next: "@pop" }]
|
|
128
|
+
],
|
|
129
|
+
header: [
|
|
130
|
+
[/.$/, { token: "keyword", next: "@pop" }],
|
|
131
|
+
{ include: "content" },
|
|
132
|
+
[/./, { token: "keyword" }]
|
|
133
|
+
],
|
|
134
|
+
strong: [
|
|
135
|
+
[/\*\*/, { token: "strong", next: "@pop" }],
|
|
136
|
+
{ include: "content" },
|
|
137
|
+
[/./, { token: "strong" }]
|
|
138
|
+
],
|
|
139
|
+
emphasis_underscore: [
|
|
140
|
+
[/_/, { token: "emphasis", next: "@pop" }],
|
|
141
|
+
{ include: "content" },
|
|
142
|
+
[/./, { token: "emphasis" }]
|
|
143
|
+
],
|
|
144
|
+
emphasis_asterisk: [
|
|
145
|
+
[/\*(?!\*)/, { token: "emphasis", next: "@pop" }],
|
|
146
|
+
{ include: "content" },
|
|
147
|
+
[/./, { token: "emphasis" }]
|
|
148
|
+
],
|
|
149
|
+
frontmatter: [[/^---$/, { token: "meta.content", nextEmbedded: "@pop", next: "@pop" }]],
|
|
150
|
+
codeblock_highlight_backtick: [
|
|
151
|
+
[/\s*`{3,}\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
|
|
152
|
+
[/.*$/, "variable.source"]
|
|
153
|
+
],
|
|
154
|
+
codeblock_highlight_tilde: [
|
|
155
|
+
[/\s*~{3,}\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
|
|
156
|
+
[/.*$/, "variable.source"]
|
|
157
|
+
],
|
|
158
|
+
codeblock_backtick: [
|
|
159
|
+
[/\s*`{3,}\s*$/, { token: "string", next: "@pop" }],
|
|
160
|
+
[/.*$/, "variable.source"]
|
|
161
|
+
],
|
|
162
|
+
codeblock_tilde: [
|
|
163
|
+
[/\s*~{3,}\s*$/, { token: "string", next: "@pop" }],
|
|
164
|
+
[/.*$/, "variable.source"]
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
export {
|
|
169
|
+
m as conf,
|
|
170
|
+
b as language
|
|
171
|
+
};
|