@dronico/droni-kit 1.6.0 → 1.7.0
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/CHANGELOG.md +14 -0
- package/dist/abap-CrVaG5QI.cjs +6 -0
- package/dist/abap-D0Neqhq6.js +1404 -0
- package/dist/apex-B5LhxkeG.js +332 -0
- package/dist/apex-CGiaaokt.cjs +6 -0
- package/dist/assets/css.worker-DNgQEC96.js +84 -0
- package/dist/assets/editor.worker-BKD3YLiN.js +12 -0
- package/dist/assets/html.worker-B7xpmB-M.js +461 -0
- package/dist/assets/json.worker-td2JV8fN.js +49 -0
- package/dist/assets/ts.worker-CqZGdM85.js +51334 -0
- package/dist/azcli-BrBH0QTU.js +74 -0
- package/dist/azcli-CCWOS89X.cjs +6 -0
- package/dist/bat-BfzAov64.js +106 -0
- package/dist/bat-dplVPQ-_.cjs +6 -0
- package/dist/bicep-C3bCSWel.js +108 -0
- package/dist/bicep-Q9zrsOvk.cjs +7 -0
- package/dist/cameligo-Dr5j7v0u.cjs +6 -0
- package/dist/cameligo-sFL5plcd.js +180 -0
- package/dist/clojure-CfeExRz0.js +767 -0
- package/dist/clojure-DPJGbZtj.cjs +6 -0
- package/dist/coffee-CUV2cHk6.cjs +6 -0
- package/dist/coffee-Xws5K0WL.js +238 -0
- package/dist/cpp-CqOUEpxN.js +395 -0
- package/dist/cpp-DyuKq4fH.cjs +6 -0
- package/dist/csharp-DVLiBOZb.js +332 -0
- package/dist/csharp-d4dFAWKM.cjs +6 -0
- package/dist/csp-DVFp9bw5.js +59 -0
- package/dist/csp-Lc8LbON9.cjs +6 -0
- package/dist/css-D8IzNaWL.cjs +8 -0
- package/dist/css-DwARn2R6.js +193 -0
- package/dist/cssMode-BxawWP4c.js +1577 -0
- package/dist/cssMode-tfSu9n5R.cjs +9 -0
- package/dist/cypher-BuSmvVBI.cjs +6 -0
- package/dist/cypher-uY0Mffat.js +269 -0
- package/dist/dart-D27H-mX_.js +287 -0
- package/dist/dart-d-sZXKUo.cjs +6 -0
- package/dist/dockerfile-CmV85WZK.js +136 -0
- package/dist/dockerfile-OepqCuVM.cjs +6 -0
- package/dist/droni-kit.cjs.js +1 -350
- package/dist/droni-kit.css +1 -1
- package/dist/droni-kit.es.js +7 -859
- package/dist/ecl--fKn7yzB.js +462 -0
- package/dist/ecl-GFERKf5i.cjs +6 -0
- package/dist/elixir-9a1efda4.cjs +6 -0
- package/dist/elixir-DUhH17ON.js +575 -0
- package/dist/flow9-B3Dx2LLe.js +148 -0
- package/dist/flow9-DsqME3Wt.cjs +6 -0
- package/dist/freemarker2-DlXlL0ru.cjs +8 -0
- package/dist/freemarker2-KNWT8NBX.js +995 -0
- package/dist/fsharp-DtZL2hil.cjs +6 -0
- package/dist/fsharp-SyqBfUAR.js +223 -0
- package/dist/go-B11TqKJA.cjs +6 -0
- package/dist/go-BbMR2tdT.js +224 -0
- package/dist/graphql-DDJE6tIl.js +157 -0
- package/dist/graphql-DrfV554J.cjs +6 -0
- package/dist/handlebars-0kfDCare.cjs +6 -0
- package/dist/handlebars-D-AmzO3L.js +425 -0
- package/dist/hcl-B0mc1H5M.cjs +6 -0
- package/dist/hcl-YBvpaUqf.js +189 -0
- package/dist/html-B1PoDZu9.cjs +6 -0
- package/dist/html-BuXWU8ll.js +314 -0
- package/dist/htmlMode-CMgNS0o0.js +1587 -0
- package/dist/htmlMode-Db5FK73j.cjs +9 -0
- package/dist/index-BGLtnN_f.js +113179 -0
- package/dist/index-DVZDWSQK.cjs +1504 -0
- package/dist/index.d.ts +2 -1
- package/dist/ini-Ct73dBtM.js +77 -0
- package/dist/ini-ymhBH5HG.cjs +6 -0
- package/dist/java-C_jlkwoG.js +238 -0
- package/dist/java-D4zTn_HA.cjs +6 -0
- package/dist/javascript-BluOHmb2.js +76 -0
- package/dist/javascript-Dd-uqNGl.cjs +6 -0
- package/dist/jsonMode-CN3U73n8.js +2002 -0
- package/dist/jsonMode-akczA384.cjs +15 -0
- package/dist/julia-D8WE5U1e.js +517 -0
- package/dist/julia-Dp7_oxTx.cjs +6 -0
- package/dist/kotlin-DN07yPPp.cjs +6 -0
- package/dist/kotlin-Zy9aq5yB.js +259 -0
- package/dist/less-CtJmsSxx.cjs +7 -0
- package/dist/less-sZ0iHtE8.js +168 -0
- package/dist/lexon-BH122-aN.cjs +6 -0
- package/dist/lexon-CsdNL29A.js +163 -0
- package/dist/liquid-BtsEcJB0.js +246 -0
- package/dist/liquid-CsxRe0ow.cjs +6 -0
- package/dist/lua-C2YJo0zw.js +168 -0
- package/dist/lua-DF1giqni.cjs +6 -0
- package/dist/m3-BSVLgJdx.cjs +6 -0
- package/dist/m3-CPLP40SG.js +216 -0
- package/dist/markdown-B1mf5e0R.js +235 -0
- package/dist/markdown-DqkJT7wW.cjs +6 -0
- package/dist/mdx-De3vCfHs.cjs +6 -0
- package/dist/mdx-GbFA03uL.js +171 -0
- package/dist/mips-DA33BZX1.js +204 -0
- package/dist/mips-HcsFOvwE.cjs +6 -0
- package/dist/msdax-CCYFIQsP.js +381 -0
- package/dist/msdax-D8wkgf9t.cjs +6 -0
- package/dist/mysql-D1qSUjcB.cjs +6 -0
- package/dist/mysql-hjmIjL-D.js +884 -0
- package/dist/objective-c-BcY1nQEp.cjs +6 -0
- package/dist/objective-c-RRCpEmqC.js +189 -0
- package/dist/pascal-C6VID8iC.cjs +6 -0
- package/dist/pascal-CeV8XfxB.js +257 -0
- package/dist/pascaligo-CtEkUcZy.cjs +6 -0
- package/dist/pascaligo-IEEGVJAJ.js +170 -0
- package/dist/perl-B5-QbHq_.js +632 -0
- package/dist/perl-BS5MoSit.cjs +6 -0
- package/dist/pgsql-DSQqzbUN.cjs +6 -0
- package/dist/pgsql-s6kqEJmi.js +857 -0
- package/dist/php-CWWqzOo8.js +506 -0
- package/dist/php-Dcbv8it3.cjs +6 -0
- package/dist/pla-BKGu3P8x.cjs +6 -0
- package/dist/pla-FSvb_YP_.js +143 -0
- package/dist/postiats-DQdscQXO.js +913 -0
- package/dist/postiats-lASv8P6N.cjs +6 -0
- package/dist/powerquery-BuqmBiPU.cjs +6 -0
- package/dist/powerquery-CtA5JA1I.js +896 -0
- package/dist/powershell-CtRTGCOm.cjs +6 -0
- package/dist/powershell-DglEq96N.js +245 -0
- package/dist/protobuf-BSepub3e.js +426 -0
- package/dist/protobuf-Dk87ns3u.cjs +7 -0
- package/dist/pug-B1847F4G.js +408 -0
- package/dist/pug-CVbk24PQ.cjs +6 -0
- package/dist/python-DWbCY_Xp.cjs +6 -0
- package/dist/python-ggxgHils.js +307 -0
- package/dist/qsharp-BSix4Z0w.cjs +6 -0
- package/dist/qsharp-D4i0Nqg9.js +307 -0
- package/dist/r-CSIGVqGj.cjs +6 -0
- package/dist/r-cdRigKxa.js +249 -0
- package/dist/razor-BEkgHfqS.js +556 -0
- package/dist/razor-DLYHYcrv.cjs +6 -0
- package/dist/redis-1SUKo9jD.cjs +6 -0
- package/dist/redis-D9MFxvE8.js +308 -0
- package/dist/redshift-BS1FVf13.cjs +6 -0
- package/dist/redshift-CmCnsvL-.js +815 -0
- package/dist/restructuredtext-CWy8J51t.js +180 -0
- package/dist/restructuredtext-DU-k0-PC.cjs +6 -0
- package/dist/ruby-WP-c36m5.js +517 -0
- package/dist/ruby-aigiByO4.cjs +6 -0
- package/dist/rust-Q9FLdYpu.js +349 -0
- package/dist/rust-adCJoS28.cjs +6 -0
- package/dist/sb-C54-JBGT.js +121 -0
- package/dist/sb-CiUR99st.cjs +6 -0
- package/dist/scala-CzbFImc5.js +376 -0
- package/dist/scala-Tb5I4vBh.cjs +6 -0
- package/dist/scheme-BMUadJWp.cjs +6 -0
- package/dist/scheme-BhfDmYN3.js +114 -0
- package/dist/scss-BICI8Lvl.cjs +8 -0
- package/dist/scss-CEmiBXpS.js +268 -0
- package/dist/shell-BUjduzW4.cjs +6 -0
- package/dist/shell-Bmc1VhG0.js +227 -0
- package/dist/solidity-C9Q2I8Hh.js +1373 -0
- package/dist/solidity-DFZoFjgL.cjs +6 -0
- package/dist/sophia-B_a5zu_Y.cjs +6 -0
- package/dist/sophia-jWa1UyKz.js +205 -0
- package/dist/sparql-C-N2tZtn.cjs +6 -0
- package/dist/sparql-CM7jctbc.js +207 -0
- package/dist/sql-CVdEafkq.cjs +6 -0
- package/dist/sql-WzihTkbg.js +859 -0
- package/dist/st-2HB7Hiwr.cjs +6 -0
- package/dist/st-6y7_3aup.js +422 -0
- package/dist/stories/Widgets/DuiEditor.stories.d.ts +215 -0
- package/dist/stories/Widgets/DuiEditor.vue.d.ts +128 -0
- package/dist/swift-k-0zxG_D.js +318 -0
- package/dist/swift-xGTYXUAm.cjs +8 -0
- package/dist/systemverilog-BaPbkNTu.cjs +6 -0
- package/dist/systemverilog-Pnr5_rIP.js +582 -0
- package/dist/tcl-SSKta9Un.cjs +6 -0
- package/dist/tcl-fNPXval8.js +238 -0
- package/dist/tsMode-C1l1tCfb.cjs +16 -0
- package/dist/tsMode-ZKX1PVjf.js +895 -0
- package/dist/twig-ByEpcNlL.cjs +6 -0
- package/dist/twig-L2MkztkV.js +398 -0
- package/dist/typescript-BdT4l6R6.js +349 -0
- package/dist/typescript-C3XJ8fQU.cjs +6 -0
- package/dist/typespec-Bxe2hBLx.cjs +6 -0
- package/dist/typespec-Cqqo-3Pt.js +123 -0
- package/dist/vb-B5YC2xN9.js +378 -0
- package/dist/vb-m8wPqU1B.cjs +6 -0
- package/dist/wgsl-B-_uRex7.js +445 -0
- package/dist/wgsl-CPwT7Vox.cjs +303 -0
- package/dist/xml-BmfyGshe.js +101 -0
- package/dist/xml-sg_Kz2JP.cjs +6 -0
- package/dist/yaml-BpMNYeJt.js +212 -0
- package/dist/yaml-CVqxp3pm.cjs +6 -0
- package/package.json +4 -2
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
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,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*(#|//)region\\b"),end:new RegExp("^\\s*(#|//)endregion\\b")}}},t={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<]+/]],doctype:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/(#|\/\/)$/,"comment.php"],[/(#|\/\/)/,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};exports.conf=e;exports.language=t;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var e={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},o={defaultToken:"",tokenPostfix:".pla",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"<",close:">",token:"delimiter.angle"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:[".i",".o",".mv",".ilb",".ob",".label",".type",".phase",".pair",".symbolic",".symbolic-output",".kiss",".p",".e",".end"],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:"@whitespace"},[/@comment/,"comment"],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:"keyword.$1"},"@keywords":{cases:{".type":{token:"keyword.$1",next:"@type"},"@default":{token:"keyword.$1",next:"@keywordArg"}}},"@default":{token:"keyword.$1"}}}],[/@identifier/,"identifier"],[/@plaContent/,"string"]],whitespace:[[/[ \t\r\n]+/,""]],type:[{include:"@whitespace"},[/\w+/,{token:"type",next:"@pop"}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:"",next:"@pop"},"@default":""}}],[/@comment/,"comment","@pop"],[/[<>()\[\]]/,{cases:{"@eos":{token:"@brackets",next:"@pop"},"@default":"@brackets"}}],[/\-?\d+/,{cases:{"@eos":{token:"number",next:"@pop"},"@default":"number"}}],[/@identifier/,{cases:{"@eos":{token:"identifier",next:"@pop"},"@default":"identifier"}}],[/[;=]/,{cases:{"@eos":{token:"delimiter",next:"@pop"},"@default":"delimiter"}}]]}};exports.conf=e;exports.language=o;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
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
|
+
};
|