element-less 0.0.1
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/element-less.cjs +1 -0
- package/element-less.iife.js +1 -0
- package/element-less.js +21 -0
- package/element-less.umd.cjs +1 -0
- package/index-8a31b394.js +47595 -0
- package/index-cb07030d.cjs +1 -0
- package/innerItem-35ccf352.cjs +1 -0
- package/innerItem-93978714.js +793 -0
- package/mode-csharp-a0307975.js +459 -0
- package/mode-csharp-a79144c8.cjs +1 -0
- package/mode-css-71287a3d.cjs +1 -0
- package/mode-css-cb58066a.js +641 -0
- package/mode-javascript-3ad43e9a.js +1319 -0
- package/mode-javascript-43bb34bb.cjs +1 -0
- package/mode-json-0e205915.cjs +1 -0
- package/mode-json-6f21e553.js +314 -0
- package/mode-mysql-264c6403.cjs +1 -0
- package/mode-mysql-46a26bdd.js +194 -0
- package/package.json +13 -0
- package/style.css +1 -0
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./index-8a31b394.js";
|
|
2
|
+
function _mergeNamespaces(n, m) {
|
|
3
|
+
for (var i = 0; i < m.length; i++) {
|
|
4
|
+
const e = m[i];
|
|
5
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
6
|
+
for (const k in e) {
|
|
7
|
+
if (k !== "default" && !(k in n)) {
|
|
8
|
+
n[k] = e[k];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
14
|
+
}
|
|
15
|
+
var modeCsharp$2 = { exports: {} };
|
|
16
|
+
(function(module, exports) {
|
|
17
|
+
ace.define("ace/mode/doc_comment_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text_highlight_rules"], function(require2, exports2, module2) {
|
|
18
|
+
var oop = require2("../lib/oop");
|
|
19
|
+
var TextHighlightRules = require2("./text_highlight_rules").TextHighlightRules;
|
|
20
|
+
var DocCommentHighlightRules = function() {
|
|
21
|
+
this.$rules = {
|
|
22
|
+
"start": [
|
|
23
|
+
{
|
|
24
|
+
token: "comment.doc.tag",
|
|
25
|
+
regex: "@\\w+(?=\\s|$)"
|
|
26
|
+
},
|
|
27
|
+
DocCommentHighlightRules.getTagRule(),
|
|
28
|
+
{
|
|
29
|
+
defaultToken: "comment.doc",
|
|
30
|
+
caseInsensitive: true
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
oop.inherits(DocCommentHighlightRules, TextHighlightRules);
|
|
36
|
+
DocCommentHighlightRules.getTagRule = function(start) {
|
|
37
|
+
return {
|
|
38
|
+
token: "comment.doc.tag.storage.type",
|
|
39
|
+
regex: "\\b(?:TODO|FIXME|XXX|HACK)\\b"
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
DocCommentHighlightRules.getStartRule = function(start) {
|
|
43
|
+
return {
|
|
44
|
+
token: "comment.doc",
|
|
45
|
+
// doc comment
|
|
46
|
+
regex: "\\/\\*(?=\\*)",
|
|
47
|
+
next: start
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
DocCommentHighlightRules.getEndRule = function(start) {
|
|
51
|
+
return {
|
|
52
|
+
token: "comment.doc",
|
|
53
|
+
// closing comment
|
|
54
|
+
regex: "\\*\\/",
|
|
55
|
+
next: start
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
exports2.DocCommentHighlightRules = DocCommentHighlightRules;
|
|
59
|
+
});
|
|
60
|
+
ace.define("ace/mode/csharp_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/doc_comment_highlight_rules", "ace/mode/text_highlight_rules"], function(require2, exports2, module2) {
|
|
61
|
+
var oop = require2("../lib/oop");
|
|
62
|
+
var DocCommentHighlightRules = require2("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
|
63
|
+
var TextHighlightRules = require2("./text_highlight_rules").TextHighlightRules;
|
|
64
|
+
var CSharpHighlightRules = function() {
|
|
65
|
+
var keywordMapper = this.createKeywordMapper({
|
|
66
|
+
"variable.language": "this",
|
|
67
|
+
"keyword": "abstract|async|await|event|new|struct|as|explicit|null|switch|base|extern|object|this|bool|false|operator|throw|break|finally|out|true|byte|fixed|override|try|case|float|params|typeof|catch|for|private|uint|char|foreach|protected|ulong|checked|goto|public|unchecked|class|if|readonly|unsafe|const|implicit|ref|ushort|continue|in|return|using|decimal|int|sbyte|virtual|default|interface|sealed|volatile|delegate|internal|partial|short|void|do|is|sizeof|while|double|lock|stackalloc|else|long|static|enum|namespace|string|var|dynamic",
|
|
68
|
+
"constant.language": "null|true|false"
|
|
69
|
+
}, "identifier");
|
|
70
|
+
this.$rules = {
|
|
71
|
+
"start": [
|
|
72
|
+
{
|
|
73
|
+
token: "comment",
|
|
74
|
+
regex: "\\/\\/.*$"
|
|
75
|
+
},
|
|
76
|
+
DocCommentHighlightRules.getStartRule("doc-start"),
|
|
77
|
+
{
|
|
78
|
+
token: "comment",
|
|
79
|
+
// multi line comment
|
|
80
|
+
regex: "\\/\\*",
|
|
81
|
+
next: "comment"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
token: "string",
|
|
85
|
+
// character
|
|
86
|
+
regex: /'(?:.|\\(:?u[\da-fA-F]+|x[\da-fA-F]+|[tbrf'"n]))?'/
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
token: "string",
|
|
90
|
+
start: '"',
|
|
91
|
+
end: '"|$',
|
|
92
|
+
next: [
|
|
93
|
+
{ token: "constant.language.escape", regex: /\\(:?u[\da-fA-F]+|x[\da-fA-F]+|[tbrf'"n])/ },
|
|
94
|
+
{ token: "invalid", regex: /\\./ }
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
token: "string",
|
|
99
|
+
start: '@"',
|
|
100
|
+
end: '"',
|
|
101
|
+
next: [
|
|
102
|
+
{ token: "constant.language.escape", regex: '""' }
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
token: "string",
|
|
107
|
+
start: /\$"/,
|
|
108
|
+
end: '"|$',
|
|
109
|
+
next: [
|
|
110
|
+
{ token: "constant.language.escape", regex: /\\(:?$)|{{/ },
|
|
111
|
+
{ token: "constant.language.escape", regex: /\\(:?u[\da-fA-F]+|x[\da-fA-F]+|[tbrf'"n])/ },
|
|
112
|
+
{ token: "invalid", regex: /\\./ }
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
token: "constant.numeric",
|
|
117
|
+
// hex
|
|
118
|
+
regex: "0[xX][0-9a-fA-F]+\\b"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
token: "constant.numeric",
|
|
122
|
+
// float
|
|
123
|
+
regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
token: "constant.language.boolean",
|
|
127
|
+
regex: "(?:true|false)\\b"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
token: keywordMapper,
|
|
131
|
+
regex: "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
token: "keyword.operator",
|
|
135
|
+
regex: "!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
token: "keyword",
|
|
139
|
+
regex: "^\\s*#(if|else|elif|endif|define|undef|warning|error|line|region|endregion|pragma)"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
token: "punctuation.operator",
|
|
143
|
+
regex: "\\?|\\:|\\,|\\;|\\."
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
token: "paren.lparen",
|
|
147
|
+
regex: "[[({]"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
token: "paren.rparen",
|
|
151
|
+
regex: "[\\])}]"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
token: "text",
|
|
155
|
+
regex: "\\s+"
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"comment": [
|
|
159
|
+
{
|
|
160
|
+
token: "comment",
|
|
161
|
+
// closing comment
|
|
162
|
+
regex: "\\*\\/",
|
|
163
|
+
next: "start"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
defaultToken: "comment"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
};
|
|
170
|
+
this.embedRules(DocCommentHighlightRules, "doc-", [DocCommentHighlightRules.getEndRule("start")]);
|
|
171
|
+
this.normalizeRules();
|
|
172
|
+
};
|
|
173
|
+
oop.inherits(CSharpHighlightRules, TextHighlightRules);
|
|
174
|
+
exports2.CSharpHighlightRules = CSharpHighlightRules;
|
|
175
|
+
});
|
|
176
|
+
ace.define("ace/mode/matching_brace_outdent", ["require", "exports", "module", "ace/range"], function(require2, exports2, module2) {
|
|
177
|
+
var Range = require2("../range").Range;
|
|
178
|
+
var MatchingBraceOutdent = function() {
|
|
179
|
+
};
|
|
180
|
+
(function() {
|
|
181
|
+
this.checkOutdent = function(line, input) {
|
|
182
|
+
if (!/^\s+$/.test(line))
|
|
183
|
+
return false;
|
|
184
|
+
return /^\s*\}/.test(input);
|
|
185
|
+
};
|
|
186
|
+
this.autoOutdent = function(doc, row) {
|
|
187
|
+
var line = doc.getLine(row);
|
|
188
|
+
var match = line.match(/^(\s*\})/);
|
|
189
|
+
if (!match)
|
|
190
|
+
return 0;
|
|
191
|
+
var column = match[1].length;
|
|
192
|
+
var openBracePos = doc.findMatchingBracket({ row, column });
|
|
193
|
+
if (!openBracePos || openBracePos.row == row)
|
|
194
|
+
return 0;
|
|
195
|
+
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
|
196
|
+
doc.replace(new Range(row, 0, row, column - 1), indent);
|
|
197
|
+
};
|
|
198
|
+
this.$getIndent = function(line) {
|
|
199
|
+
return line.match(/^\s*/)[0];
|
|
200
|
+
};
|
|
201
|
+
}).call(MatchingBraceOutdent.prototype);
|
|
202
|
+
exports2.MatchingBraceOutdent = MatchingBraceOutdent;
|
|
203
|
+
});
|
|
204
|
+
ace.define("ace/mode/folding/cstyle", ["require", "exports", "module", "ace/lib/oop", "ace/range", "ace/mode/folding/fold_mode"], function(require2, exports2, module2) {
|
|
205
|
+
var oop = require2("../../lib/oop");
|
|
206
|
+
var Range = require2("../../range").Range;
|
|
207
|
+
var BaseFoldMode = require2("./fold_mode").FoldMode;
|
|
208
|
+
var FoldMode = exports2.FoldMode = function(commentRegex) {
|
|
209
|
+
if (commentRegex) {
|
|
210
|
+
this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
|
|
211
|
+
this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
oop.inherits(FoldMode, BaseFoldMode);
|
|
215
|
+
(function() {
|
|
216
|
+
this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
|
|
217
|
+
this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
|
|
218
|
+
this.singleLineBlockCommentRe = /^\s*(\/\*).*\*\/\s*$/;
|
|
219
|
+
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
|
220
|
+
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
|
221
|
+
this._getFoldWidgetBase = this.getFoldWidget;
|
|
222
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
|
223
|
+
var line = session.getLine(row);
|
|
224
|
+
if (this.singleLineBlockCommentRe.test(line)) {
|
|
225
|
+
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
|
226
|
+
return "";
|
|
227
|
+
}
|
|
228
|
+
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
|
229
|
+
if (!fw && this.startRegionRe.test(line))
|
|
230
|
+
return "start";
|
|
231
|
+
return fw;
|
|
232
|
+
};
|
|
233
|
+
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
|
234
|
+
var line = session.getLine(row);
|
|
235
|
+
if (this.startRegionRe.test(line))
|
|
236
|
+
return this.getCommentRegionBlock(session, line, row);
|
|
237
|
+
var match = line.match(this.foldingStartMarker);
|
|
238
|
+
if (match) {
|
|
239
|
+
var i = match.index;
|
|
240
|
+
if (match[1])
|
|
241
|
+
return this.openingBracketBlock(session, match[1], row, i);
|
|
242
|
+
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
|
243
|
+
if (range && !range.isMultiLine()) {
|
|
244
|
+
if (forceMultiline) {
|
|
245
|
+
range = this.getSectionRange(session, row);
|
|
246
|
+
} else if (foldStyle != "all")
|
|
247
|
+
range = null;
|
|
248
|
+
}
|
|
249
|
+
return range;
|
|
250
|
+
}
|
|
251
|
+
if (foldStyle === "markbegin")
|
|
252
|
+
return;
|
|
253
|
+
var match = line.match(this.foldingStopMarker);
|
|
254
|
+
if (match) {
|
|
255
|
+
var i = match.index + match[0].length;
|
|
256
|
+
if (match[1])
|
|
257
|
+
return this.closingBracketBlock(session, match[1], row, i);
|
|
258
|
+
return session.getCommentFoldRange(row, i, -1);
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
this.getSectionRange = function(session, row) {
|
|
262
|
+
var line = session.getLine(row);
|
|
263
|
+
var startIndent = line.search(/\S/);
|
|
264
|
+
var startRow = row;
|
|
265
|
+
var startColumn = line.length;
|
|
266
|
+
row = row + 1;
|
|
267
|
+
var endRow = row;
|
|
268
|
+
var maxRow = session.getLength();
|
|
269
|
+
while (++row < maxRow) {
|
|
270
|
+
line = session.getLine(row);
|
|
271
|
+
var indent = line.search(/\S/);
|
|
272
|
+
if (indent === -1)
|
|
273
|
+
continue;
|
|
274
|
+
if (startIndent > indent)
|
|
275
|
+
break;
|
|
276
|
+
var subRange = this.getFoldWidgetRange(session, "all", row);
|
|
277
|
+
if (subRange) {
|
|
278
|
+
if (subRange.start.row <= startRow) {
|
|
279
|
+
break;
|
|
280
|
+
} else if (subRange.isMultiLine()) {
|
|
281
|
+
row = subRange.end.row;
|
|
282
|
+
} else if (startIndent == indent) {
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
endRow = row;
|
|
287
|
+
}
|
|
288
|
+
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
|
289
|
+
};
|
|
290
|
+
this.getCommentRegionBlock = function(session, line, row) {
|
|
291
|
+
var startColumn = line.search(/\s*$/);
|
|
292
|
+
var maxRow = session.getLength();
|
|
293
|
+
var startRow = row;
|
|
294
|
+
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
|
295
|
+
var depth = 1;
|
|
296
|
+
while (++row < maxRow) {
|
|
297
|
+
line = session.getLine(row);
|
|
298
|
+
var m = re.exec(line);
|
|
299
|
+
if (!m)
|
|
300
|
+
continue;
|
|
301
|
+
if (m[1])
|
|
302
|
+
depth--;
|
|
303
|
+
else
|
|
304
|
+
depth++;
|
|
305
|
+
if (!depth)
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
var endRow = row;
|
|
309
|
+
if (endRow > startRow) {
|
|
310
|
+
return new Range(startRow, startColumn, endRow, line.length);
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
}).call(FoldMode.prototype);
|
|
314
|
+
});
|
|
315
|
+
ace.define("ace/mode/folding/csharp", ["require", "exports", "module", "ace/lib/oop", "ace/range", "ace/mode/folding/cstyle"], function(require2, exports2, module2) {
|
|
316
|
+
var oop = require2("../../lib/oop");
|
|
317
|
+
var Range = require2("../../range").Range;
|
|
318
|
+
var CFoldMode = require2("./cstyle").FoldMode;
|
|
319
|
+
var FoldMode = exports2.FoldMode = function(commentRegex) {
|
|
320
|
+
if (commentRegex) {
|
|
321
|
+
this.foldingStartMarker = new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start));
|
|
322
|
+
this.foldingStopMarker = new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end));
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
oop.inherits(FoldMode, CFoldMode);
|
|
326
|
+
(function() {
|
|
327
|
+
this.usingRe = /^\s*using \S/;
|
|
328
|
+
this.getFoldWidgetRangeBase = this.getFoldWidgetRange;
|
|
329
|
+
this.getFoldWidgetBase = this.getFoldWidget;
|
|
330
|
+
this.getFoldWidget = function(session, foldStyle, row) {
|
|
331
|
+
var fw = this.getFoldWidgetBase(session, foldStyle, row);
|
|
332
|
+
if (!fw) {
|
|
333
|
+
var line = session.getLine(row);
|
|
334
|
+
if (/^\s*#region\b/.test(line))
|
|
335
|
+
return "start";
|
|
336
|
+
var usingRe = this.usingRe;
|
|
337
|
+
if (usingRe.test(line)) {
|
|
338
|
+
var prev = session.getLine(row - 1);
|
|
339
|
+
var next = session.getLine(row + 1);
|
|
340
|
+
if (!usingRe.test(prev) && usingRe.test(next))
|
|
341
|
+
return "start";
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return fw;
|
|
345
|
+
};
|
|
346
|
+
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
|
347
|
+
var range = this.getFoldWidgetRangeBase(session, foldStyle, row);
|
|
348
|
+
if (range)
|
|
349
|
+
return range;
|
|
350
|
+
var line = session.getLine(row);
|
|
351
|
+
if (this.usingRe.test(line))
|
|
352
|
+
return this.getUsingStatementBlock(session, line, row);
|
|
353
|
+
if (/^\s*#region\b/.test(line))
|
|
354
|
+
return this.getRegionBlock(session, line, row);
|
|
355
|
+
};
|
|
356
|
+
this.getUsingStatementBlock = function(session, line, row) {
|
|
357
|
+
var startColumn = line.match(this.usingRe)[0].length - 1;
|
|
358
|
+
var maxRow = session.getLength();
|
|
359
|
+
var startRow = row;
|
|
360
|
+
var endRow = row;
|
|
361
|
+
while (++row < maxRow) {
|
|
362
|
+
line = session.getLine(row);
|
|
363
|
+
if (/^\s*$/.test(line))
|
|
364
|
+
continue;
|
|
365
|
+
if (!this.usingRe.test(line))
|
|
366
|
+
break;
|
|
367
|
+
endRow = row;
|
|
368
|
+
}
|
|
369
|
+
if (endRow > startRow) {
|
|
370
|
+
var endColumn = session.getLine(endRow).length;
|
|
371
|
+
return new Range(startRow, startColumn, endRow, endColumn);
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
this.getRegionBlock = function(session, line, row) {
|
|
375
|
+
var startColumn = line.search(/\s*$/);
|
|
376
|
+
var maxRow = session.getLength();
|
|
377
|
+
var startRow = row;
|
|
378
|
+
var re = /^\s*#(end)?region\b/;
|
|
379
|
+
var depth = 1;
|
|
380
|
+
while (++row < maxRow) {
|
|
381
|
+
line = session.getLine(row);
|
|
382
|
+
var m = re.exec(line);
|
|
383
|
+
if (!m)
|
|
384
|
+
continue;
|
|
385
|
+
if (m[1])
|
|
386
|
+
depth--;
|
|
387
|
+
else
|
|
388
|
+
depth++;
|
|
389
|
+
if (!depth)
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
var endRow = row;
|
|
393
|
+
if (endRow > startRow) {
|
|
394
|
+
return new Range(startRow, startColumn, endRow, line.length);
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
}).call(FoldMode.prototype);
|
|
398
|
+
});
|
|
399
|
+
ace.define("ace/mode/csharp", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text", "ace/mode/csharp_highlight_rules", "ace/mode/matching_brace_outdent", "ace/mode/folding/csharp"], function(require2, exports2, module2) {
|
|
400
|
+
var oop = require2("../lib/oop");
|
|
401
|
+
var TextMode = require2("./text").Mode;
|
|
402
|
+
var CSharpHighlightRules = require2("./csharp_highlight_rules").CSharpHighlightRules;
|
|
403
|
+
var MatchingBraceOutdent = require2("./matching_brace_outdent").MatchingBraceOutdent;
|
|
404
|
+
var CStyleFoldMode = require2("./folding/csharp").FoldMode;
|
|
405
|
+
var Mode = function() {
|
|
406
|
+
this.HighlightRules = CSharpHighlightRules;
|
|
407
|
+
this.$outdent = new MatchingBraceOutdent();
|
|
408
|
+
this.$behaviour = this.$defaultBehaviour;
|
|
409
|
+
this.foldingRules = new CStyleFoldMode();
|
|
410
|
+
};
|
|
411
|
+
oop.inherits(Mode, TextMode);
|
|
412
|
+
(function() {
|
|
413
|
+
this.lineCommentStart = "//";
|
|
414
|
+
this.blockComment = { start: "/*", end: "*/" };
|
|
415
|
+
this.getNextLineIndent = function(state, line, tab) {
|
|
416
|
+
var indent = this.$getIndent(line);
|
|
417
|
+
var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
|
|
418
|
+
var tokens = tokenizedLine.tokens;
|
|
419
|
+
if (tokens.length && tokens[tokens.length - 1].type == "comment") {
|
|
420
|
+
return indent;
|
|
421
|
+
}
|
|
422
|
+
if (state == "start") {
|
|
423
|
+
var match = line.match(/^.*[\{\(\[]\s*$/);
|
|
424
|
+
if (match) {
|
|
425
|
+
indent += tab;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
return indent;
|
|
429
|
+
};
|
|
430
|
+
this.checkOutdent = function(state, line, input) {
|
|
431
|
+
return this.$outdent.checkOutdent(line, input);
|
|
432
|
+
};
|
|
433
|
+
this.autoOutdent = function(state, doc, row) {
|
|
434
|
+
this.$outdent.autoOutdent(doc, row);
|
|
435
|
+
};
|
|
436
|
+
this.createWorker = function(session) {
|
|
437
|
+
return null;
|
|
438
|
+
};
|
|
439
|
+
this.$id = "ace/mode/csharp";
|
|
440
|
+
}).call(Mode.prototype);
|
|
441
|
+
exports2.Mode = Mode;
|
|
442
|
+
});
|
|
443
|
+
(function() {
|
|
444
|
+
ace.require(["ace/mode/csharp"], function(m) {
|
|
445
|
+
if (module) {
|
|
446
|
+
module.exports = m;
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
})();
|
|
450
|
+
})(modeCsharp$2);
|
|
451
|
+
var modeCsharpExports = modeCsharp$2.exports;
|
|
452
|
+
const modeCsharp = /* @__PURE__ */ getDefaultExportFromCjs(modeCsharpExports);
|
|
453
|
+
const modeCsharp$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
454
|
+
__proto__: null,
|
|
455
|
+
default: modeCsharp
|
|
456
|
+
}, [modeCsharpExports]);
|
|
457
|
+
export {
|
|
458
|
+
modeCsharp$1 as m
|
|
459
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index-cb07030d.cjs");function t(e,t){for(var n=0;n<t.length;n++){const i=t[n];if("string"!=typeof i&&!Array.isArray(i))for(const t in i)"default"===t||t in e||(e[t]=i[t])}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var n,i={exports:{}};n=i,ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){var i=e("../lib/oop"),r=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},o.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};i.inherits(o,r),o.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},o.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},o.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=o})),ace.define("ace/mode/csharp_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){var i=e("../lib/oop"),r=e("./doc_comment_highlight_rules").DocCommentHighlightRules,o=e("./text_highlight_rules").TextHighlightRules,a=function(){var e=this.createKeywordMapper({"variable.language":"this",keyword:"abstract|async|await|event|new|struct|as|explicit|null|switch|base|extern|object|this|bool|false|operator|throw|break|finally|out|true|byte|fixed|override|try|case|float|params|typeof|catch|for|private|uint|char|foreach|protected|ulong|checked|goto|public|unchecked|class|if|readonly|unsafe|const|implicit|ref|ushort|continue|in|return|using|decimal|int|sbyte|virtual|default|interface|sealed|volatile|delegate|internal|partial|short|void|do|is|sizeof|while|double|lock|stackalloc|else|long|static|enum|namespace|string|var|dynamic","constant.language":"null|true|false"},"identifier");this.$rules={start:[{token:"comment",regex:"\\/\\/.*$"},r.getStartRule("doc-start"),{token:"comment",regex:"\\/\\*",next:"comment"},{token:"string",regex:/'(?:.|\\(:?u[\da-fA-F]+|x[\da-fA-F]+|[tbrf'"n]))?'/},{token:"string",start:'"',end:'"|$',next:[{token:"constant.language.escape",regex:/\\(:?u[\da-fA-F]+|x[\da-fA-F]+|[tbrf'"n])/},{token:"invalid",regex:/\\./}]},{token:"string",start:'@"',end:'"',next:[{token:"constant.language.escape",regex:'""'}]},{token:"string",start:/\$"/,end:'"|$',next:[{token:"constant.language.escape",regex:/\\(:?$)|{{/},{token:"constant.language.escape",regex:/\\(:?u[\da-fA-F]+|x[\da-fA-F]+|[tbrf'"n])/},{token:"invalid",regex:/\\./}]},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"keyword",regex:"^\\s*#(if|else|elif|endif|define|undef|warning|error|line|region|endregion|pragma)"},{token:"punctuation.operator",regex:"\\?|\\:|\\,|\\;|\\."},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],comment:[{token:"comment",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]},this.embedRules(r,"doc-",[r.getEndRule("start")]),this.normalizeRules()};i.inherits(a,o),t.CSharpHighlightRules=a})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){var i=e("../range").Range,r=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var r=n[1].length,o=e.findMatchingBracket({row:t,column:r});if(!o||o.row==t)return 0;var a=this.$getIndent(e.getLine(o.row));e.replace(new i(t,0,t,r-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(r.prototype),t.MatchingBraceOutdent=r})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){var i=e("../../lib/oop"),r=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(a,o),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var r=this._getFoldWidgetBase(e,t,n);return!r&&this.startRegionRe.test(i)?"start":r},this.getFoldWidgetRange=function(e,t,n,i){var r,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(r=o.match(this.foldingStartMarker)){var a=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,a);var s=e.getCommentFoldRange(n,a+r[0].length,1);return s&&!s.isMultiLine()&&(i?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(r=o.match(this.foldingStopMarker))?(a=r.index+r[0].length,r[1]?this.closingBracketBlock(e,r[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),i=n.search(/\S/),o=t,a=n.length,s=t+=1,g=e.getLength();++t<g;){var c=(n=e.getLine(t)).search(/\S/);if(-1!==c){if(i>c)break;var l=this.getFoldWidgetRange(e,"all",t);if(l){if(l.start.row<=o)break;if(l.isMultiLine())t=l.end.row;else if(i==c)break}s=t}}return new r(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++n<o;){t=e.getLine(n);var c=s.exec(t);if(c&&(c[1]?g--:g++,!g))break}if(n>a)return new r(a,i,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/folding/csharp",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){var i=e("../../lib/oop"),r=e("../../range").Range,o=e("./cstyle").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};i.inherits(a,o),function(){this.usingRe=/^\s*using \S/,this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=this.getFoldWidgetBase(e,t,n);if(!i){var r=e.getLine(n);if(/^\s*#region\b/.test(r))return"start";var o=this.usingRe;if(o.test(r)){var a=e.getLine(n-1),s=e.getLine(n+1);if(!o.test(a)&&o.test(s))return"start"}}return i},this.getFoldWidgetRange=function(e,t,n){var i=this.getFoldWidgetRangeBase(e,t,n);if(i)return i;var r=e.getLine(n);return this.usingRe.test(r)?this.getUsingStatementBlock(e,r,n):/^\s*#region\b/.test(r)?this.getRegionBlock(e,r,n):void 0},this.getUsingStatementBlock=function(e,t,n){for(var i=t.match(this.usingRe)[0].length-1,o=e.getLength(),a=n,s=n;++n<o;)if(t=e.getLine(n),!/^\s*$/.test(t)){if(!this.usingRe.test(t))break;s=n}if(s>a){var g=e.getLine(s).length;return new r(a,i,s,g)}},this.getRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*#(end)?region\b/,g=1;++n<o;){t=e.getLine(n);var c=s.exec(t);if(c&&(c[1]?g--:g++,!g))break}if(n>a)return new r(a,i,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/csharp",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/csharp_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/csharp"],(function(e,t,n){var i=e("../lib/oop"),r=e("./text").Mode,o=e("./csharp_highlight_rules").CSharpHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("./folding/csharp").FoldMode,g=function(){this.HighlightRules=o,this.$outdent=new a,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s};i.inherits(g,r),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),r=this.getTokenizer().getLineTokens(t,e).tokens;return r.length&&"comment"==r[r.length-1].type||"start"==e&&t.match(/^.*[\{\(\[]\s*$/)&&(i+=n),i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){return null},this.$id="ace/mode/csharp"}.call(g.prototype),t.Mode=g})),ace.require(["ace/mode/csharp"],(function(e){n&&(n.exports=e)}));var r=i.exports;const o=t({__proto__:null,default:e.getDefaultExportFromCjs(r)},[r]);exports.modeCsharp=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index-cb07030d.cjs");function t(e,t){for(var o=0;o<t.length;o++){const r=t[o];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)"default"===t||t in e||(e[t]=r[t])}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var o,r={exports:{}};o=r,ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,o){var r=e("../lib/oop");e("../lib/lang");var i=e("./text_highlight_rules").TextHighlightRules,n=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",a=t.supportFunction="rgb|rgba|url|attr|counter|counters",s=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",l=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",d=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",c=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",u=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",g=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",p=function(){var e=this.createKeywordMapper({"support.function":a,"support.constant":s,"support.type":n,"support.constant.color":l,"support.constant.fonts":d},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:c},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+c+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:c},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:u},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:g},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};r.inherits(p,i),t.CssHighlightRules=p})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,o){var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var o=e.getLine(t).match(/^(\s*\})/);if(!o)return 0;var i=o[1].length,n=e.findMatchingBracket({row:t,column:i});if(!n||n.row==t)return 0;var a=this.$getIndent(e.getLine(n.row));e.replace(new r(t,0,t,i-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,o){var r={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},i=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var o=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));r.hasOwnProperty(o)||(r[o]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,o,r){if(this.completionsDefined||this.defineCompletions(),"ruleset"===e||"ace/mode/scss"==t.$mode.$id){var i=t.getLine(o.row).substr(0,o.column),n=/\([^)]*$/.test(i);return n&&(i=i.substr(i.lastIndexOf("(")+1)),/:[^;]+$/.test(i)?this.getPropertyValueCompletions(e,t,o,r):this.getPropertyCompletions(e,t,o,r,n)}return[]},this.getPropertyCompletions=function(e,t,o,i,n){return n=n||!1,Object.keys(r).map((function(e){return{caption:e,snippet:e+": $0"+(n?"":";"),meta:"property",score:1e6}}))},this.getPropertyValueCompletions=function(e,t,o,i){var n=t.getLine(o.row).substr(0,o.column),a=(/([\w\-]+):[^:]*$/.exec(n)||{})[1];if(!a)return[];var s=[];return a in r&&"object"==typeof r[a]&&(s=Object.keys(r[a])),s.map((function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}}))}}).call(i.prototype),t.CssCompletions=i})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,o){var r=e("../../lib/oop");e("../behaviour").Behaviour;var i=e("./cstyle").CstyleBehaviour,n=e("../../token_iterator").TokenIterator,a=function(){this.inherit(i),this.add("colon","insertion",(function(e,t,o,r,i){if(":"===i&&o.selection.isEmpty()){var a=o.getCursorPosition(),s=new n(r,a.row,a.column),l=s.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=s.stepBackward()),l&&"support.type"===l.type){var d=r.doc.getLine(a.row);if(":"===d.substring(a.column,a.column+1))return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(d.substring(a.column)))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,o,r,i){var a=r.doc.getTextRange(i);if(!i.isMultiLine()&&":"===a){var s=o.getCursorPosition(),l=new n(r,s.row,s.column),d=l.getCurrentToken();if(d&&d.value.match(/\s+/)&&(d=l.stepBackward()),d&&"support.type"===d.type&&";"===r.doc.getLine(i.start.row).substring(i.end.column,i.end.column+1))return i.end.column++,i}})),this.add("semicolon","insertion",(function(e,t,o,r,i){if(";"===i&&o.selection.isEmpty()){var n=o.getCursorPosition();if(";"===r.doc.getLine(n.row).substring(n.column,n.column+1))return{text:"",selection:[1,1]}}})),this.add("!important","insertion",(function(e,t,o,r,i){if("!"===i&&o.selection.isEmpty()){var n=o.getCursorPosition(),a=r.doc.getLine(n.row);if(/^\s*(;|}|$)/.test(a.substring(n.column)))return{text:"!important",selection:[10,10]}}}))};r.inherits(a,i),t.CssBehaviour=a})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,o){var r=e("../../lib/oop"),i=e("../../range").Range,n=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,n),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,o){var r=e.getLine(o);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,o);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,o,r){var i,n=e.getLine(o);if(this.startRegionRe.test(n))return this.getCommentRegionBlock(e,n,o);if(i=n.match(this.foldingStartMarker)){var a=i.index;if(i[1])return this.openingBracketBlock(e,i[1],o,a);var s=e.getCommentFoldRange(o,a+i[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,o):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(i=n.match(this.foldingStopMarker))?(a=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],o,a):e.getCommentFoldRange(o,a,-1)):void 0},this.getSectionRange=function(e,t){for(var o=e.getLine(t),r=o.search(/\S/),n=t,a=o.length,s=t+=1,l=e.getLength();++t<l;){var d=(o=e.getLine(t)).search(/\S/);if(-1!==d){if(r>d)break;var c=this.getFoldWidgetRange(e,"all",t);if(c){if(c.start.row<=n)break;if(c.isMultiLine())t=c.end.row;else if(r==d)break}s=t}}return new i(n,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,o){for(var r=t.search(/\s*$/),n=e.getLength(),a=o,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++o<n;){t=e.getLine(o);var d=s.exec(t);if(d&&(d[1]?l--:l++,!l))break}if(o>a)return new i(a,r,o,t.length)}}.call(a.prototype)})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,o){var r=e("../lib/oop"),i=e("./text").Mode,n=e("./css_highlight_rules").CssHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,d=e("./behaviour/css").CssBehaviour,c=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=n,this.$outdent=new a,this.$behaviour=new d,this.$completer=new l,this.foldingRules=new c};r.inherits(u,i),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,o){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e).tokens;return i.length&&"comment"==i[i.length-1].type||t.match(/^.*\{\s*$/)&&(r+=o),r},this.checkOutdent=function(e,t,o){return this.$outdent.checkOutdent(t,o)},this.autoOutdent=function(e,t,o){this.$outdent.autoOutdent(t,o)},this.getCompletions=function(e,t,o,r){return this.$completer.getCompletions(e,t,o,r)},this.createWorker=function(e){var t=new s(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(u.prototype),t.Mode=u})),ace.require(["ace/mode/css"],(function(e){o&&(o.exports=e)}));var i=r.exports;const n=t({__proto__:null,default:e.getDefaultExportFromCjs(i)},[i]);exports.modeCss=n;
|