@kong-ui-public/monaco-editor 0.1.1 → 0.1.2-pr.2609.2ce4f4787.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/dist/abap-D0Neqhq6.js +1404 -0
- package/dist/apex-B5LhxkeG.js +332 -0
- package/dist/azcli-BrBH0QTU.js +74 -0
- package/dist/bat-BfzAov64.js +106 -0
- package/dist/bicep-C3bCSWel.js +108 -0
- package/dist/cameligo-sFL5plcd.js +180 -0
- package/dist/clojure-CfeExRz0.js +767 -0
- package/dist/coffee-Xws5K0WL.js +238 -0
- package/dist/cpp-CqOUEpxN.js +395 -0
- package/dist/csharp-DVLiBOZb.js +332 -0
- package/dist/csp-DVFp9bw5.js +59 -0
- package/dist/css-DwARn2R6.js +193 -0
- package/dist/cssMode-BRHW0OjB.js +1577 -0
- package/dist/cypher-uY0Mffat.js +269 -0
- package/dist/dart-D27H-mX_.js +287 -0
- package/dist/dockerfile-CmV85WZK.js +136 -0
- package/dist/ecl--fKn7yzB.js +462 -0
- package/dist/editor.main-BVWEsGeM.js +112170 -0
- package/dist/elixir-DUhH17ON.js +575 -0
- package/dist/flow9-B3Dx2LLe.js +148 -0
- package/dist/freemarker2-DrnILGvf.js +995 -0
- package/dist/fsharp-SyqBfUAR.js +223 -0
- package/dist/go-BbMR2tdT.js +224 -0
- package/dist/graphql-DDJE6tIl.js +157 -0
- package/dist/handlebars-D2vGkdp7.js +425 -0
- package/dist/hcl-YBvpaUqf.js +189 -0
- package/dist/html-D3HI-WFO.js +314 -0
- package/dist/htmlMode-CNpiDTvN.js +1587 -0
- package/dist/ini-Ct73dBtM.js +77 -0
- package/dist/java-C_jlkwoG.js +238 -0
- package/dist/javascript-DLZMP-Wa.js +76 -0
- package/dist/jsonMode-CEQtUpLb.js +2002 -0
- package/dist/julia-D8WE5U1e.js +517 -0
- package/dist/kotlin-Zy9aq5yB.js +259 -0
- package/dist/less-sZ0iHtE8.js +168 -0
- package/dist/lexon-CsdNL29A.js +163 -0
- package/dist/liquid-CnqLoV0A.js +246 -0
- package/dist/lua-C2YJo0zw.js +168 -0
- package/dist/m3-CPLP40SG.js +216 -0
- package/dist/markdown-B1mf5e0R.js +235 -0
- package/dist/mdx-C6hXTTY6.js +171 -0
- package/dist/mips-DA33BZX1.js +204 -0
- package/dist/monaco-editor.es.js +224 -14
- package/dist/monaco-editor.umd.js +1913 -1
- package/dist/msdax-CCYFIQsP.js +381 -0
- package/dist/mysql-hjmIjL-D.js +884 -0
- package/dist/objective-c-RRCpEmqC.js +189 -0
- package/dist/pascal-CeV8XfxB.js +257 -0
- package/dist/pascaligo-IEEGVJAJ.js +170 -0
- package/dist/perl-B5-QbHq_.js +632 -0
- package/dist/pgsql-s6kqEJmi.js +857 -0
- package/dist/php-CWWqzOo8.js +506 -0
- package/dist/pla-FSvb_YP_.js +143 -0
- package/dist/postiats-DQdscQXO.js +913 -0
- package/dist/powerquery-CtA5JA1I.js +896 -0
- package/dist/powershell-DglEq96N.js +245 -0
- package/dist/protobuf-BSepub3e.js +426 -0
- package/dist/pug-B1847F4G.js +408 -0
- package/dist/python-CGI_fE8F.js +307 -0
- package/dist/qsharp-D4i0Nqg9.js +307 -0
- package/dist/r-cdRigKxa.js +249 -0
- package/dist/razor-DNVpjohl.js +556 -0
- package/dist/redis-D9MFxvE8.js +308 -0
- package/dist/redshift-CmCnsvL-.js +815 -0
- package/dist/restructuredtext-CWy8J51t.js +180 -0
- package/dist/ruby-WP-c36m5.js +517 -0
- package/dist/rust-Q9FLdYpu.js +349 -0
- package/dist/sb-C54-JBGT.js +121 -0
- package/dist/scala-CzbFImc5.js +376 -0
- package/dist/scheme-BhfDmYN3.js +114 -0
- package/dist/scss-CEmiBXpS.js +268 -0
- package/dist/shell-Bmc1VhG0.js +227 -0
- package/dist/solidity-C9Q2I8Hh.js +1373 -0
- package/dist/sophia-jWa1UyKz.js +205 -0
- package/dist/sparql-CM7jctbc.js +207 -0
- package/dist/sql-WzihTkbg.js +859 -0
- package/dist/st-6y7_3aup.js +422 -0
- package/dist/style.css +1 -0
- package/dist/swift-k-0zxG_D.js +318 -0
- package/dist/systemverilog-Pnr5_rIP.js +582 -0
- package/dist/tcl-fNPXval8.js +238 -0
- package/dist/tsMode-CRUDJ1Gx.js +895 -0
- package/dist/twig-L2MkztkV.js +398 -0
- package/dist/types/composables/useMonacoEditor.d.ts +25 -0
- package/dist/types/composables/useMonacoEditor.d.ts.map +1 -0
- package/dist/types/constants/index.d.ts +3 -0
- package/dist/types/constants/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/tests/mocks/monaco-editor-api.d.ts +78 -0
- package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +68 -1
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/typescript-C2FvJtQm.js +349 -0
- package/dist/typespec-Cqqo-3Pt.js +123 -0
- package/dist/vb-B5YC2xN9.js +378 -0
- package/dist/wgsl-B-_uRex7.js +445 -0
- package/dist/xml-e_XsfZP6.js +101 -0
- package/dist/yaml-DOzdDlyx.js +212 -0
- package/package.json +14 -8
|
@@ -0,0 +1,238 @@
|
|
|
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
|
+
brackets: [
|
|
9
|
+
["{", "}"],
|
|
10
|
+
["[", "]"],
|
|
11
|
+
["(", ")"]
|
|
12
|
+
],
|
|
13
|
+
autoClosingPairs: [
|
|
14
|
+
{ open: "{", close: "}" },
|
|
15
|
+
{ open: "[", close: "]" },
|
|
16
|
+
{ open: "(", close: ")" },
|
|
17
|
+
{ open: '"', close: '"' },
|
|
18
|
+
{ open: "'", close: "'" }
|
|
19
|
+
],
|
|
20
|
+
surroundingPairs: [
|
|
21
|
+
{ open: "{", close: "}" },
|
|
22
|
+
{ open: "[", close: "]" },
|
|
23
|
+
{ open: "(", close: ")" },
|
|
24
|
+
{ open: '"', close: '"' },
|
|
25
|
+
{ open: "'", close: "'" }
|
|
26
|
+
]
|
|
27
|
+
}, t = {
|
|
28
|
+
tokenPostfix: ".tcl",
|
|
29
|
+
specialFunctions: [
|
|
30
|
+
"set",
|
|
31
|
+
"unset",
|
|
32
|
+
"rename",
|
|
33
|
+
"variable",
|
|
34
|
+
"proc",
|
|
35
|
+
"coroutine",
|
|
36
|
+
"foreach",
|
|
37
|
+
"incr",
|
|
38
|
+
"append",
|
|
39
|
+
"lappend",
|
|
40
|
+
"linsert",
|
|
41
|
+
"lreplace"
|
|
42
|
+
],
|
|
43
|
+
mainFunctions: [
|
|
44
|
+
"if",
|
|
45
|
+
"then",
|
|
46
|
+
"elseif",
|
|
47
|
+
"else",
|
|
48
|
+
"case",
|
|
49
|
+
"switch",
|
|
50
|
+
"while",
|
|
51
|
+
"for",
|
|
52
|
+
"break",
|
|
53
|
+
"continue",
|
|
54
|
+
"return",
|
|
55
|
+
"package",
|
|
56
|
+
"namespace",
|
|
57
|
+
"catch",
|
|
58
|
+
"exit",
|
|
59
|
+
"eval",
|
|
60
|
+
"expr",
|
|
61
|
+
"uplevel",
|
|
62
|
+
"upvar"
|
|
63
|
+
],
|
|
64
|
+
builtinFunctions: [
|
|
65
|
+
"file",
|
|
66
|
+
"info",
|
|
67
|
+
"concat",
|
|
68
|
+
"join",
|
|
69
|
+
"lindex",
|
|
70
|
+
"list",
|
|
71
|
+
"llength",
|
|
72
|
+
"lrange",
|
|
73
|
+
"lsearch",
|
|
74
|
+
"lsort",
|
|
75
|
+
"split",
|
|
76
|
+
"array",
|
|
77
|
+
"parray",
|
|
78
|
+
"binary",
|
|
79
|
+
"format",
|
|
80
|
+
"regexp",
|
|
81
|
+
"regsub",
|
|
82
|
+
"scan",
|
|
83
|
+
"string",
|
|
84
|
+
"subst",
|
|
85
|
+
"dict",
|
|
86
|
+
"cd",
|
|
87
|
+
"clock",
|
|
88
|
+
"exec",
|
|
89
|
+
"glob",
|
|
90
|
+
"pid",
|
|
91
|
+
"pwd",
|
|
92
|
+
"close",
|
|
93
|
+
"eof",
|
|
94
|
+
"fblocked",
|
|
95
|
+
"fconfigure",
|
|
96
|
+
"fcopy",
|
|
97
|
+
"fileevent",
|
|
98
|
+
"flush",
|
|
99
|
+
"gets",
|
|
100
|
+
"open",
|
|
101
|
+
"puts",
|
|
102
|
+
"read",
|
|
103
|
+
"seek",
|
|
104
|
+
"socket",
|
|
105
|
+
"tell",
|
|
106
|
+
"interp",
|
|
107
|
+
"after",
|
|
108
|
+
"auto_execok",
|
|
109
|
+
"auto_load",
|
|
110
|
+
"auto_mkindex",
|
|
111
|
+
"auto_reset",
|
|
112
|
+
"bgerror",
|
|
113
|
+
"error",
|
|
114
|
+
"global",
|
|
115
|
+
"history",
|
|
116
|
+
"load",
|
|
117
|
+
"source",
|
|
118
|
+
"time",
|
|
119
|
+
"trace",
|
|
120
|
+
"unknown",
|
|
121
|
+
"unset",
|
|
122
|
+
"update",
|
|
123
|
+
"vwait",
|
|
124
|
+
"winfo",
|
|
125
|
+
"wm",
|
|
126
|
+
"bind",
|
|
127
|
+
"event",
|
|
128
|
+
"pack",
|
|
129
|
+
"place",
|
|
130
|
+
"grid",
|
|
131
|
+
"font",
|
|
132
|
+
"bell",
|
|
133
|
+
"clipboard",
|
|
134
|
+
"destroy",
|
|
135
|
+
"focus",
|
|
136
|
+
"grab",
|
|
137
|
+
"lower",
|
|
138
|
+
"option",
|
|
139
|
+
"raise",
|
|
140
|
+
"selection",
|
|
141
|
+
"send",
|
|
142
|
+
"tk",
|
|
143
|
+
"tkwait",
|
|
144
|
+
"tk_bisque",
|
|
145
|
+
"tk_focusNext",
|
|
146
|
+
"tk_focusPrev",
|
|
147
|
+
"tk_focusFollowsMouse",
|
|
148
|
+
"tk_popup",
|
|
149
|
+
"tk_setPalette"
|
|
150
|
+
],
|
|
151
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
152
|
+
brackets: [
|
|
153
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
154
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
155
|
+
{ open: "[", close: "]", token: "delimiter.square" }
|
|
156
|
+
],
|
|
157
|
+
escapes: /\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
158
|
+
variables: /(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/,
|
|
159
|
+
tokenizer: {
|
|
160
|
+
root: [
|
|
161
|
+
// identifiers and keywords
|
|
162
|
+
[
|
|
163
|
+
/[a-zA-Z_]\w*/,
|
|
164
|
+
{
|
|
165
|
+
cases: {
|
|
166
|
+
"@specialFunctions": {
|
|
167
|
+
token: "keyword.flow",
|
|
168
|
+
next: "@specialFunc"
|
|
169
|
+
},
|
|
170
|
+
"@mainFunctions": "keyword",
|
|
171
|
+
"@builtinFunctions": "variable",
|
|
172
|
+
"@default": "operator.scss"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
[/\s+\-+(?!\d|\.)\w*|{\*}/, "metatag"],
|
|
177
|
+
// whitespace
|
|
178
|
+
{ include: "@whitespace" },
|
|
179
|
+
// delimiters and operators
|
|
180
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
181
|
+
[/@symbols/, "operator"],
|
|
182
|
+
[/\$+(?:\:\:)?\{/, { token: "identifier", next: "@nestedVariable" }],
|
|
183
|
+
[/@variables/, "type.identifier"],
|
|
184
|
+
[/\.(?!\d|\.)[\w\-]*/, "operator.sql"],
|
|
185
|
+
// numbers
|
|
186
|
+
[/\d+(\.\d+)?/, "number"],
|
|
187
|
+
[/\d+/, "number"],
|
|
188
|
+
// delimiter
|
|
189
|
+
[/;/, "delimiter"],
|
|
190
|
+
// strings
|
|
191
|
+
[/"/, { token: "string.quote", bracket: "@open", next: "@dstring" }],
|
|
192
|
+
[/'/, { token: "string.quote", bracket: "@open", next: "@sstring" }]
|
|
193
|
+
],
|
|
194
|
+
dstring: [
|
|
195
|
+
[/\[/, { token: "@brackets", next: "@nestedCall" }],
|
|
196
|
+
[/\$+(?:\:\:)?\{/, { token: "identifier", next: "@nestedVariable" }],
|
|
197
|
+
[/@variables/, "type.identifier"],
|
|
198
|
+
[/[^\\$\[\]"]+/, "string"],
|
|
199
|
+
[/@escapes/, "string.escape"],
|
|
200
|
+
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
201
|
+
],
|
|
202
|
+
sstring: [
|
|
203
|
+
[/\[/, { token: "@brackets", next: "@nestedCall" }],
|
|
204
|
+
[/\$+(?:\:\:)?\{/, { token: "identifier", next: "@nestedVariable" }],
|
|
205
|
+
[/@variables/, "type.identifier"],
|
|
206
|
+
[/[^\\$\[\]']+/, "string"],
|
|
207
|
+
[/@escapes/, "string.escape"],
|
|
208
|
+
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
209
|
+
],
|
|
210
|
+
whitespace: [
|
|
211
|
+
[/[ \t\r\n]+/, "white"],
|
|
212
|
+
[/#.*\\$/, { token: "comment", next: "@newlineComment" }],
|
|
213
|
+
[/#.*(?!\\)$/, "comment"]
|
|
214
|
+
],
|
|
215
|
+
newlineComment: [
|
|
216
|
+
[/.*\\$/, "comment"],
|
|
217
|
+
[/.*(?!\\)$/, { token: "comment", next: "@pop" }]
|
|
218
|
+
],
|
|
219
|
+
nestedVariable: [
|
|
220
|
+
[/[^\{\}\$]+/, "type.identifier"],
|
|
221
|
+
[/\}/, { token: "identifier", next: "@pop" }]
|
|
222
|
+
],
|
|
223
|
+
nestedCall: [
|
|
224
|
+
[/\[/, { token: "@brackets", next: "@nestedCall" }],
|
|
225
|
+
[/\]/, { token: "@brackets", next: "@pop" }],
|
|
226
|
+
{ include: "root" }
|
|
227
|
+
],
|
|
228
|
+
specialFunc: [
|
|
229
|
+
[/"/, { token: "string", next: "@dstring" }],
|
|
230
|
+
[/'/, { token: "string", next: "@sstring" }],
|
|
231
|
+
[/\S+/, { token: "type", next: "@pop" }]
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
export {
|
|
236
|
+
e as conf,
|
|
237
|
+
t as language
|
|
238
|
+
};
|