sun-form-v3 1.0.71 → 1.0.73
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/abap-DfvySaIJ.js +1404 -0
- package/dist/apex-B__0irD3.js +332 -0
- package/dist/assets/css.worker-OK053IOu.js +84 -0
- package/dist/assets/editor.worker-D9iUZyMP.js +11 -0
- package/dist/assets/html.worker-CL40hqKM.js +458 -0
- package/dist/assets/json.worker-6f9bhSHY.js +42 -0
- package/dist/assets/ts.worker-B6g3wjaE.js +37021 -0
- package/dist/azcli-CDMGhRmx.js +74 -0
- package/dist/bat-0Mk8aqzx.js +106 -0
- package/dist/bicep-BBi_I06Z.js +108 -0
- package/dist/cameligo-D0G_Zm6X.js +180 -0
- package/dist/clojure-o2ZKLeMp.js +767 -0
- package/dist/coffee-DOQff5VC.js +238 -0
- package/dist/cpp-CQGJnWhD.js +395 -0
- package/dist/csharp-C1jLsHl8.js +332 -0
- package/dist/csp-C_ttMQaW.js +59 -0
- package/dist/css-BC202kVV.js +193 -0
- package/dist/cssMode-BXBciaWt.js +1541 -0
- package/dist/cypher-DwtEH7Fi.js +269 -0
- package/dist/dart-D9XknsP2.js +287 -0
- package/dist/dockerfile-DgsNjqqa.js +136 -0
- package/dist/ecl-BAMCHBl6.js +462 -0
- package/dist/elixir-CegIttP8.js +575 -0
- package/dist/favicon.ico +0 -0
- package/dist/flow9-9608t7UV.js +148 -0
- package/dist/freemarker2-CmygUpuu.js +995 -0
- package/dist/fsharp-CCtt9-1_.js +223 -0
- package/dist/go-CGUIPbct.js +224 -0
- package/dist/graphql-BNRIFFIn.js +157 -0
- package/dist/handlebars-DQf1H2VV.js +425 -0
- package/dist/hcl-C__KLIXe.js +189 -0
- package/dist/html-Xh9UOPja.js +314 -0
- package/dist/htmlMode-B0QDpKvf.js +1551 -0
- package/dist/index-BkAjoBLc.js +122298 -0
- package/dist/ini-CeKYn_zA.js +77 -0
- package/dist/java-Dm24deQl.js +238 -0
- package/dist/javascript-lDZ3h7g8.js +76 -0
- package/dist/jsonMode-C5XJ2eKG.js +1957 -0
- package/dist/julia-BImNW7VE.js +517 -0
- package/dist/kotlin-BfE79GEb.js +259 -0
- package/dist/less-DglNOcaC.js +168 -0
- package/dist/lexon-BA0dRz9Q.js +163 -0
- package/dist/liquid-Cjj1frmx.js +246 -0
- package/dist/lua-DMkWzJcm.js +168 -0
- package/dist/m3-sA-5shO8.js +216 -0
- package/dist/markdown-OYRB1igA.js +235 -0
- package/dist/mdx-CzfefEJ-.js +171 -0
- package/dist/mips-rRzkJ_7G.js +204 -0
- package/dist/msdax-DoVJdUhd.js +381 -0
- package/dist/mysql-Ty44IHXo.js +884 -0
- package/dist/objective-c-VUfyhYrA.js +189 -0
- package/dist/pascal-DkASiYyw.js +257 -0
- package/dist/pascaligo-p-ELPlVO.js +170 -0
- package/dist/perl-Cjl1FxLZ.js +632 -0
- package/dist/pgsql-DjVenF7s.js +857 -0
- package/dist/php-CwvGzZOO.js +506 -0
- package/dist/pla-Br1iaBIV.js +143 -0
- package/dist/postiats-BaeP8zZY.js +913 -0
- package/dist/powerquery-CLCshuo8.js +896 -0
- package/dist/powershell-CZV50w5N.js +245 -0
- package/dist/protobuf-MV3XTewJ.js +426 -0
- package/dist/pug-DkDg4c4l.js +408 -0
- package/dist/python-DyY6ldcy.js +282 -0
- package/dist/qsharp-BAtiKA97.js +291 -0
- package/dist/r-8ocrd-h-.js +249 -0
- package/dist/razor-Bg8q70Ua.js +556 -0
- package/dist/redis-9sZiddxc.js +308 -0
- package/dist/redshift-DQfTOGC0.js +815 -0
- package/dist/restructuredtext-DXU-vkgr.js +180 -0
- package/dist/ruby-DotfqwMf.js +517 -0
- package/dist/rust-BIauJ5KN.js +349 -0
- package/dist/sb-CmWMvDEV.js +121 -0
- package/dist/scala-C81brEbk.js +376 -0
- package/dist/scheme-D0pcFz2x.js +114 -0
- package/dist/scss-BOdN2fGG.js +268 -0
- package/dist/shell-6E09eAkU.js +227 -0
- package/dist/solidity-CWStzA1K.js +1373 -0
- package/dist/sophia-76Sb6CWe.js +205 -0
- package/dist/sparql-BmZTkOWT.js +207 -0
- package/dist/sql-Cs9TBAW5.js +859 -0
- package/dist/st-B-rqE1Bu.js +422 -0
- package/dist/style.css +1 -0
- package/dist/sun-form-v3.es.js +4 -0
- package/dist/sun-form-v3.umd.js +1905 -0
- package/dist/swift-Btsj6YxQ.js +318 -0
- package/dist/systemverilog-B3RHBRa2.js +582 -0
- package/dist/tcl-Dpj776pn.js +238 -0
- package/dist/tsMode-CRd35KrT.js +886 -0
- package/dist/twig-Bb9JmBsE.js +398 -0
- package/dist/typescript-BYlzZUqk.js +349 -0
- package/dist/typespec-CDWeg3SU.js +123 -0
- package/dist/vb-DEXnYwEI.js +378 -0
- package/dist/wgsl-D602c1lx.js +445 -0
- package/dist/xml-CuwYh5uN.js +101 -0
- package/dist/yaml-CpETH-QO.js +212 -0
- package/package.json +7 -10
- package/src/App.vue +0 -9
- package/src/assets/font/YouSheBiaoTiHei-2.ttf +0 -0
- package/src/assets/font/demo.css +0 -539
- package/src/assets/font/demo_index.html +0 -1200
- package/src/assets/font/iconfont.css +0 -191
- package/src/assets/font/iconfont.js +0 -1
- package/src/assets/font/iconfont.json +0 -317
- package/src/assets/font/iconfont.ttf +0 -0
- package/src/assets/font/iconfont.woff +0 -0
- package/src/assets/font/iconfont.woff2 +0 -0
- package/src/assets/img/bg_footer.png +0 -0
- package/src/assets/img/bg_title.png +0 -0
- package/src/assets/img/file.png +0 -0
- package/src/assets/img/logo.png +0 -0
- package/src/assets/img/logo2.png +0 -0
- package/src/assets/img/logo22.png +0 -0
- package/src/assets/img/logo23.png +0 -0
- package/src/assets/img/logo3.png +0 -0
- package/src/assets/img//347/237/251/345/275/242@2x.png +0 -0
- package/src/assets/logo.svg +0 -1
- package/src/assets/styles/element/index.scss +0 -15
- package/src/assets/styles/index.css +0 -3
- package/src/components/a.js +0 -14
- package/src/components/aDesigner/config.vue +0 -127
- package/src/components/aDesigner/design.vue +0 -20
- package/src/components/aDesigner/index.vue +0 -144
- package/src/components/aDesigner/panel.vue +0 -144
- package/src/components/aDesigner/show.vue +0 -24
- package/src/components/widgetCommonComps/commonApiConfig/index.vue +0 -194
- package/src/components/widgetCommonComps/commonCard/index.vue +0 -36
- package/src/components/widgetCommonComps/commonCodeEditor/editor.vue +0 -219
- package/src/components/widgetCommonComps/commonCodeEditor/modalEditor.vue +0 -68
- package/src/components/widgetCommonComps/commonCollapseCard/index.vue +0 -10
- package/src/components/widgetCommonComps/commonContainer/index.vue +0 -95
- package/src/components/widgetCommonComps/commonJsonInput/index.vue +0 -59
- package/src/components/widgetCommonComps/commonLabelContainer/index.vue +0 -39
- package/src/components/widgetCommonComps/commonSidetree/index.vue +0 -61
- package/src/components/widgetCommonComps/commonTypeInput/index.vue +0 -75
- package/src/components/widgetCommonComps/commonWidgetLabelContainer/index.vue +0 -55
- package/src/components/widgetCommonComps/index copy.js +0 -17
- package/src/components/widgetCommonComps/index.js +0 -17
- package/src/components/widgetConfigComps/config-input/index.vue +0 -60
- package/src/components/widgetConfigComps/index copy.js +0 -13
- package/src/components/widgetConfigComps/index.js +0 -17
- package/src/components/widgetShowComps/index.js +0 -29
- package/src/components/widgetShowComps/widget-form/index.vue +0 -43
- package/src/components/widgetShowComps/widget-homepage/index.vue +0 -41
- package/src/components/widgetShowComps/widget-input/index.vue +0 -85
- package/src/components/widgetShowComps/widget-select/index.vue +0 -31
- package/src/designer.js +0 -342
- package/src/http.js +0 -293
- package/src/index.js +0 -24
- package/src/index2.js +0 -23
- package/src/main.js +0 -19
- package/src/remark.js +0 -708
- package/src/testBtn.vue +0 -11
- package/src/testInput.vue +0 -12
- package/src/util/jsformat.js +0 -568
- package/src/widgetConfig.js +0 -1112
@@ -0,0 +1,506 @@
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/
|
7
|
+
var e = {
|
8
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
9
|
+
comments: {
|
10
|
+
lineComment: "//",
|
11
|
+
blockComment: ["/*", "*/"]
|
12
|
+
},
|
13
|
+
brackets: [
|
14
|
+
["{", "}"],
|
15
|
+
["[", "]"],
|
16
|
+
["(", ")"]
|
17
|
+
],
|
18
|
+
autoClosingPairs: [
|
19
|
+
{ open: "{", close: "}", notIn: ["string"] },
|
20
|
+
{ open: "[", close: "]", notIn: ["string"] },
|
21
|
+
{ open: "(", close: ")", notIn: ["string"] },
|
22
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
23
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
24
|
+
],
|
25
|
+
folding: {
|
26
|
+
markers: {
|
27
|
+
start: new RegExp("^\\s*(#|//)region\\b"),
|
28
|
+
end: new RegExp("^\\s*(#|//)endregion\\b")
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}, t = {
|
32
|
+
defaultToken: "",
|
33
|
+
tokenPostfix: "",
|
34
|
+
// ignoreCase: true,
|
35
|
+
// The main tokenizer for our languages
|
36
|
+
tokenizer: {
|
37
|
+
root: [
|
38
|
+
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.root" }],
|
39
|
+
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
40
|
+
[/<!--/, "comment.html", "@comment"],
|
41
|
+
[/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
42
|
+
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
43
|
+
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
44
|
+
[/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
45
|
+
[/(<\/)(\w+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
46
|
+
[/</, "delimiter.html"],
|
47
|
+
[/[^<]+/]
|
48
|
+
// text
|
49
|
+
],
|
50
|
+
doctype: [
|
51
|
+
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.comment" }],
|
52
|
+
[/[^>]+/, "metatag.content.html"],
|
53
|
+
[/>/, "metatag.html", "@pop"]
|
54
|
+
],
|
55
|
+
comment: [
|
56
|
+
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.comment" }],
|
57
|
+
[/-->/, "comment.html", "@pop"],
|
58
|
+
[/[^-]+/, "comment.content.html"],
|
59
|
+
[/./, "comment.content.html"]
|
60
|
+
],
|
61
|
+
otherTag: [
|
62
|
+
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.otherTag" }],
|
63
|
+
[/\/?>/, "delimiter.html", "@pop"],
|
64
|
+
[/"([^"]*)"/, "attribute.value"],
|
65
|
+
[/'([^']*)'/, "attribute.value"],
|
66
|
+
[/[\w\-]+/, "attribute.name"],
|
67
|
+
[/=/, "delimiter"],
|
68
|
+
[/[ \t\r\n]+/]
|
69
|
+
// whitespace
|
70
|
+
],
|
71
|
+
// -- BEGIN <script> tags handling
|
72
|
+
// After <script
|
73
|
+
script: [
|
74
|
+
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.script" }],
|
75
|
+
[/type/, "attribute.name", "@scriptAfterType"],
|
76
|
+
[/"([^"]*)"/, "attribute.value"],
|
77
|
+
[/'([^']*)'/, "attribute.value"],
|
78
|
+
[/[\w\-]+/, "attribute.name"],
|
79
|
+
[/=/, "delimiter"],
|
80
|
+
[
|
81
|
+
/>/,
|
82
|
+
{
|
83
|
+
token: "delimiter.html",
|
84
|
+
next: "@scriptEmbedded.text/javascript",
|
85
|
+
nextEmbedded: "text/javascript"
|
86
|
+
}
|
87
|
+
],
|
88
|
+
[/[ \t\r\n]+/],
|
89
|
+
// whitespace
|
90
|
+
[
|
91
|
+
/(<\/)(script\s*)(>)/,
|
92
|
+
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
93
|
+
]
|
94
|
+
],
|
95
|
+
// After <script ... type
|
96
|
+
scriptAfterType: [
|
97
|
+
[
|
98
|
+
/<\?((php)|=)?/,
|
99
|
+
{
|
100
|
+
token: "@rematch",
|
101
|
+
switchTo: "@phpInSimpleState.scriptAfterType"
|
102
|
+
}
|
103
|
+
],
|
104
|
+
[/=/, "delimiter", "@scriptAfterTypeEquals"],
|
105
|
+
[
|
106
|
+
/>/,
|
107
|
+
{
|
108
|
+
token: "delimiter.html",
|
109
|
+
next: "@scriptEmbedded.text/javascript",
|
110
|
+
nextEmbedded: "text/javascript"
|
111
|
+
}
|
112
|
+
],
|
113
|
+
// cover invalid e.g. <script type>
|
114
|
+
[/[ \t\r\n]+/],
|
115
|
+
// whitespace
|
116
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
117
|
+
],
|
118
|
+
// After <script ... type =
|
119
|
+
scriptAfterTypeEquals: [
|
120
|
+
[
|
121
|
+
/<\?((php)|=)?/,
|
122
|
+
{
|
123
|
+
token: "@rematch",
|
124
|
+
switchTo: "@phpInSimpleState.scriptAfterTypeEquals"
|
125
|
+
}
|
126
|
+
],
|
127
|
+
[
|
128
|
+
/"([^"]*)"/,
|
129
|
+
{
|
130
|
+
token: "attribute.value",
|
131
|
+
switchTo: "@scriptWithCustomType.$1"
|
132
|
+
}
|
133
|
+
],
|
134
|
+
[
|
135
|
+
/'([^']*)'/,
|
136
|
+
{
|
137
|
+
token: "attribute.value",
|
138
|
+
switchTo: "@scriptWithCustomType.$1"
|
139
|
+
}
|
140
|
+
],
|
141
|
+
[
|
142
|
+
/>/,
|
143
|
+
{
|
144
|
+
token: "delimiter.html",
|
145
|
+
next: "@scriptEmbedded.text/javascript",
|
146
|
+
nextEmbedded: "text/javascript"
|
147
|
+
}
|
148
|
+
],
|
149
|
+
// cover invalid e.g. <script type=>
|
150
|
+
[/[ \t\r\n]+/],
|
151
|
+
// whitespace
|
152
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
153
|
+
],
|
154
|
+
// After <script ... type = $S2
|
155
|
+
scriptWithCustomType: [
|
156
|
+
[
|
157
|
+
/<\?((php)|=)?/,
|
158
|
+
{
|
159
|
+
token: "@rematch",
|
160
|
+
switchTo: "@phpInSimpleState.scriptWithCustomType.$S2"
|
161
|
+
}
|
162
|
+
],
|
163
|
+
[
|
164
|
+
/>/,
|
165
|
+
{
|
166
|
+
token: "delimiter.html",
|
167
|
+
next: "@scriptEmbedded.$S2",
|
168
|
+
nextEmbedded: "$S2"
|
169
|
+
}
|
170
|
+
],
|
171
|
+
[/"([^"]*)"/, "attribute.value"],
|
172
|
+
[/'([^']*)'/, "attribute.value"],
|
173
|
+
[/[\w\-]+/, "attribute.name"],
|
174
|
+
[/=/, "delimiter"],
|
175
|
+
[/[ \t\r\n]+/],
|
176
|
+
// whitespace
|
177
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
178
|
+
],
|
179
|
+
scriptEmbedded: [
|
180
|
+
[
|
181
|
+
/<\?((php)|=)?/,
|
182
|
+
{
|
183
|
+
token: "@rematch",
|
184
|
+
switchTo: "@phpInEmbeddedState.scriptEmbedded.$S2",
|
185
|
+
nextEmbedded: "@pop"
|
186
|
+
}
|
187
|
+
],
|
188
|
+
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
189
|
+
],
|
190
|
+
// -- END <script> tags handling
|
191
|
+
// -- BEGIN <style> tags handling
|
192
|
+
// After <style
|
193
|
+
style: [
|
194
|
+
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.style" }],
|
195
|
+
[/type/, "attribute.name", "@styleAfterType"],
|
196
|
+
[/"([^"]*)"/, "attribute.value"],
|
197
|
+
[/'([^']*)'/, "attribute.value"],
|
198
|
+
[/[\w\-]+/, "attribute.name"],
|
199
|
+
[/=/, "delimiter"],
|
200
|
+
[
|
201
|
+
/>/,
|
202
|
+
{
|
203
|
+
token: "delimiter.html",
|
204
|
+
next: "@styleEmbedded.text/css",
|
205
|
+
nextEmbedded: "text/css"
|
206
|
+
}
|
207
|
+
],
|
208
|
+
[/[ \t\r\n]+/],
|
209
|
+
// whitespace
|
210
|
+
[
|
211
|
+
/(<\/)(style\s*)(>)/,
|
212
|
+
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
213
|
+
]
|
214
|
+
],
|
215
|
+
// After <style ... type
|
216
|
+
styleAfterType: [
|
217
|
+
[
|
218
|
+
/<\?((php)|=)?/,
|
219
|
+
{
|
220
|
+
token: "@rematch",
|
221
|
+
switchTo: "@phpInSimpleState.styleAfterType"
|
222
|
+
}
|
223
|
+
],
|
224
|
+
[/=/, "delimiter", "@styleAfterTypeEquals"],
|
225
|
+
[
|
226
|
+
/>/,
|
227
|
+
{
|
228
|
+
token: "delimiter.html",
|
229
|
+
next: "@styleEmbedded.text/css",
|
230
|
+
nextEmbedded: "text/css"
|
231
|
+
}
|
232
|
+
],
|
233
|
+
// cover invalid e.g. <style type>
|
234
|
+
[/[ \t\r\n]+/],
|
235
|
+
// whitespace
|
236
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
237
|
+
],
|
238
|
+
// After <style ... type =
|
239
|
+
styleAfterTypeEquals: [
|
240
|
+
[
|
241
|
+
/<\?((php)|=)?/,
|
242
|
+
{
|
243
|
+
token: "@rematch",
|
244
|
+
switchTo: "@phpInSimpleState.styleAfterTypeEquals"
|
245
|
+
}
|
246
|
+
],
|
247
|
+
[
|
248
|
+
/"([^"]*)"/,
|
249
|
+
{
|
250
|
+
token: "attribute.value",
|
251
|
+
switchTo: "@styleWithCustomType.$1"
|
252
|
+
}
|
253
|
+
],
|
254
|
+
[
|
255
|
+
/'([^']*)'/,
|
256
|
+
{
|
257
|
+
token: "attribute.value",
|
258
|
+
switchTo: "@styleWithCustomType.$1"
|
259
|
+
}
|
260
|
+
],
|
261
|
+
[
|
262
|
+
/>/,
|
263
|
+
{
|
264
|
+
token: "delimiter.html",
|
265
|
+
next: "@styleEmbedded.text/css",
|
266
|
+
nextEmbedded: "text/css"
|
267
|
+
}
|
268
|
+
],
|
269
|
+
// cover invalid e.g. <style type=>
|
270
|
+
[/[ \t\r\n]+/],
|
271
|
+
// whitespace
|
272
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
273
|
+
],
|
274
|
+
// After <style ... type = $S2
|
275
|
+
styleWithCustomType: [
|
276
|
+
[
|
277
|
+
/<\?((php)|=)?/,
|
278
|
+
{
|
279
|
+
token: "@rematch",
|
280
|
+
switchTo: "@phpInSimpleState.styleWithCustomType.$S2"
|
281
|
+
}
|
282
|
+
],
|
283
|
+
[
|
284
|
+
/>/,
|
285
|
+
{
|
286
|
+
token: "delimiter.html",
|
287
|
+
next: "@styleEmbedded.$S2",
|
288
|
+
nextEmbedded: "$S2"
|
289
|
+
}
|
290
|
+
],
|
291
|
+
[/"([^"]*)"/, "attribute.value"],
|
292
|
+
[/'([^']*)'/, "attribute.value"],
|
293
|
+
[/[\w\-]+/, "attribute.name"],
|
294
|
+
[/=/, "delimiter"],
|
295
|
+
[/[ \t\r\n]+/],
|
296
|
+
// whitespace
|
297
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
298
|
+
],
|
299
|
+
styleEmbedded: [
|
300
|
+
[
|
301
|
+
/<\?((php)|=)?/,
|
302
|
+
{
|
303
|
+
token: "@rematch",
|
304
|
+
switchTo: "@phpInEmbeddedState.styleEmbedded.$S2",
|
305
|
+
nextEmbedded: "@pop"
|
306
|
+
}
|
307
|
+
],
|
308
|
+
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
309
|
+
],
|
310
|
+
// -- END <style> tags handling
|
311
|
+
phpInSimpleState: [
|
312
|
+
[/<\?((php)|=)?/, "metatag.php"],
|
313
|
+
[/\?>/, { token: "metatag.php", switchTo: "@$S2.$S3" }],
|
314
|
+
{ include: "phpRoot" }
|
315
|
+
],
|
316
|
+
phpInEmbeddedState: [
|
317
|
+
[/<\?((php)|=)?/, "metatag.php"],
|
318
|
+
[
|
319
|
+
/\?>/,
|
320
|
+
{
|
321
|
+
token: "metatag.php",
|
322
|
+
switchTo: "@$S2.$S3",
|
323
|
+
nextEmbedded: "$S3"
|
324
|
+
}
|
325
|
+
],
|
326
|
+
{ include: "phpRoot" }
|
327
|
+
],
|
328
|
+
phpRoot: [
|
329
|
+
[
|
330
|
+
/[a-zA-Z_]\w*/,
|
331
|
+
{
|
332
|
+
cases: {
|
333
|
+
"@phpKeywords": { token: "keyword.php" },
|
334
|
+
"@phpCompileTimeConstants": { token: "constant.php" },
|
335
|
+
"@default": "identifier.php"
|
336
|
+
}
|
337
|
+
}
|
338
|
+
],
|
339
|
+
[
|
340
|
+
/[$a-zA-Z_]\w*/,
|
341
|
+
{
|
342
|
+
cases: {
|
343
|
+
"@phpPreDefinedVariables": {
|
344
|
+
token: "variable.predefined.php"
|
345
|
+
},
|
346
|
+
"@default": "variable.php"
|
347
|
+
}
|
348
|
+
}
|
349
|
+
],
|
350
|
+
// brackets
|
351
|
+
[/[{}]/, "delimiter.bracket.php"],
|
352
|
+
[/[\[\]]/, "delimiter.array.php"],
|
353
|
+
[/[()]/, "delimiter.parenthesis.php"],
|
354
|
+
// whitespace
|
355
|
+
[/[ \t\r\n]+/],
|
356
|
+
// comments
|
357
|
+
[/(#|\/\/)$/, "comment.php"],
|
358
|
+
[/(#|\/\/)/, "comment.php", "@phpLineComment"],
|
359
|
+
// block comments
|
360
|
+
[/\/\*/, "comment.php", "@phpComment"],
|
361
|
+
// strings
|
362
|
+
[/"/, "string.php", "@phpDoubleQuoteString"],
|
363
|
+
[/'/, "string.php", "@phpSingleQuoteString"],
|
364
|
+
// delimiters
|
365
|
+
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/, "delimiter.php"],
|
366
|
+
// numbers
|
367
|
+
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float.php"],
|
368
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.php"],
|
369
|
+
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.php"],
|
370
|
+
[/0[0-7']*[0-7]/, "number.octal.php"],
|
371
|
+
[/0[bB][0-1']*[0-1]/, "number.binary.php"],
|
372
|
+
[/\d[\d']*/, "number.php"],
|
373
|
+
[/\d/, "number.php"]
|
374
|
+
],
|
375
|
+
phpComment: [
|
376
|
+
[/\*\//, "comment.php", "@pop"],
|
377
|
+
[/[^*]+/, "comment.php"],
|
378
|
+
[/./, "comment.php"]
|
379
|
+
],
|
380
|
+
phpLineComment: [
|
381
|
+
[/\?>/, { token: "@rematch", next: "@pop" }],
|
382
|
+
[/.$/, "comment.php", "@pop"],
|
383
|
+
[/[^?]+$/, "comment.php", "@pop"],
|
384
|
+
[/[^?]+/, "comment.php"],
|
385
|
+
[/./, "comment.php"]
|
386
|
+
],
|
387
|
+
phpDoubleQuoteString: [
|
388
|
+
[/[^\\"]+/, "string.php"],
|
389
|
+
[/@escapes/, "string.escape.php"],
|
390
|
+
[/\\./, "string.escape.invalid.php"],
|
391
|
+
[/"/, "string.php", "@pop"]
|
392
|
+
],
|
393
|
+
phpSingleQuoteString: [
|
394
|
+
[/[^\\']+/, "string.php"],
|
395
|
+
[/@escapes/, "string.escape.php"],
|
396
|
+
[/\\./, "string.escape.invalid.php"],
|
397
|
+
[/'/, "string.php", "@pop"]
|
398
|
+
]
|
399
|
+
},
|
400
|
+
phpKeywords: [
|
401
|
+
"abstract",
|
402
|
+
"and",
|
403
|
+
"array",
|
404
|
+
"as",
|
405
|
+
"break",
|
406
|
+
"callable",
|
407
|
+
"case",
|
408
|
+
"catch",
|
409
|
+
"cfunction",
|
410
|
+
"class",
|
411
|
+
"clone",
|
412
|
+
"const",
|
413
|
+
"continue",
|
414
|
+
"declare",
|
415
|
+
"default",
|
416
|
+
"do",
|
417
|
+
"else",
|
418
|
+
"elseif",
|
419
|
+
"enddeclare",
|
420
|
+
"endfor",
|
421
|
+
"endforeach",
|
422
|
+
"endif",
|
423
|
+
"endswitch",
|
424
|
+
"endwhile",
|
425
|
+
"extends",
|
426
|
+
"false",
|
427
|
+
"final",
|
428
|
+
"for",
|
429
|
+
"foreach",
|
430
|
+
"function",
|
431
|
+
"global",
|
432
|
+
"goto",
|
433
|
+
"if",
|
434
|
+
"implements",
|
435
|
+
"interface",
|
436
|
+
"instanceof",
|
437
|
+
"insteadof",
|
438
|
+
"namespace",
|
439
|
+
"new",
|
440
|
+
"null",
|
441
|
+
"object",
|
442
|
+
"old_function",
|
443
|
+
"or",
|
444
|
+
"private",
|
445
|
+
"protected",
|
446
|
+
"public",
|
447
|
+
"resource",
|
448
|
+
"static",
|
449
|
+
"switch",
|
450
|
+
"throw",
|
451
|
+
"trait",
|
452
|
+
"try",
|
453
|
+
"true",
|
454
|
+
"use",
|
455
|
+
"var",
|
456
|
+
"while",
|
457
|
+
"xor",
|
458
|
+
"die",
|
459
|
+
"echo",
|
460
|
+
"empty",
|
461
|
+
"exit",
|
462
|
+
"eval",
|
463
|
+
"include",
|
464
|
+
"include_once",
|
465
|
+
"isset",
|
466
|
+
"list",
|
467
|
+
"require",
|
468
|
+
"require_once",
|
469
|
+
"return",
|
470
|
+
"print",
|
471
|
+
"unset",
|
472
|
+
"yield",
|
473
|
+
"__construct"
|
474
|
+
],
|
475
|
+
phpCompileTimeConstants: [
|
476
|
+
"__CLASS__",
|
477
|
+
"__DIR__",
|
478
|
+
"__FILE__",
|
479
|
+
"__LINE__",
|
480
|
+
"__NAMESPACE__",
|
481
|
+
"__METHOD__",
|
482
|
+
"__FUNCTION__",
|
483
|
+
"__TRAIT__"
|
484
|
+
],
|
485
|
+
phpPreDefinedVariables: [
|
486
|
+
"$GLOBALS",
|
487
|
+
"$_SERVER",
|
488
|
+
"$_GET",
|
489
|
+
"$_POST",
|
490
|
+
"$_FILES",
|
491
|
+
"$_REQUEST",
|
492
|
+
"$_SESSION",
|
493
|
+
"$_ENV",
|
494
|
+
"$_COOKIE",
|
495
|
+
"$php_errormsg",
|
496
|
+
"$HTTP_RAW_POST_DATA",
|
497
|
+
"$http_response_header",
|
498
|
+
"$argc",
|
499
|
+
"$argv"
|
500
|
+
],
|
501
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
|
502
|
+
};
|
503
|
+
export {
|
504
|
+
e as conf,
|
505
|
+
t as language
|
506
|
+
};
|
@@ -0,0 +1,143 @@
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
|
4
|
+
* Released under the MIT license
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
6
|
+
*-----------------------------------------------------------------------------*/
|
7
|
+
var e = {
|
8
|
+
comments: {
|
9
|
+
lineComment: "#"
|
10
|
+
},
|
11
|
+
brackets: [
|
12
|
+
["[", "]"],
|
13
|
+
["<", ">"],
|
14
|
+
["(", ")"]
|
15
|
+
],
|
16
|
+
autoClosingPairs: [
|
17
|
+
{ open: "[", close: "]" },
|
18
|
+
{ open: "<", close: ">" },
|
19
|
+
{ open: "(", close: ")" }
|
20
|
+
],
|
21
|
+
surroundingPairs: [
|
22
|
+
{ open: "[", close: "]" },
|
23
|
+
{ open: "<", close: ">" },
|
24
|
+
{ open: "(", close: ")" }
|
25
|
+
]
|
26
|
+
}, o = {
|
27
|
+
defaultToken: "",
|
28
|
+
tokenPostfix: ".pla",
|
29
|
+
brackets: [
|
30
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
31
|
+
{ open: "<", close: ">", token: "delimiter.angle" },
|
32
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
33
|
+
],
|
34
|
+
keywords: [
|
35
|
+
".i",
|
36
|
+
".o",
|
37
|
+
".mv",
|
38
|
+
".ilb",
|
39
|
+
".ob",
|
40
|
+
".label",
|
41
|
+
".type",
|
42
|
+
".phase",
|
43
|
+
".pair",
|
44
|
+
".symbolic",
|
45
|
+
".symbolic-output",
|
46
|
+
".kiss",
|
47
|
+
".p",
|
48
|
+
".e",
|
49
|
+
".end"
|
50
|
+
],
|
51
|
+
// regular expressions
|
52
|
+
comment: /#.*$/,
|
53
|
+
identifier: /[a-zA-Z]+[a-zA-Z0-9_\-]*/,
|
54
|
+
plaContent: /[01\-~\|]+/,
|
55
|
+
// The main tokenizer for our languages
|
56
|
+
tokenizer: {
|
57
|
+
root: [
|
58
|
+
// comments and whitespace
|
59
|
+
{ include: "@whitespace" },
|
60
|
+
[/@comment/, "comment"],
|
61
|
+
// keyword
|
62
|
+
[
|
63
|
+
/\.([a-zA-Z_\-]+)/,
|
64
|
+
{
|
65
|
+
cases: {
|
66
|
+
"@eos": { token: "keyword.$1" },
|
67
|
+
"@keywords": {
|
68
|
+
cases: {
|
69
|
+
".type": { token: "keyword.$1", next: "@type" },
|
70
|
+
"@default": { token: "keyword.$1", next: "@keywordArg" }
|
71
|
+
}
|
72
|
+
},
|
73
|
+
"@default": { token: "keyword.$1" }
|
74
|
+
}
|
75
|
+
}
|
76
|
+
],
|
77
|
+
// identifiers
|
78
|
+
[/@identifier/, "identifier"],
|
79
|
+
// PLA row
|
80
|
+
[/@plaContent/, "string"]
|
81
|
+
],
|
82
|
+
whitespace: [[/[ \t\r\n]+/, ""]],
|
83
|
+
type: [{ include: "@whitespace" }, [/\w+/, { token: "type", next: "@pop" }]],
|
84
|
+
keywordArg: [
|
85
|
+
// whitespace
|
86
|
+
[
|
87
|
+
/[ \t\r\n]+/,
|
88
|
+
{
|
89
|
+
cases: {
|
90
|
+
"@eos": { token: "", next: "@pop" },
|
91
|
+
"@default": ""
|
92
|
+
}
|
93
|
+
}
|
94
|
+
],
|
95
|
+
// comments
|
96
|
+
[/@comment/, "comment", "@pop"],
|
97
|
+
// brackets
|
98
|
+
[
|
99
|
+
/[<>()\[\]]/,
|
100
|
+
{
|
101
|
+
cases: {
|
102
|
+
"@eos": { token: "@brackets", next: "@pop" },
|
103
|
+
"@default": "@brackets"
|
104
|
+
}
|
105
|
+
}
|
106
|
+
],
|
107
|
+
// numbers
|
108
|
+
[
|
109
|
+
/\-?\d+/,
|
110
|
+
{
|
111
|
+
cases: {
|
112
|
+
"@eos": { token: "number", next: "@pop" },
|
113
|
+
"@default": "number"
|
114
|
+
}
|
115
|
+
}
|
116
|
+
],
|
117
|
+
// identifiers
|
118
|
+
[
|
119
|
+
/@identifier/,
|
120
|
+
{
|
121
|
+
cases: {
|
122
|
+
"@eos": { token: "identifier", next: "@pop" },
|
123
|
+
"@default": "identifier"
|
124
|
+
}
|
125
|
+
}
|
126
|
+
],
|
127
|
+
// delimiter
|
128
|
+
[
|
129
|
+
/[;=]/,
|
130
|
+
{
|
131
|
+
cases: {
|
132
|
+
"@eos": { token: "delimiter", next: "@pop" },
|
133
|
+
"@default": "delimiter"
|
134
|
+
}
|
135
|
+
}
|
136
|
+
]
|
137
|
+
]
|
138
|
+
}
|
139
|
+
};
|
140
|
+
export {
|
141
|
+
e as conf,
|
142
|
+
o as language
|
143
|
+
};
|