monacozen 0.0.1 → 0.2.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/README.md +219 -0
- package/assets/antimono-ClsI0fxy.js +5 -0
- package/assets/antimono-zBXMptjq.css +1 -0
- package/assets/bat-T2vjbQzY.js +125 -0
- package/assets/bicep-B6UDBWZN.js +220 -0
- package/assets/clojure-BvXzD8Uz.js +148 -0
- package/assets/coffee-D_yet6sT.js +262 -0
- package/assets/cpp-CsfEADPM.js +232 -0
- package/assets/csharp-jw3fFksF.js +262 -0
- package/assets/css-FsiUe-xI.js +286 -0
- package/assets/css.worker-BIsSvM_Q.js +96 -0
- package/assets/css.worker-BSHdDU9y.js +6 -0
- package/assets/cssMode-7U-ime2d.js +65 -0
- package/assets/cypher-B8DgU2PH.js +214 -0
- package/assets/dart-D1x60wEn.js +238 -0
- package/assets/dist-Bx9hOuoB.js +624 -0
- package/assets/dockerfile-DSHxsy4G.js +193 -0
- package/assets/editor.api-ZYFspLPt.js +85776 -0
- package/assets/editorWebWorkerMain-BioN9fGU.js +33 -0
- package/assets/editorWebWorkerMain-DXr8-Jst.js +6 -0
- package/assets/elixir-Cr7BtjRU.js +525 -0
- package/assets/fsharp-CeVKIr0d.js +149 -0
- package/assets/go-BL4_0srD.js +167 -0
- package/assets/graphql-mhWekwK0.js +176 -0
- package/assets/handlebars-rQdtgZoQ.js +412 -0
- package/assets/hcl-CfyDj6z_.js +221 -0
- package/assets/html-DIDrd2Z7.js +333 -0
- package/assets/html.worker-BrBx6eB3.js +6 -0
- package/assets/html.worker-CEvqvEpu.js +509 -0
- package/assets/htmlMode-i6u-9r7u.js +74 -0
- package/assets/ini-DhiXkl_g.js +96 -0
- package/assets/java-Ct9YHm5L.js +175 -0
- package/assets/javascript-By915NHa.js +20 -0
- package/assets/json.worker-B0PzJ5jL.js +6 -0
- package/assets/json.worker-CAiVr-gV.js +65 -0
- package/assets/jsonMode-DAP8CNa2.js +450 -0
- package/assets/julia-BAYXm_pL.js +416 -0
- package/assets/kotlin-JEujETri.js +184 -0
- package/assets/less-oHZXXDVD.js +244 -0
- package/assets/liquid-Cvs1eMgo.js +199 -0
- package/assets/lspLanguageFeatures-D6P77uh_.js +1455 -0
- package/assets/lua-B3ViXcD8.js +202 -0
- package/assets/main-16cPxgwS.js +107 -0
- package/assets/main-CB71Lf5W.js +129 -0
- package/assets/main-HEYSEiwe.js +66 -0
- package/assets/markdown-Ggb6Rgvc.js +264 -0
- package/assets/mdx-Ce7sXDA4.js +329 -0
- package/assets/mips-cYdfQChM.js +130 -0
- package/assets/monaco-d37b1a8f.css +3 -0
- package/assets/monaco-o5F6wkXp.js +40865 -0
- package/assets/mysql-nklBC2QL.js +170 -0
- package/assets/objective-c-x5BzCYEv.js +146 -0
- package/assets/pascal-DWL5ya_C.js +178 -0
- package/assets/perl-CbRoLks6.js +318 -0
- package/assets/pgsql-CVS-AsDB.js +160 -0
- package/assets/php-6gZIubF1.js +473 -0
- package/assets/powershell-DKgJI7BG.js +213 -0
- package/assets/protobuf-N0VyW3k9.js +661 -0
- package/assets/pug-BIMEUctf.js +302 -0
- package/assets/python-BKt2Winm.js +254 -0
- package/assets/r-Cb2uCcX6.js +191 -0
- package/assets/redis-D1CRAuQ1.js +125 -0
- package/assets/ruby-BzpgsYNr.js +529 -0
- package/assets/rust-CkIXqWDr.js +180 -0
- package/assets/scala-CnJ7htCu.js +553 -0
- package/assets/scss-xP2eAFyY.js +419 -0
- package/assets/shell-JSjWPSrk.js +225 -0
- package/assets/solidity-C8AFhoIi.js +149 -0
- package/assets/sql-DqW-LmZI.js +173 -0
- package/assets/swift-BcHKQY-M.js +215 -0
- package/assets/systemverilog-Dmu-Ht4V.js +300 -0
- package/assets/ts.worker-BAchZA3W.js +6 -0
- package/assets/ts.worker-DZhhT1EO.js +67741 -0
- package/assets/tsMode-C_Fsqh0j.js +566 -0
- package/assets/twig-Bj4rwioa.js +390 -0
- package/assets/typescript-Djsb1cC9.js +257 -0
- package/assets/typespec-xwJ6QpRP.js +236 -0
- package/assets/vb-CMxAjmFH.js +262 -0
- package/assets/wgsl-CTYGQRo2.js +147 -0
- package/assets/xml-D7cJD5hW.js +130 -0
- package/assets/yaml-B8A0QdVf.js +223 -0
- package/assets/yaml.worker-Crtsysk5.js +474 -0
- package/assets/yaml.worker-DZ36155v.js +6 -0
- package/lib.d.ts +8403 -0
- package/lib.js +2 -0
- package/package.json +1 -1
- package/src/main.js +29 -0
- package/index.d.ts +0 -6
- package/index.js +0 -1
- package/readme.md +0 -1
- /package/{license.txt → LICENSE} +0 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/languages/definitions/bat/bat.js
|
|
2
|
+
var e = {
|
|
3
|
+
comments: { lineComment: "REM" },
|
|
4
|
+
brackets: [
|
|
5
|
+
["{", "}"],
|
|
6
|
+
["[", "]"],
|
|
7
|
+
["(", ")"]
|
|
8
|
+
],
|
|
9
|
+
autoClosingPairs: [
|
|
10
|
+
{
|
|
11
|
+
open: "{",
|
|
12
|
+
close: "}"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
open: "[",
|
|
16
|
+
close: "]"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
open: "(",
|
|
20
|
+
close: ")"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
open: "\"",
|
|
24
|
+
close: "\""
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
surroundingPairs: [
|
|
28
|
+
{
|
|
29
|
+
open: "[",
|
|
30
|
+
close: "]"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
open: "(",
|
|
34
|
+
close: ")"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
open: "\"",
|
|
38
|
+
close: "\""
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
folding: { markers: {
|
|
42
|
+
start: /* @__PURE__ */ RegExp("^\\s*(::\\s*|REM\\s+)#region"),
|
|
43
|
+
end: /* @__PURE__ */ RegExp("^\\s*(::\\s*|REM\\s+)#endregion")
|
|
44
|
+
} }
|
|
45
|
+
}, t = {
|
|
46
|
+
defaultToken: "",
|
|
47
|
+
ignoreCase: !0,
|
|
48
|
+
tokenPostfix: ".bat",
|
|
49
|
+
brackets: [
|
|
50
|
+
{
|
|
51
|
+
token: "delimiter.bracket",
|
|
52
|
+
open: "{",
|
|
53
|
+
close: "}"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
token: "delimiter.parenthesis",
|
|
57
|
+
open: "(",
|
|
58
|
+
close: ")"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
token: "delimiter.square",
|
|
62
|
+
open: "[",
|
|
63
|
+
close: "]"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
keywords: /call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,
|
|
67
|
+
symbols: /[=><!~?&|+\-*\/\^;\.,]+/,
|
|
68
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
69
|
+
tokenizer: {
|
|
70
|
+
root: [
|
|
71
|
+
[/^(\s*)(rem(?:\s.*|))$/, ["", "comment"]],
|
|
72
|
+
[/(\@?)(@keywords)(?!\w)/, [{ token: "keyword" }, { token: "keyword.$2" }]],
|
|
73
|
+
[/[ \t\r\n]+/, ""],
|
|
74
|
+
[/setlocal(?!\w)/, "keyword.tag-setlocal"],
|
|
75
|
+
[/endlocal(?!\w)/, "keyword.tag-setlocal"],
|
|
76
|
+
[/[a-zA-Z_]\w*/, ""],
|
|
77
|
+
[/:\w*/, "metatag"],
|
|
78
|
+
[/%[^%]+%/, "variable"],
|
|
79
|
+
[/%%[\w]+(?!\w)/, "variable"],
|
|
80
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
81
|
+
[/@symbols/, "delimiter"],
|
|
82
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
83
|
+
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
|
84
|
+
[/\d+/, "number"],
|
|
85
|
+
[/[;,.]/, "delimiter"],
|
|
86
|
+
[
|
|
87
|
+
/"/,
|
|
88
|
+
"string",
|
|
89
|
+
"@string.\""
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
/'/,
|
|
93
|
+
"string",
|
|
94
|
+
"@string.'"
|
|
95
|
+
]
|
|
96
|
+
],
|
|
97
|
+
string: [
|
|
98
|
+
[/[^\\"'%]+/, { cases: {
|
|
99
|
+
"@eos": {
|
|
100
|
+
token: "string",
|
|
101
|
+
next: "@popall"
|
|
102
|
+
},
|
|
103
|
+
"@default": "string"
|
|
104
|
+
} }],
|
|
105
|
+
[/@escapes/, "string.escape"],
|
|
106
|
+
[/\\./, "string.escape.invalid"],
|
|
107
|
+
[/%[\w ]+%/, "variable"],
|
|
108
|
+
[/%%[\w]+(?!\w)/, "variable"],
|
|
109
|
+
[/["']/, { cases: {
|
|
110
|
+
"$#==$S2": {
|
|
111
|
+
token: "string",
|
|
112
|
+
next: "@pop"
|
|
113
|
+
},
|
|
114
|
+
"@default": "string"
|
|
115
|
+
} }],
|
|
116
|
+
[
|
|
117
|
+
/$/,
|
|
118
|
+
"string",
|
|
119
|
+
"@popall"
|
|
120
|
+
]
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
//#endregion
|
|
125
|
+
export { e as conf, t as language };
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
var e = ((e) => `\\b${e}\\b`)("[_a-zA-Z][_a-zA-Z0-9]*"), t = [
|
|
2
|
+
"targetScope",
|
|
3
|
+
"resource",
|
|
4
|
+
"module",
|
|
5
|
+
"param",
|
|
6
|
+
"var",
|
|
7
|
+
"output",
|
|
8
|
+
"for",
|
|
9
|
+
"in",
|
|
10
|
+
"if",
|
|
11
|
+
"existing"
|
|
12
|
+
], n = [
|
|
13
|
+
"true",
|
|
14
|
+
"false",
|
|
15
|
+
"null"
|
|
16
|
+
], r = "[ \\t\\r\\n]", i = "[0-9]+", a = {
|
|
17
|
+
comments: {
|
|
18
|
+
lineComment: "//",
|
|
19
|
+
blockComment: ["/*", "*/"]
|
|
20
|
+
},
|
|
21
|
+
brackets: [
|
|
22
|
+
["{", "}"],
|
|
23
|
+
["[", "]"],
|
|
24
|
+
["(", ")"]
|
|
25
|
+
],
|
|
26
|
+
surroundingPairs: [
|
|
27
|
+
{
|
|
28
|
+
open: "{",
|
|
29
|
+
close: "}"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
open: "[",
|
|
33
|
+
close: "]"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
open: "(",
|
|
37
|
+
close: ")"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
open: "'",
|
|
41
|
+
close: "'"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
open: "'''",
|
|
45
|
+
close: "'''"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
autoClosingPairs: [
|
|
49
|
+
{
|
|
50
|
+
open: "{",
|
|
51
|
+
close: "}"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
open: "[",
|
|
55
|
+
close: "]"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
open: "(",
|
|
59
|
+
close: ")"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
open: "'",
|
|
63
|
+
close: "'",
|
|
64
|
+
notIn: ["string", "comment"]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
open: "'''",
|
|
68
|
+
close: "'''",
|
|
69
|
+
notIn: ["string", "comment"]
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
autoCloseBefore: ":.,=}])' \n ",
|
|
73
|
+
indentationRules: {
|
|
74
|
+
increaseIndentPattern: /* @__PURE__ */ RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
|
|
75
|
+
decreaseIndentPattern: /* @__PURE__ */ RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
|
|
76
|
+
}
|
|
77
|
+
}, o = {
|
|
78
|
+
defaultToken: "",
|
|
79
|
+
tokenPostfix: ".bicep",
|
|
80
|
+
brackets: [
|
|
81
|
+
{
|
|
82
|
+
open: "{",
|
|
83
|
+
close: "}",
|
|
84
|
+
token: "delimiter.curly"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
open: "[",
|
|
88
|
+
close: "]",
|
|
89
|
+
token: "delimiter.square"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
open: "(",
|
|
93
|
+
close: ")",
|
|
94
|
+
token: "delimiter.parenthesis"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
symbols: /[=><!~?:&|+\-*/^%]+/,
|
|
98
|
+
keywords: t,
|
|
99
|
+
namedLiterals: n,
|
|
100
|
+
escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",
|
|
101
|
+
tokenizer: {
|
|
102
|
+
root: [{ include: "@expression" }, { include: "@whitespace" }],
|
|
103
|
+
stringVerbatim: [{
|
|
104
|
+
regex: "(|'|'')[^']",
|
|
105
|
+
action: { token: "string" }
|
|
106
|
+
}, {
|
|
107
|
+
regex: "'''",
|
|
108
|
+
action: {
|
|
109
|
+
token: "string.quote",
|
|
110
|
+
next: "@pop"
|
|
111
|
+
}
|
|
112
|
+
}],
|
|
113
|
+
stringLiteral: [
|
|
114
|
+
{
|
|
115
|
+
regex: "\\${",
|
|
116
|
+
action: {
|
|
117
|
+
token: "delimiter.bracket",
|
|
118
|
+
next: "@bracketCounting"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
regex: "[^\\\\'$]+",
|
|
123
|
+
action: { token: "string" }
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
regex: "@escapes",
|
|
127
|
+
action: { token: "string.escape" }
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
regex: "\\\\.",
|
|
131
|
+
action: { token: "string.escape.invalid" }
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
regex: "'",
|
|
135
|
+
action: {
|
|
136
|
+
token: "string",
|
|
137
|
+
next: "@pop"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
bracketCounting: [
|
|
142
|
+
{
|
|
143
|
+
regex: "{",
|
|
144
|
+
action: {
|
|
145
|
+
token: "delimiter.bracket",
|
|
146
|
+
next: "@bracketCounting"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
regex: "}",
|
|
151
|
+
action: {
|
|
152
|
+
token: "delimiter.bracket",
|
|
153
|
+
next: "@pop"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{ include: "expression" }
|
|
157
|
+
],
|
|
158
|
+
comment: [
|
|
159
|
+
{
|
|
160
|
+
regex: "[^\\*]+",
|
|
161
|
+
action: { token: "comment" }
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
regex: "\\*\\/",
|
|
165
|
+
action: {
|
|
166
|
+
token: "comment",
|
|
167
|
+
next: "@pop"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
regex: "[\\/*]",
|
|
172
|
+
action: { token: "comment" }
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
whitespace: [
|
|
176
|
+
{ regex: r },
|
|
177
|
+
{
|
|
178
|
+
regex: "\\/\\*",
|
|
179
|
+
action: {
|
|
180
|
+
token: "comment",
|
|
181
|
+
next: "@comment"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
regex: "\\/\\/.*$",
|
|
186
|
+
action: { token: "comment" }
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
expression: [
|
|
190
|
+
{
|
|
191
|
+
regex: "'''",
|
|
192
|
+
action: {
|
|
193
|
+
token: "string.quote",
|
|
194
|
+
next: "@stringVerbatim"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
regex: "'",
|
|
199
|
+
action: {
|
|
200
|
+
token: "string.quote",
|
|
201
|
+
next: "@stringLiteral"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
regex: i,
|
|
206
|
+
action: { token: "number" }
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
regex: e,
|
|
210
|
+
action: { cases: {
|
|
211
|
+
"@keywords": { token: "keyword" },
|
|
212
|
+
"@namedLiterals": { token: "keyword" },
|
|
213
|
+
"@default": { token: "identifier" }
|
|
214
|
+
} }
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
//#endregion
|
|
220
|
+
export { a as conf, o as language };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
//#region node_modules/.bun/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/languages/definitions/clojure/clojure.js
|
|
2
|
+
var e = {
|
|
3
|
+
comments: { lineComment: ";;" },
|
|
4
|
+
brackets: [
|
|
5
|
+
["[", "]"],
|
|
6
|
+
["(", ")"],
|
|
7
|
+
["{", "}"]
|
|
8
|
+
],
|
|
9
|
+
autoClosingPairs: [
|
|
10
|
+
{
|
|
11
|
+
open: "[",
|
|
12
|
+
close: "]"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
open: "\"",
|
|
16
|
+
close: "\""
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
open: "(",
|
|
20
|
+
close: ")"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
open: "{",
|
|
24
|
+
close: "}"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
surroundingPairs: [
|
|
28
|
+
{
|
|
29
|
+
open: "[",
|
|
30
|
+
close: "]"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
open: "\"",
|
|
34
|
+
close: "\""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
open: "(",
|
|
38
|
+
close: ")"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
open: "{",
|
|
42
|
+
close: "}"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}, t = {
|
|
46
|
+
defaultToken: "",
|
|
47
|
+
ignoreCase: !0,
|
|
48
|
+
tokenPostfix: ".clj",
|
|
49
|
+
brackets: [
|
|
50
|
+
{
|
|
51
|
+
open: "[",
|
|
52
|
+
close: "]",
|
|
53
|
+
token: "delimiter.square"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
open: "(",
|
|
57
|
+
close: ")",
|
|
58
|
+
token: "delimiter.parenthesis"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
open: "{",
|
|
62
|
+
close: "}",
|
|
63
|
+
token: "delimiter.curly"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
constants: [
|
|
67
|
+
"true",
|
|
68
|
+
"false",
|
|
69
|
+
"nil"
|
|
70
|
+
],
|
|
71
|
+
numbers: /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,
|
|
72
|
+
characters: /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,
|
|
73
|
+
escapes: /^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
74
|
+
qualifiedSymbols: /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,
|
|
75
|
+
specialForms: [
|
|
76
|
+
".",
|
|
77
|
+
"catch",
|
|
78
|
+
"def",
|
|
79
|
+
"do",
|
|
80
|
+
"if",
|
|
81
|
+
"monitor-enter",
|
|
82
|
+
"monitor-exit",
|
|
83
|
+
"new",
|
|
84
|
+
"quote",
|
|
85
|
+
"recur",
|
|
86
|
+
"set!",
|
|
87
|
+
"throw",
|
|
88
|
+
"try",
|
|
89
|
+
"var"
|
|
90
|
+
],
|
|
91
|
+
coreSymbols: /* @__PURE__ */ "*,*',*1,*2,*3,*agent*,*allow-unresolved-vars*,*assert*,*clojure-version*,*command-line-args*,*compile-files*,*compile-path*,*compiler-options*,*data-readers*,*default-data-reader-fn*,*e,*err*,*file*,*flush-on-newline*,*fn-loader*,*in*,*math-context*,*ns*,*out*,*print-dup*,*print-length*,*print-level*,*print-meta*,*print-namespace-maps*,*print-readably*,*read-eval*,*reader-resolver*,*source-path*,*suppress-read*,*unchecked-math*,*use-context-classloader*,*verbose-defrecords*,*warn-on-reflection*,+,+',-,-',->,->>,->ArrayChunk,->Eduction,->Vec,->VecNode,->VecSeq,-cache-protocol-fn,-reset-methods,..,/,<,<=,=,==,>,>=,EMPTY-NODE,Inst,StackTraceElement->vec,Throwable->map,accessor,aclone,add-classpath,add-watch,agent,agent-error,agent-errors,aget,alength,alias,all-ns,alter,alter-meta!,alter-var-root,amap,ancestors,and,any?,apply,areduce,array-map,as->,aset,aset-boolean,aset-byte,aset-char,aset-double,aset-float,aset-int,aset-long,aset-short,assert,assoc,assoc!,assoc-in,associative?,atom,await,await-for,await1,bases,bean,bigdec,bigint,biginteger,binding,bit-and,bit-and-not,bit-clear,bit-flip,bit-not,bit-or,bit-set,bit-shift-left,bit-shift-right,bit-test,bit-xor,boolean,boolean-array,boolean?,booleans,bound-fn,bound-fn*,bound?,bounded-count,butlast,byte,byte-array,bytes,bytes?,case,cast,cat,char,char-array,char-escape-string,char-name-string,char?,chars,chunk,chunk-append,chunk-buffer,chunk-cons,chunk-first,chunk-next,chunk-rest,chunked-seq?,class,class?,clear-agent-errors,clojure-version,coll?,comment,commute,comp,comparator,compare,compare-and-set!,compile,complement,completing,concat,cond,cond->,cond->>,condp,conj,conj!,cons,constantly,construct-proxy,contains?,count,counted?,create-ns,create-struct,cycle,dec,dec',decimal?,declare,dedupe,default-data-readers,definline,definterface,defmacro,defmethod,defmulti,defn,defn-,defonce,defprotocol,defrecord,defstruct,deftype,delay,delay?,deliver,denominator,deref,derive,descendants,destructure,disj,disj!,dissoc,dissoc!,distinct,distinct?,doall,dorun,doseq,dosync,dotimes,doto,double,double-array,double?,doubles,drop,drop-last,drop-while,eduction,empty,empty?,ensure,ensure-reduced,enumeration-seq,error-handler,error-mode,eval,even?,every-pred,every?,ex-data,ex-info,extend,extend-protocol,extend-type,extenders,extends?,false?,ffirst,file-seq,filter,filterv,find,find-keyword,find-ns,find-protocol-impl,find-protocol-method,find-var,first,flatten,float,float-array,float?,floats,flush,fn,fn?,fnext,fnil,for,force,format,frequencies,future,future-call,future-cancel,future-cancelled?,future-done?,future?,gen-class,gen-interface,gensym,get,get-in,get-method,get-proxy-class,get-thread-bindings,get-validator,group-by,halt-when,hash,hash-combine,hash-map,hash-ordered-coll,hash-set,hash-unordered-coll,ident?,identical?,identity,if-let,if-not,if-some,ifn?,import,in-ns,inc,inc',indexed?,init-proxy,inst-ms,inst-ms*,inst?,instance?,int,int-array,int?,integer?,interleave,intern,interpose,into,into-array,ints,io!,isa?,iterate,iterator-seq,juxt,keep,keep-indexed,key,keys,keyword,keyword?,last,lazy-cat,lazy-seq,let,letfn,line-seq,list,list*,list?,load,load-file,load-reader,load-string,loaded-libs,locking,long,long-array,longs,loop,macroexpand,macroexpand-1,make-array,make-hierarchy,map,map-entry?,map-indexed,map?,mapcat,mapv,max,max-key,memfn,memoize,merge,merge-with,meta,method-sig,methods,min,min-key,mix-collection-hash,mod,munge,name,namespace,namespace-munge,nat-int?,neg-int?,neg?,newline,next,nfirst,nil?,nnext,not,not-any?,not-empty,not-every?,not=,ns,ns-aliases,ns-imports,ns-interns,ns-map,ns-name,ns-publics,ns-refers,ns-resolve,ns-unalias,ns-unmap,nth,nthnext,nthrest,num,number?,numerator,object-array,odd?,or,parents,partial,partition,partition-all,partition-by,pcalls,peek,persistent!,pmap,pop,pop!,pop-thread-bindings,pos-int?,pos?,pr,pr-str,prefer-method,prefers,primitives-classnames,print,print-ctor,print-dup,print-method,print-simple,print-str,printf,println,println-str,prn,prn-str,promise,proxy,proxy-call-with-super,proxy-mappings,proxy-name,proxy-super,push-thread-bindings,pvalues,qualified-ident?,qualified-keyword?,qualified-symbol?,quot,rand,rand-int,rand-nth,random-sample,range,ratio?,rational?,rationalize,re-find,re-groups,re-matcher,re-matches,re-pattern,re-seq,read,read-line,read-string,reader-conditional,reader-conditional?,realized?,record?,reduce,reduce-kv,reduced,reduced?,reductions,ref,ref-history-count,ref-max-history,ref-min-history,ref-set,refer,refer-clojure,reify,release-pending-sends,rem,remove,remove-all-methods,remove-method,remove-ns,remove-watch,repeat,repeatedly,replace,replicate,require,reset!,reset-meta!,reset-vals!,resolve,rest,restart-agent,resultset-seq,reverse,reversible?,rseq,rsubseq,run!,satisfies?,second,select-keys,send,send-off,send-via,seq,seq?,seqable?,seque,sequence,sequential?,set,set-agent-send-executor!,set-agent-send-off-executor!,set-error-handler!,set-error-mode!,set-validator!,set?,short,short-array,shorts,shuffle,shutdown-agents,simple-ident?,simple-keyword?,simple-symbol?,slurp,some,some->,some->>,some-fn,some?,sort,sort-by,sorted-map,sorted-map-by,sorted-set,sorted-set-by,sorted?,special-symbol?,spit,split-at,split-with,str,string?,struct,struct-map,subs,subseq,subvec,supers,swap!,swap-vals!,symbol,symbol?,sync,tagged-literal,tagged-literal?,take,take-last,take-nth,take-while,test,the-ns,thread-bound?,time,to-array,to-array-2d,trampoline,transduce,transient,tree-seq,true?,type,unchecked-add,unchecked-add-int,unchecked-byte,unchecked-char,unchecked-dec,unchecked-dec-int,unchecked-divide-int,unchecked-double,unchecked-float,unchecked-inc,unchecked-inc-int,unchecked-int,unchecked-long,unchecked-multiply,unchecked-multiply-int,unchecked-negate,unchecked-negate-int,unchecked-remainder-int,unchecked-short,unchecked-subtract,unchecked-subtract-int,underive,unquote,unquote-splicing,unreduced,unsigned-bit-shift-right,update,update-in,update-proxy,uri?,use,uuid?,val,vals,var-get,var-set,var?,vary-meta,vec,vector,vector-of,vector?,volatile!,volatile?,vreset!,vswap!,when,when-first,when-let,when-not,when-some,while,with-bindings,with-bindings*,with-in-str,with-loading-context,with-local-vars,with-meta,with-open,with-out-str,with-precision,with-redefs,with-redefs-fn,xml-seq,zero?,zipmap".split(","),
|
|
92
|
+
tokenizer: {
|
|
93
|
+
root: [
|
|
94
|
+
{ include: "@whitespace" },
|
|
95
|
+
[/@numbers/, "number"],
|
|
96
|
+
[/@characters/, "string"],
|
|
97
|
+
{ include: "@string" },
|
|
98
|
+
[/[()\[\]{}]/, "@brackets"],
|
|
99
|
+
[/\/#"(?:\.|(?:")|[^"\n])*"\/g/, "regexp"],
|
|
100
|
+
[/[#'@^`~]/, "meta"],
|
|
101
|
+
[/@qualifiedSymbols/, { cases: {
|
|
102
|
+
"^:.+$": "constant",
|
|
103
|
+
"@specialForms": "keyword",
|
|
104
|
+
"@coreSymbols": "keyword",
|
|
105
|
+
"@constants": "constant",
|
|
106
|
+
"@default": "identifier"
|
|
107
|
+
} }]
|
|
108
|
+
],
|
|
109
|
+
whitespace: [
|
|
110
|
+
[/[\s,]+/, "white"],
|
|
111
|
+
[/;.*$/, "comment"],
|
|
112
|
+
[
|
|
113
|
+
/\(comment\b/,
|
|
114
|
+
"comment",
|
|
115
|
+
"@comment"
|
|
116
|
+
]
|
|
117
|
+
],
|
|
118
|
+
comment: [
|
|
119
|
+
[
|
|
120
|
+
/\(/,
|
|
121
|
+
"comment",
|
|
122
|
+
"@push"
|
|
123
|
+
],
|
|
124
|
+
[
|
|
125
|
+
/\)/,
|
|
126
|
+
"comment",
|
|
127
|
+
"@pop"
|
|
128
|
+
],
|
|
129
|
+
[/[^()]/, "comment"]
|
|
130
|
+
],
|
|
131
|
+
string: [[
|
|
132
|
+
/"/,
|
|
133
|
+
"string",
|
|
134
|
+
"@multiLineString"
|
|
135
|
+
]],
|
|
136
|
+
multiLineString: [
|
|
137
|
+
[
|
|
138
|
+
/"/,
|
|
139
|
+
"string",
|
|
140
|
+
"@popall"
|
|
141
|
+
],
|
|
142
|
+
[/@escapes/, "string.escape"],
|
|
143
|
+
[/./, "string"]
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
//#endregion
|
|
148
|
+
export { e as conf, t as language };
|