@kong-ui-public/monaco-editor 0.3.0 → 0.3.1-pr.2622.ca1f578c8.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/package.json +1 -1
- package/dist/abap-CrvW7_qN.js +0 -1398
- package/dist/apex-BAOI8p1v.js +0 -327
- package/dist/assets/css.worker-Cb0JI69t.js +0 -93
- package/dist/assets/editor.worker-DzMH9hFo.js +0 -26
- package/dist/assets/html.worker-BNFZMwEc.js +0 -470
- package/dist/assets/json.worker-BCybXpia.js +0 -58
- package/dist/assets/ts.worker-DAVh1bw1.js +0 -67731
- package/dist/azcli-BlCk_UqW.js +0 -68
- package/dist/bat-DPoEelVx.js +0 -100
- package/dist/bicep-Cp1F394l.js +0 -102
- package/dist/cameligo-CWqtSlQs.js +0 -174
- package/dist/clojure-CKBp32Gf.js +0 -761
- package/dist/coffee-CDo6vc-J.js +0 -232
- package/dist/cpp-DokufPgf.js +0 -389
- package/dist/csharp-BQi3szM0.js +0 -326
- package/dist/csp-BSGtCCZ-.js +0 -53
- package/dist/css-DEPFDJfb.js +0 -187
- package/dist/cssMode-BoaW_8EY.js +0 -141
- package/dist/cypher-DAb1vOxS.js +0 -263
- package/dist/dart-C8p4jewR.js +0 -281
- package/dist/dockerfile-DP0iLFPN.js +0 -130
- package/dist/ecl-BDQHA6fi.js +0 -456
- package/dist/elixir-D4II6kDM.js +0 -569
- package/dist/flow9-StcnL-VB.js +0 -142
- package/dist/freemarker2-DLxAEbra.js +0 -982
- package/dist/fsharp-DdUVp3EN.js +0 -217
- package/dist/go-D1-I258M.js +0 -218
- package/dist/graphql-DWkL3f8U.js +0 -151
- package/dist/handlebars-H1fAc7pY.js +0 -412
- package/dist/hcl-D_0MNifv.js +0 -183
- package/dist/html-Bjh5RSoV.js +0 -301
- package/dist/htmlMode-XE4-FvOp.js +0 -152
- package/dist/index-BtAApC8Z.js +0 -129109
- package/dist/ini-C4I2-MT7.js +0 -71
- package/dist/java-OBvaP_SS.js +0 -232
- package/dist/javascript-BL-y8a3N.js +0 -70
- package/dist/jsonMode-BO164Oml.js +0 -569
- package/dist/julia-BmDH8Kkf.js +0 -511
- package/dist/kotlin-Dhu5AGOD.js +0 -252
- package/dist/less-CzmjXREq.js +0 -162
- package/dist/lexon-CV2c4pN9.js +0 -157
- package/dist/liquid-B4OW2xCW.js +0 -233
- package/dist/lspLanguageFeatures-CLOLvtro.js +0 -1458
- package/dist/lua-CFY5U8qF.js +0 -162
- package/dist/m3-BL_AnZVh.js +0 -210
- package/dist/markdown-CWKQPXCv.js +0 -229
- package/dist/mdx-BscoYQtT.js +0 -158
- package/dist/mips-ButYmJ5E.js +0 -198
- package/dist/monaco-editor.es.js +0 -5
- package/dist/monaco-editor.umd.js +0 -1234
- package/dist/msdax-C3cnXqDh.js +0 -375
- package/dist/mysql-YlSHaf6G.js +0 -878
- package/dist/objective-c-Dwnlproe.js +0 -183
- package/dist/pascal-UzGbSWEN.js +0 -251
- package/dist/pascaligo-CslTgu68.js +0 -164
- package/dist/perl-oj6r_mgw.js +0 -626
- package/dist/pgsql-DSBO0Mev.js +0 -851
- package/dist/php-YzCD--7j.js +0 -500
- package/dist/pla-CmylB8vQ.js +0 -137
- package/dist/postiats-CLFW5gNY.js +0 -907
- package/dist/powerquery-CmOWUvlh.js +0 -890
- package/dist/powershell-fHQcmBLK.js +0 -239
- package/dist/protobuf-p5BArb-9.js +0 -420
- package/dist/pug-gVdUDvqf.js +0 -402
- package/dist/python-CdwN88xa.js +0 -294
- package/dist/qsharp-DnrWSUlt.js +0 -301
- package/dist/r-Cv309K2z.js +0 -243
- package/dist/razor-BzIEQn-i.js +0 -543
- package/dist/redis-DTcS4wMj.js +0 -302
- package/dist/redshift-hLxZVESM.js +0 -809
- package/dist/restructuredtext-C898lK4f.js +0 -174
- package/dist/ruby-CgKtnJIQ.js +0 -511
- package/dist/rust-bj8oxVnh.js +0 -343
- package/dist/sb-DWynz26l.js +0 -115
- package/dist/scala-BL5z1UEd.js +0 -370
- package/dist/scheme-DUJsH6VU.js +0 -108
- package/dist/scss-CxjmhvaL.js +0 -262
- package/dist/shell-D14Zs1dF.js +0 -221
- package/dist/solidity-WyRm-BGK.js +0 -1367
- package/dist/sophia-CKk-_Oa5.js +0 -199
- package/dist/sparql-DHtmINMZ.js +0 -201
- package/dist/sql-Dqaj5JHC.js +0 -853
- package/dist/st-Bj2IIaop.js +0 -416
- package/dist/style.css +0 -1
- package/dist/swift-DwxP72iM.js +0 -312
- package/dist/systemverilog-D7wJfuql.js +0 -576
- package/dist/tcl-0ApMt-eC.js +0 -232
- package/dist/tsMode-Bm7Ao8a0.js +0 -946
- package/dist/twig-DxwbdmvQ.js +0 -392
- package/dist/types/components/MonacoEditor.vue.d.ts +0 -52
- package/dist/types/components/MonacoEditor.vue.d.ts.map +0 -1
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts +0 -19
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/composables/useMonacoEditor.d.ts +0 -25
- package/dist/types/composables/useMonacoEditor.d.ts.map +0 -1
- package/dist/types/constants/index.d.ts +0 -3
- package/dist/types/constants/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/tests/mocks/monaco-editor-api.d.ts +0 -2
- package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -69
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/typescript-xVL7xVgf.js +0 -336
- package/dist/typespec-Fd-JwSuS.js +0 -117
- package/dist/vb-CxuyYE1I.js +0 -372
- package/dist/wgsl-DoEGc31J.js +0 -439
- package/dist/xml-5AZvXygb.js +0 -88
- package/dist/yaml-BpKYQQZ4.js +0 -199
package/dist/php-YzCD--7j.js
DELETED
|
@@ -1,500 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
3
|
-
comments: {
|
|
4
|
-
lineComment: "//",
|
|
5
|
-
blockComment: ["/*", "*/"]
|
|
6
|
-
},
|
|
7
|
-
brackets: [
|
|
8
|
-
["{", "}"],
|
|
9
|
-
["[", "]"],
|
|
10
|
-
["(", ")"]
|
|
11
|
-
],
|
|
12
|
-
autoClosingPairs: [
|
|
13
|
-
{ open: "{", close: "}", notIn: ["string"] },
|
|
14
|
-
{ open: "[", close: "]", notIn: ["string"] },
|
|
15
|
-
{ open: "(", close: ")", notIn: ["string"] },
|
|
16
|
-
{ open: '"', close: '"', notIn: ["string"] },
|
|
17
|
-
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
|
18
|
-
],
|
|
19
|
-
folding: {
|
|
20
|
-
markers: {
|
|
21
|
-
start: new RegExp("^\\s*(#|//)region\\b"),
|
|
22
|
-
end: new RegExp("^\\s*(#|//)endregion\\b")
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}, t = {
|
|
26
|
-
defaultToken: "",
|
|
27
|
-
tokenPostfix: "",
|
|
28
|
-
// ignoreCase: true,
|
|
29
|
-
// The main tokenizer for our languages
|
|
30
|
-
tokenizer: {
|
|
31
|
-
root: [
|
|
32
|
-
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.root" }],
|
|
33
|
-
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
|
34
|
-
[/<!--/, "comment.html", "@comment"],
|
|
35
|
-
[/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
36
|
-
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
|
37
|
-
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
|
38
|
-
[/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
39
|
-
[/(<\/)(\w+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
40
|
-
[/</, "delimiter.html"],
|
|
41
|
-
[/[^<]+/]
|
|
42
|
-
// text
|
|
43
|
-
],
|
|
44
|
-
doctype: [
|
|
45
|
-
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.comment" }],
|
|
46
|
-
[/[^>]+/, "metatag.content.html"],
|
|
47
|
-
[/>/, "metatag.html", "@pop"]
|
|
48
|
-
],
|
|
49
|
-
comment: [
|
|
50
|
-
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.comment" }],
|
|
51
|
-
[/-->/, "comment.html", "@pop"],
|
|
52
|
-
[/[^-]+/, "comment.content.html"],
|
|
53
|
-
[/./, "comment.content.html"]
|
|
54
|
-
],
|
|
55
|
-
otherTag: [
|
|
56
|
-
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.otherTag" }],
|
|
57
|
-
[/\/?>/, "delimiter.html", "@pop"],
|
|
58
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
59
|
-
[/'([^']*)'/, "attribute.value"],
|
|
60
|
-
[/[\w\-]+/, "attribute.name"],
|
|
61
|
-
[/=/, "delimiter"],
|
|
62
|
-
[/[ \t\r\n]+/]
|
|
63
|
-
// whitespace
|
|
64
|
-
],
|
|
65
|
-
// -- BEGIN <script> tags handling
|
|
66
|
-
// After <script
|
|
67
|
-
script: [
|
|
68
|
-
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.script" }],
|
|
69
|
-
[/type/, "attribute.name", "@scriptAfterType"],
|
|
70
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
71
|
-
[/'([^']*)'/, "attribute.value"],
|
|
72
|
-
[/[\w\-]+/, "attribute.name"],
|
|
73
|
-
[/=/, "delimiter"],
|
|
74
|
-
[
|
|
75
|
-
/>/,
|
|
76
|
-
{
|
|
77
|
-
token: "delimiter.html",
|
|
78
|
-
next: "@scriptEmbedded.text/javascript",
|
|
79
|
-
nextEmbedded: "text/javascript"
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
[/[ \t\r\n]+/],
|
|
83
|
-
// whitespace
|
|
84
|
-
[
|
|
85
|
-
/(<\/)(script\s*)(>)/,
|
|
86
|
-
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
87
|
-
]
|
|
88
|
-
],
|
|
89
|
-
// After <script ... type
|
|
90
|
-
scriptAfterType: [
|
|
91
|
-
[
|
|
92
|
-
/<\?((php)|=)?/,
|
|
93
|
-
{
|
|
94
|
-
token: "@rematch",
|
|
95
|
-
switchTo: "@phpInSimpleState.scriptAfterType"
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
[/=/, "delimiter", "@scriptAfterTypeEquals"],
|
|
99
|
-
[
|
|
100
|
-
/>/,
|
|
101
|
-
{
|
|
102
|
-
token: "delimiter.html",
|
|
103
|
-
next: "@scriptEmbedded.text/javascript",
|
|
104
|
-
nextEmbedded: "text/javascript"
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
// cover invalid e.g. <script type>
|
|
108
|
-
[/[ \t\r\n]+/],
|
|
109
|
-
// whitespace
|
|
110
|
-
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
111
|
-
],
|
|
112
|
-
// After <script ... type =
|
|
113
|
-
scriptAfterTypeEquals: [
|
|
114
|
-
[
|
|
115
|
-
/<\?((php)|=)?/,
|
|
116
|
-
{
|
|
117
|
-
token: "@rematch",
|
|
118
|
-
switchTo: "@phpInSimpleState.scriptAfterTypeEquals"
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
[
|
|
122
|
-
/"([^"]*)"/,
|
|
123
|
-
{
|
|
124
|
-
token: "attribute.value",
|
|
125
|
-
switchTo: "@scriptWithCustomType.$1"
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
[
|
|
129
|
-
/'([^']*)'/,
|
|
130
|
-
{
|
|
131
|
-
token: "attribute.value",
|
|
132
|
-
switchTo: "@scriptWithCustomType.$1"
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
[
|
|
136
|
-
/>/,
|
|
137
|
-
{
|
|
138
|
-
token: "delimiter.html",
|
|
139
|
-
next: "@scriptEmbedded.text/javascript",
|
|
140
|
-
nextEmbedded: "text/javascript"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
// cover invalid e.g. <script type=>
|
|
144
|
-
[/[ \t\r\n]+/],
|
|
145
|
-
// whitespace
|
|
146
|
-
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
147
|
-
],
|
|
148
|
-
// After <script ... type = $S2
|
|
149
|
-
scriptWithCustomType: [
|
|
150
|
-
[
|
|
151
|
-
/<\?((php)|=)?/,
|
|
152
|
-
{
|
|
153
|
-
token: "@rematch",
|
|
154
|
-
switchTo: "@phpInSimpleState.scriptWithCustomType.$S2"
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
[
|
|
158
|
-
/>/,
|
|
159
|
-
{
|
|
160
|
-
token: "delimiter.html",
|
|
161
|
-
next: "@scriptEmbedded.$S2",
|
|
162
|
-
nextEmbedded: "$S2"
|
|
163
|
-
}
|
|
164
|
-
],
|
|
165
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
166
|
-
[/'([^']*)'/, "attribute.value"],
|
|
167
|
-
[/[\w\-]+/, "attribute.name"],
|
|
168
|
-
[/=/, "delimiter"],
|
|
169
|
-
[/[ \t\r\n]+/],
|
|
170
|
-
// whitespace
|
|
171
|
-
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
172
|
-
],
|
|
173
|
-
scriptEmbedded: [
|
|
174
|
-
[
|
|
175
|
-
/<\?((php)|=)?/,
|
|
176
|
-
{
|
|
177
|
-
token: "@rematch",
|
|
178
|
-
switchTo: "@phpInEmbeddedState.scriptEmbedded.$S2",
|
|
179
|
-
nextEmbedded: "@pop"
|
|
180
|
-
}
|
|
181
|
-
],
|
|
182
|
-
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
|
183
|
-
],
|
|
184
|
-
// -- END <script> tags handling
|
|
185
|
-
// -- BEGIN <style> tags handling
|
|
186
|
-
// After <style
|
|
187
|
-
style: [
|
|
188
|
-
[/<\?((php)|=)?/, { token: "@rematch", switchTo: "@phpInSimpleState.style" }],
|
|
189
|
-
[/type/, "attribute.name", "@styleAfterType"],
|
|
190
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
191
|
-
[/'([^']*)'/, "attribute.value"],
|
|
192
|
-
[/[\w\-]+/, "attribute.name"],
|
|
193
|
-
[/=/, "delimiter"],
|
|
194
|
-
[
|
|
195
|
-
/>/,
|
|
196
|
-
{
|
|
197
|
-
token: "delimiter.html",
|
|
198
|
-
next: "@styleEmbedded.text/css",
|
|
199
|
-
nextEmbedded: "text/css"
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
[/[ \t\r\n]+/],
|
|
203
|
-
// whitespace
|
|
204
|
-
[
|
|
205
|
-
/(<\/)(style\s*)(>)/,
|
|
206
|
-
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
207
|
-
]
|
|
208
|
-
],
|
|
209
|
-
// After <style ... type
|
|
210
|
-
styleAfterType: [
|
|
211
|
-
[
|
|
212
|
-
/<\?((php)|=)?/,
|
|
213
|
-
{
|
|
214
|
-
token: "@rematch",
|
|
215
|
-
switchTo: "@phpInSimpleState.styleAfterType"
|
|
216
|
-
}
|
|
217
|
-
],
|
|
218
|
-
[/=/, "delimiter", "@styleAfterTypeEquals"],
|
|
219
|
-
[
|
|
220
|
-
/>/,
|
|
221
|
-
{
|
|
222
|
-
token: "delimiter.html",
|
|
223
|
-
next: "@styleEmbedded.text/css",
|
|
224
|
-
nextEmbedded: "text/css"
|
|
225
|
-
}
|
|
226
|
-
],
|
|
227
|
-
// cover invalid e.g. <style type>
|
|
228
|
-
[/[ \t\r\n]+/],
|
|
229
|
-
// whitespace
|
|
230
|
-
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
231
|
-
],
|
|
232
|
-
// After <style ... type =
|
|
233
|
-
styleAfterTypeEquals: [
|
|
234
|
-
[
|
|
235
|
-
/<\?((php)|=)?/,
|
|
236
|
-
{
|
|
237
|
-
token: "@rematch",
|
|
238
|
-
switchTo: "@phpInSimpleState.styleAfterTypeEquals"
|
|
239
|
-
}
|
|
240
|
-
],
|
|
241
|
-
[
|
|
242
|
-
/"([^"]*)"/,
|
|
243
|
-
{
|
|
244
|
-
token: "attribute.value",
|
|
245
|
-
switchTo: "@styleWithCustomType.$1"
|
|
246
|
-
}
|
|
247
|
-
],
|
|
248
|
-
[
|
|
249
|
-
/'([^']*)'/,
|
|
250
|
-
{
|
|
251
|
-
token: "attribute.value",
|
|
252
|
-
switchTo: "@styleWithCustomType.$1"
|
|
253
|
-
}
|
|
254
|
-
],
|
|
255
|
-
[
|
|
256
|
-
/>/,
|
|
257
|
-
{
|
|
258
|
-
token: "delimiter.html",
|
|
259
|
-
next: "@styleEmbedded.text/css",
|
|
260
|
-
nextEmbedded: "text/css"
|
|
261
|
-
}
|
|
262
|
-
],
|
|
263
|
-
// cover invalid e.g. <style type=>
|
|
264
|
-
[/[ \t\r\n]+/],
|
|
265
|
-
// whitespace
|
|
266
|
-
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
267
|
-
],
|
|
268
|
-
// After <style ... type = $S2
|
|
269
|
-
styleWithCustomType: [
|
|
270
|
-
[
|
|
271
|
-
/<\?((php)|=)?/,
|
|
272
|
-
{
|
|
273
|
-
token: "@rematch",
|
|
274
|
-
switchTo: "@phpInSimpleState.styleWithCustomType.$S2"
|
|
275
|
-
}
|
|
276
|
-
],
|
|
277
|
-
[
|
|
278
|
-
/>/,
|
|
279
|
-
{
|
|
280
|
-
token: "delimiter.html",
|
|
281
|
-
next: "@styleEmbedded.$S2",
|
|
282
|
-
nextEmbedded: "$S2"
|
|
283
|
-
}
|
|
284
|
-
],
|
|
285
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
286
|
-
[/'([^']*)'/, "attribute.value"],
|
|
287
|
-
[/[\w\-]+/, "attribute.name"],
|
|
288
|
-
[/=/, "delimiter"],
|
|
289
|
-
[/[ \t\r\n]+/],
|
|
290
|
-
// whitespace
|
|
291
|
-
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
292
|
-
],
|
|
293
|
-
styleEmbedded: [
|
|
294
|
-
[
|
|
295
|
-
/<\?((php)|=)?/,
|
|
296
|
-
{
|
|
297
|
-
token: "@rematch",
|
|
298
|
-
switchTo: "@phpInEmbeddedState.styleEmbedded.$S2",
|
|
299
|
-
nextEmbedded: "@pop"
|
|
300
|
-
}
|
|
301
|
-
],
|
|
302
|
-
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
|
303
|
-
],
|
|
304
|
-
// -- END <style> tags handling
|
|
305
|
-
phpInSimpleState: [
|
|
306
|
-
[/<\?((php)|=)?/, "metatag.php"],
|
|
307
|
-
[/\?>/, { token: "metatag.php", switchTo: "@$S2.$S3" }],
|
|
308
|
-
{ include: "phpRoot" }
|
|
309
|
-
],
|
|
310
|
-
phpInEmbeddedState: [
|
|
311
|
-
[/<\?((php)|=)?/, "metatag.php"],
|
|
312
|
-
[
|
|
313
|
-
/\?>/,
|
|
314
|
-
{
|
|
315
|
-
token: "metatag.php",
|
|
316
|
-
switchTo: "@$S2.$S3",
|
|
317
|
-
nextEmbedded: "$S3"
|
|
318
|
-
}
|
|
319
|
-
],
|
|
320
|
-
{ include: "phpRoot" }
|
|
321
|
-
],
|
|
322
|
-
phpRoot: [
|
|
323
|
-
[
|
|
324
|
-
/[a-zA-Z_]\w*/,
|
|
325
|
-
{
|
|
326
|
-
cases: {
|
|
327
|
-
"@phpKeywords": { token: "keyword.php" },
|
|
328
|
-
"@phpCompileTimeConstants": { token: "constant.php" },
|
|
329
|
-
"@default": "identifier.php"
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
],
|
|
333
|
-
[
|
|
334
|
-
/[$a-zA-Z_]\w*/,
|
|
335
|
-
{
|
|
336
|
-
cases: {
|
|
337
|
-
"@phpPreDefinedVariables": {
|
|
338
|
-
token: "variable.predefined.php"
|
|
339
|
-
},
|
|
340
|
-
"@default": "variable.php"
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
],
|
|
344
|
-
// brackets
|
|
345
|
-
[/[{}]/, "delimiter.bracket.php"],
|
|
346
|
-
[/[\[\]]/, "delimiter.array.php"],
|
|
347
|
-
[/[()]/, "delimiter.parenthesis.php"],
|
|
348
|
-
// whitespace
|
|
349
|
-
[/[ \t\r\n]+/],
|
|
350
|
-
// comments
|
|
351
|
-
[/(#|\/\/)$/, "comment.php"],
|
|
352
|
-
[/(#|\/\/)/, "comment.php", "@phpLineComment"],
|
|
353
|
-
// block comments
|
|
354
|
-
[/\/\*/, "comment.php", "@phpComment"],
|
|
355
|
-
// strings
|
|
356
|
-
[/"/, "string.php", "@phpDoubleQuoteString"],
|
|
357
|
-
[/'/, "string.php", "@phpSingleQuoteString"],
|
|
358
|
-
// delimiters
|
|
359
|
-
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/, "delimiter.php"],
|
|
360
|
-
// numbers
|
|
361
|
-
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float.php"],
|
|
362
|
-
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.php"],
|
|
363
|
-
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.php"],
|
|
364
|
-
[/0[0-7']*[0-7]/, "number.octal.php"],
|
|
365
|
-
[/0[bB][0-1']*[0-1]/, "number.binary.php"],
|
|
366
|
-
[/\d[\d']*/, "number.php"],
|
|
367
|
-
[/\d/, "number.php"]
|
|
368
|
-
],
|
|
369
|
-
phpComment: [
|
|
370
|
-
[/\*\//, "comment.php", "@pop"],
|
|
371
|
-
[/[^*]+/, "comment.php"],
|
|
372
|
-
[/./, "comment.php"]
|
|
373
|
-
],
|
|
374
|
-
phpLineComment: [
|
|
375
|
-
[/\?>/, { token: "@rematch", next: "@pop" }],
|
|
376
|
-
[/.$/, "comment.php", "@pop"],
|
|
377
|
-
[/[^?]+$/, "comment.php", "@pop"],
|
|
378
|
-
[/[^?]+/, "comment.php"],
|
|
379
|
-
[/./, "comment.php"]
|
|
380
|
-
],
|
|
381
|
-
phpDoubleQuoteString: [
|
|
382
|
-
[/[^\\"]+/, "string.php"],
|
|
383
|
-
[/@escapes/, "string.escape.php"],
|
|
384
|
-
[/\\./, "string.escape.invalid.php"],
|
|
385
|
-
[/"/, "string.php", "@pop"]
|
|
386
|
-
],
|
|
387
|
-
phpSingleQuoteString: [
|
|
388
|
-
[/[^\\']+/, "string.php"],
|
|
389
|
-
[/@escapes/, "string.escape.php"],
|
|
390
|
-
[/\\./, "string.escape.invalid.php"],
|
|
391
|
-
[/'/, "string.php", "@pop"]
|
|
392
|
-
]
|
|
393
|
-
},
|
|
394
|
-
phpKeywords: [
|
|
395
|
-
"abstract",
|
|
396
|
-
"and",
|
|
397
|
-
"array",
|
|
398
|
-
"as",
|
|
399
|
-
"break",
|
|
400
|
-
"callable",
|
|
401
|
-
"case",
|
|
402
|
-
"catch",
|
|
403
|
-
"cfunction",
|
|
404
|
-
"class",
|
|
405
|
-
"clone",
|
|
406
|
-
"const",
|
|
407
|
-
"continue",
|
|
408
|
-
"declare",
|
|
409
|
-
"default",
|
|
410
|
-
"do",
|
|
411
|
-
"else",
|
|
412
|
-
"elseif",
|
|
413
|
-
"enddeclare",
|
|
414
|
-
"endfor",
|
|
415
|
-
"endforeach",
|
|
416
|
-
"endif",
|
|
417
|
-
"endswitch",
|
|
418
|
-
"endwhile",
|
|
419
|
-
"extends",
|
|
420
|
-
"false",
|
|
421
|
-
"final",
|
|
422
|
-
"for",
|
|
423
|
-
"foreach",
|
|
424
|
-
"function",
|
|
425
|
-
"global",
|
|
426
|
-
"goto",
|
|
427
|
-
"if",
|
|
428
|
-
"implements",
|
|
429
|
-
"interface",
|
|
430
|
-
"instanceof",
|
|
431
|
-
"insteadof",
|
|
432
|
-
"namespace",
|
|
433
|
-
"new",
|
|
434
|
-
"null",
|
|
435
|
-
"object",
|
|
436
|
-
"old_function",
|
|
437
|
-
"or",
|
|
438
|
-
"private",
|
|
439
|
-
"protected",
|
|
440
|
-
"public",
|
|
441
|
-
"resource",
|
|
442
|
-
"static",
|
|
443
|
-
"switch",
|
|
444
|
-
"throw",
|
|
445
|
-
"trait",
|
|
446
|
-
"try",
|
|
447
|
-
"true",
|
|
448
|
-
"use",
|
|
449
|
-
"var",
|
|
450
|
-
"while",
|
|
451
|
-
"xor",
|
|
452
|
-
"die",
|
|
453
|
-
"echo",
|
|
454
|
-
"empty",
|
|
455
|
-
"exit",
|
|
456
|
-
"eval",
|
|
457
|
-
"include",
|
|
458
|
-
"include_once",
|
|
459
|
-
"isset",
|
|
460
|
-
"list",
|
|
461
|
-
"require",
|
|
462
|
-
"require_once",
|
|
463
|
-
"return",
|
|
464
|
-
"print",
|
|
465
|
-
"unset",
|
|
466
|
-
"yield",
|
|
467
|
-
"__construct"
|
|
468
|
-
],
|
|
469
|
-
phpCompileTimeConstants: [
|
|
470
|
-
"__CLASS__",
|
|
471
|
-
"__DIR__",
|
|
472
|
-
"__FILE__",
|
|
473
|
-
"__LINE__",
|
|
474
|
-
"__NAMESPACE__",
|
|
475
|
-
"__METHOD__",
|
|
476
|
-
"__FUNCTION__",
|
|
477
|
-
"__TRAIT__"
|
|
478
|
-
],
|
|
479
|
-
phpPreDefinedVariables: [
|
|
480
|
-
"$GLOBALS",
|
|
481
|
-
"$_SERVER",
|
|
482
|
-
"$_GET",
|
|
483
|
-
"$_POST",
|
|
484
|
-
"$_FILES",
|
|
485
|
-
"$_REQUEST",
|
|
486
|
-
"$_SESSION",
|
|
487
|
-
"$_ENV",
|
|
488
|
-
"$_COOKIE",
|
|
489
|
-
"$php_errormsg",
|
|
490
|
-
"$HTTP_RAW_POST_DATA",
|
|
491
|
-
"$http_response_header",
|
|
492
|
-
"$argc",
|
|
493
|
-
"$argv"
|
|
494
|
-
],
|
|
495
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
|
|
496
|
-
};
|
|
497
|
-
export {
|
|
498
|
-
e as conf,
|
|
499
|
-
t as language
|
|
500
|
-
};
|
package/dist/pla-CmylB8vQ.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
comments: {
|
|
3
|
-
lineComment: "#"
|
|
4
|
-
},
|
|
5
|
-
brackets: [
|
|
6
|
-
["[", "]"],
|
|
7
|
-
["<", ">"],
|
|
8
|
-
["(", ")"]
|
|
9
|
-
],
|
|
10
|
-
autoClosingPairs: [
|
|
11
|
-
{ open: "[", close: "]" },
|
|
12
|
-
{ open: "<", close: ">" },
|
|
13
|
-
{ open: "(", close: ")" }
|
|
14
|
-
],
|
|
15
|
-
surroundingPairs: [
|
|
16
|
-
{ open: "[", close: "]" },
|
|
17
|
-
{ open: "<", close: ">" },
|
|
18
|
-
{ open: "(", close: ")" }
|
|
19
|
-
]
|
|
20
|
-
}, o = {
|
|
21
|
-
defaultToken: "",
|
|
22
|
-
tokenPostfix: ".pla",
|
|
23
|
-
brackets: [
|
|
24
|
-
{ open: "[", close: "]", token: "delimiter.square" },
|
|
25
|
-
{ open: "<", close: ">", token: "delimiter.angle" },
|
|
26
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
27
|
-
],
|
|
28
|
-
keywords: [
|
|
29
|
-
".i",
|
|
30
|
-
".o",
|
|
31
|
-
".mv",
|
|
32
|
-
".ilb",
|
|
33
|
-
".ob",
|
|
34
|
-
".label",
|
|
35
|
-
".type",
|
|
36
|
-
".phase",
|
|
37
|
-
".pair",
|
|
38
|
-
".symbolic",
|
|
39
|
-
".symbolic-output",
|
|
40
|
-
".kiss",
|
|
41
|
-
".p",
|
|
42
|
-
".e",
|
|
43
|
-
".end"
|
|
44
|
-
],
|
|
45
|
-
// regular expressions
|
|
46
|
-
comment: /#.*$/,
|
|
47
|
-
identifier: /[a-zA-Z]+[a-zA-Z0-9_\-]*/,
|
|
48
|
-
plaContent: /[01\-~\|]+/,
|
|
49
|
-
// The main tokenizer for our languages
|
|
50
|
-
tokenizer: {
|
|
51
|
-
root: [
|
|
52
|
-
// comments and whitespace
|
|
53
|
-
{ include: "@whitespace" },
|
|
54
|
-
[/@comment/, "comment"],
|
|
55
|
-
// keyword
|
|
56
|
-
[
|
|
57
|
-
/\.([a-zA-Z_\-]+)/,
|
|
58
|
-
{
|
|
59
|
-
cases: {
|
|
60
|
-
"@eos": { token: "keyword.$1" },
|
|
61
|
-
"@keywords": {
|
|
62
|
-
cases: {
|
|
63
|
-
".type": { token: "keyword.$1", next: "@type" },
|
|
64
|
-
"@default": { token: "keyword.$1", next: "@keywordArg" }
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"@default": { token: "keyword.$1" }
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
// identifiers
|
|
72
|
-
[/@identifier/, "identifier"],
|
|
73
|
-
// PLA row
|
|
74
|
-
[/@plaContent/, "string"]
|
|
75
|
-
],
|
|
76
|
-
whitespace: [[/[ \t\r\n]+/, ""]],
|
|
77
|
-
type: [{ include: "@whitespace" }, [/\w+/, { token: "type", next: "@pop" }]],
|
|
78
|
-
keywordArg: [
|
|
79
|
-
// whitespace
|
|
80
|
-
[
|
|
81
|
-
/[ \t\r\n]+/,
|
|
82
|
-
{
|
|
83
|
-
cases: {
|
|
84
|
-
"@eos": { token: "", next: "@pop" },
|
|
85
|
-
"@default": ""
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
// comments
|
|
90
|
-
[/@comment/, "comment", "@pop"],
|
|
91
|
-
// brackets
|
|
92
|
-
[
|
|
93
|
-
/[<>()\[\]]/,
|
|
94
|
-
{
|
|
95
|
-
cases: {
|
|
96
|
-
"@eos": { token: "@brackets", next: "@pop" },
|
|
97
|
-
"@default": "@brackets"
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
// numbers
|
|
102
|
-
[
|
|
103
|
-
/\-?\d+/,
|
|
104
|
-
{
|
|
105
|
-
cases: {
|
|
106
|
-
"@eos": { token: "number", next: "@pop" },
|
|
107
|
-
"@default": "number"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
// identifiers
|
|
112
|
-
[
|
|
113
|
-
/@identifier/,
|
|
114
|
-
{
|
|
115
|
-
cases: {
|
|
116
|
-
"@eos": { token: "identifier", next: "@pop" },
|
|
117
|
-
"@default": "identifier"
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
// delimiter
|
|
122
|
-
[
|
|
123
|
-
/[;=]/,
|
|
124
|
-
{
|
|
125
|
-
cases: {
|
|
126
|
-
"@eos": { token: "delimiter", next: "@pop" },
|
|
127
|
-
"@default": "delimiter"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
export {
|
|
135
|
-
e as conf,
|
|
136
|
-
o as language
|
|
137
|
-
};
|