@codingame/monaco-vscode-standalone-languages 23.1.0 → 23.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/index.js +48 -82
- package/package.json +2 -2
- package/_.contribution.js +0 -74
- package/abap/abap.contribution.js +0 -19
- package/abap/abap.js +0 -1406
- package/apex/apex.contribution.js +0 -20
- package/apex/apex.js +0 -338
- package/azcli/azcli.contribution.js +0 -19
- package/azcli/azcli.js +0 -76
- package/bat/bat.contribution.js +0 -19
- package/bat/bat.js +0 -108
- package/bicep/bicep.contribution.js +0 -19
- package/bicep/bicep.js +0 -117
- package/cameligo/cameligo.contribution.js +0 -19
- package/cameligo/cameligo.js +0 -182
- package/clojure/clojure.contribution.js +0 -19
- package/clojure/clojure.js +0 -769
- package/coffee/coffee.contribution.js +0 -20
- package/coffee/coffee.js +0 -240
- package/cpp/cpp.contribution.js +0 -29
- package/cpp/cpp.js +0 -397
- package/csharp/csharp.contribution.js +0 -19
- package/csharp/csharp.js +0 -334
- package/csp/csp.contribution.js +0 -19
- package/csp/csp.js +0 -61
- package/css/css.contribution.js +0 -20
- package/css/css.js +0 -193
- package/cypher/cypher.contribution.js +0 -19
- package/cypher/cypher.js +0 -271
- package/dart/dart.contribution.js +0 -20
- package/dart/dart.js +0 -289
- package/dockerfile/dockerfile.contribution.js +0 -20
- package/dockerfile/dockerfile.js +0 -138
- package/ecl/ecl.contribution.js +0 -19
- package/ecl/ecl.js +0 -464
- package/elixir/elixir.contribution.js +0 -19
- package/elixir/elixir.js +0 -577
- package/flow9/flow9.contribution.js +0 -19
- package/flow9/flow9.js +0 -150
- package/freemarker2/freemarker2.contribution.js +0 -73
- package/freemarker2/freemarker2.js +0 -1016
- package/fsharp/fsharp.contribution.js +0 -19
- package/fsharp/fsharp.js +0 -225
- package/go/go.contribution.js +0 -19
- package/go/go.js +0 -226
- package/graphql/graphql.contribution.js +0 -20
- package/graphql/graphql.js +0 -159
- package/handlebars/handlebars.contribution.js +0 -20
- package/handlebars/handlebars.js +0 -439
- package/hcl/hcl.contribution.js +0 -19
- package/hcl/hcl.js +0 -191
- package/html/html.contribution.js +0 -20
- package/html/html.js +0 -328
- package/ini/ini.contribution.js +0 -20
- package/ini/ini.js +0 -79
- package/java/java.contribution.js +0 -20
- package/java/java.js +0 -240
- package/javascript/javascript.contribution.js +0 -22
- package/javascript/javascript.js +0 -77
- package/julia/julia.contribution.js +0 -19
- package/julia/julia.js +0 -519
- package/kotlin/kotlin.contribution.js +0 -20
- package/kotlin/kotlin.js +0 -261
- package/less/less.contribution.js +0 -20
- package/less/less.js +0 -169
- package/lexon/lexon.contribution.js +0 -19
- package/lexon/lexon.js +0 -165
- package/liquid/liquid.contribution.js +0 -20
- package/liquid/liquid.js +0 -260
- package/lua/lua.contribution.js +0 -19
- package/lua/lua.js +0 -170
- package/m3/m3.contribution.js +0 -19
- package/m3/m3.js +0 -218
- package/markdown/markdown.contribution.js +0 -19
- package/markdown/markdown.js +0 -237
- package/mdx/mdx.contribution.js +0 -19
- package/mdx/mdx.js +0 -184
- package/mips/mips.contribution.js +0 -20
- package/mips/mips.js +0 -206
- package/msdax/msdax.contribution.js +0 -19
- package/msdax/msdax.js +0 -383
- package/mysql/mysql.contribution.js +0 -19
- package/mysql/mysql.js +0 -886
- package/objective-c/objective-c.contribution.js +0 -19
- package/objective-c/objective-c.js +0 -191
- package/pascal/pascal.contribution.js +0 -20
- package/pascal/pascal.js +0 -259
- package/pascaligo/pascaligo.contribution.js +0 -19
- package/pascaligo/pascaligo.js +0 -172
- package/perl/perl.contribution.js +0 -19
- package/perl/perl.js +0 -634
- package/pgsql/pgsql.contribution.js +0 -19
- package/pgsql/pgsql.js +0 -859
- package/php/php.contribution.js +0 -20
- package/php/php.js +0 -508
- package/pla/pla.contribution.js +0 -18
- package/pla/pla.js +0 -145
- package/postiats/postiats.contribution.js +0 -19
- package/postiats/postiats.js +0 -915
- package/powerquery/powerquery.contribution.js +0 -19
- package/powerquery/powerquery.js +0 -898
- package/powershell/powershell.contribution.js +0 -19
- package/powershell/powershell.js +0 -247
- package/protobuf/protobuf.contribution.js +0 -19
- package/protobuf/protobuf.js +0 -428
- package/pug/pug.contribution.js +0 -19
- package/pug/pug.js +0 -410
- package/python/python.contribution.js +0 -20
- package/python/python.js +0 -320
- package/qsharp/qsharp.contribution.js +0 -19
- package/qsharp/qsharp.js +0 -309
- package/r/r.contribution.js +0 -19
- package/r/r.js +0 -251
- package/razor/razor.contribution.js +0 -20
- package/razor/razor.js +0 -570
- package/redis/redis.contribution.js +0 -19
- package/redis/redis.js +0 -310
- package/redshift/redshift.contribution.js +0 -19
- package/redshift/redshift.js +0 -817
- package/restructuredtext/restructuredtext.contribution.js +0 -19
- package/restructuredtext/restructuredtext.js +0 -182
- package/ruby/ruby.contribution.js +0 -20
- package/ruby/ruby.js +0 -519
- package/rust/rust.contribution.js +0 -19
- package/rust/rust.js +0 -351
- package/sb/sb.contribution.js +0 -19
- package/sb/sb.js +0 -123
- package/scala/scala.contribution.js +0 -20
- package/scala/scala.js +0 -378
- package/scheme/scheme.contribution.js +0 -19
- package/scheme/scheme.js +0 -116
- package/scss/scss.contribution.js +0 -20
- package/scss/scss.js +0 -268
- package/shell/shell.contribution.js +0 -19
- package/shell/shell.js +0 -229
- package/solidity/solidity.contribution.js +0 -19
- package/solidity/solidity.js +0 -1375
- package/sophia/sophia.contribution.js +0 -19
- package/sophia/sophia.js +0 -207
- package/sparql/sparql.contribution.js +0 -19
- package/sparql/sparql.js +0 -209
- package/sql/sql.contribution.js +0 -19
- package/sql/sql.js +0 -861
- package/st/st.contribution.js +0 -19
- package/st/st.js +0 -424
- package/swift/swift.contribution.js +0 -20
- package/swift/swift.js +0 -320
- package/systemverilog/systemverilog.contribution.js +0 -29
- package/systemverilog/systemverilog.js +0 -584
- package/tcl/tcl.contribution.js +0 -19
- package/tcl/tcl.js +0 -240
- package/twig/twig.contribution.js +0 -20
- package/twig/twig.js +0 -400
- package/typescript/typescript.contribution.js +0 -20
- package/typescript/typescript.js +0 -362
- package/typespec/typespec.contribution.js +0 -19
- package/typespec/typespec.js +0 -135
- package/vb/vb.contribution.js +0 -19
- package/vb/vb.js +0 -380
- package/wgsl/wgsl.contribution.js +0 -19
- package/wgsl/wgsl.js +0 -461
- package/xml/xml.contribution.js +0 -39
- package/xml/xml.js +0 -114
- package/yaml/yaml.contribution.js +0 -20
- package/yaml/yaml.js +0 -225
package/pug/pug.js
DELETED
|
@@ -1,410 +0,0 @@
|
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.54.0(undefined)
|
|
4
|
-
* Released under the MIT license
|
|
5
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// src/basic-languages/pug/pug.ts
|
|
10
|
-
var conf = {
|
|
11
|
-
comments: {
|
|
12
|
-
lineComment: "//"
|
|
13
|
-
},
|
|
14
|
-
brackets: [
|
|
15
|
-
["{", "}"],
|
|
16
|
-
["[", "]"],
|
|
17
|
-
["(", ")"]
|
|
18
|
-
],
|
|
19
|
-
autoClosingPairs: [
|
|
20
|
-
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
|
21
|
-
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
22
|
-
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
|
23
|
-
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
|
24
|
-
{ open: "(", close: ")", notIn: ["string", "comment"] }
|
|
25
|
-
],
|
|
26
|
-
folding: {
|
|
27
|
-
offSide: true
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
var language = {
|
|
31
|
-
defaultToken: "",
|
|
32
|
-
tokenPostfix: ".pug",
|
|
33
|
-
ignoreCase: true,
|
|
34
|
-
brackets: [
|
|
35
|
-
{ token: "delimiter.curly", open: "{", close: "}" },
|
|
36
|
-
{ token: "delimiter.array", open: "[", close: "]" },
|
|
37
|
-
{ token: "delimiter.parenthesis", open: "(", close: ")" }
|
|
38
|
-
],
|
|
39
|
-
keywords: [
|
|
40
|
-
"append",
|
|
41
|
-
"block",
|
|
42
|
-
"case",
|
|
43
|
-
"default",
|
|
44
|
-
"doctype",
|
|
45
|
-
"each",
|
|
46
|
-
"else",
|
|
47
|
-
"extends",
|
|
48
|
-
"for",
|
|
49
|
-
"if",
|
|
50
|
-
"in",
|
|
51
|
-
"include",
|
|
52
|
-
"mixin",
|
|
53
|
-
"typeof",
|
|
54
|
-
"unless",
|
|
55
|
-
"var",
|
|
56
|
-
"when"
|
|
57
|
-
],
|
|
58
|
-
tags: [
|
|
59
|
-
"a",
|
|
60
|
-
"abbr",
|
|
61
|
-
"acronym",
|
|
62
|
-
"address",
|
|
63
|
-
"area",
|
|
64
|
-
"article",
|
|
65
|
-
"aside",
|
|
66
|
-
"audio",
|
|
67
|
-
"b",
|
|
68
|
-
"base",
|
|
69
|
-
"basefont",
|
|
70
|
-
"bdi",
|
|
71
|
-
"bdo",
|
|
72
|
-
"blockquote",
|
|
73
|
-
"body",
|
|
74
|
-
"br",
|
|
75
|
-
"button",
|
|
76
|
-
"canvas",
|
|
77
|
-
"caption",
|
|
78
|
-
"center",
|
|
79
|
-
"cite",
|
|
80
|
-
"code",
|
|
81
|
-
"col",
|
|
82
|
-
"colgroup",
|
|
83
|
-
"command",
|
|
84
|
-
"datalist",
|
|
85
|
-
"dd",
|
|
86
|
-
"del",
|
|
87
|
-
"details",
|
|
88
|
-
"dfn",
|
|
89
|
-
"div",
|
|
90
|
-
"dl",
|
|
91
|
-
"dt",
|
|
92
|
-
"em",
|
|
93
|
-
"embed",
|
|
94
|
-
"fieldset",
|
|
95
|
-
"figcaption",
|
|
96
|
-
"figure",
|
|
97
|
-
"font",
|
|
98
|
-
"footer",
|
|
99
|
-
"form",
|
|
100
|
-
"frame",
|
|
101
|
-
"frameset",
|
|
102
|
-
"h1",
|
|
103
|
-
"h2",
|
|
104
|
-
"h3",
|
|
105
|
-
"h4",
|
|
106
|
-
"h5",
|
|
107
|
-
"h6",
|
|
108
|
-
"head",
|
|
109
|
-
"header",
|
|
110
|
-
"hgroup",
|
|
111
|
-
"hr",
|
|
112
|
-
"html",
|
|
113
|
-
"i",
|
|
114
|
-
"iframe",
|
|
115
|
-
"img",
|
|
116
|
-
"input",
|
|
117
|
-
"ins",
|
|
118
|
-
"keygen",
|
|
119
|
-
"kbd",
|
|
120
|
-
"label",
|
|
121
|
-
"li",
|
|
122
|
-
"link",
|
|
123
|
-
"map",
|
|
124
|
-
"mark",
|
|
125
|
-
"menu",
|
|
126
|
-
"meta",
|
|
127
|
-
"meter",
|
|
128
|
-
"nav",
|
|
129
|
-
"noframes",
|
|
130
|
-
"noscript",
|
|
131
|
-
"object",
|
|
132
|
-
"ol",
|
|
133
|
-
"optgroup",
|
|
134
|
-
"option",
|
|
135
|
-
"output",
|
|
136
|
-
"p",
|
|
137
|
-
"param",
|
|
138
|
-
"pre",
|
|
139
|
-
"progress",
|
|
140
|
-
"q",
|
|
141
|
-
"rp",
|
|
142
|
-
"rt",
|
|
143
|
-
"ruby",
|
|
144
|
-
"s",
|
|
145
|
-
"samp",
|
|
146
|
-
"script",
|
|
147
|
-
"section",
|
|
148
|
-
"select",
|
|
149
|
-
"small",
|
|
150
|
-
"source",
|
|
151
|
-
"span",
|
|
152
|
-
"strike",
|
|
153
|
-
"strong",
|
|
154
|
-
"style",
|
|
155
|
-
"sub",
|
|
156
|
-
"summary",
|
|
157
|
-
"sup",
|
|
158
|
-
"table",
|
|
159
|
-
"tbody",
|
|
160
|
-
"td",
|
|
161
|
-
"textarea",
|
|
162
|
-
"tfoot",
|
|
163
|
-
"th",
|
|
164
|
-
"thead",
|
|
165
|
-
"time",
|
|
166
|
-
"title",
|
|
167
|
-
"tr",
|
|
168
|
-
"tracks",
|
|
169
|
-
"tt",
|
|
170
|
-
"u",
|
|
171
|
-
"ul",
|
|
172
|
-
"video",
|
|
173
|
-
"wbr"
|
|
174
|
-
],
|
|
175
|
-
// we include these common regular expressions
|
|
176
|
-
symbols: /[\+\-\*\%\&\|\!\=\/\.\,\:]+/,
|
|
177
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
178
|
-
tokenizer: {
|
|
179
|
-
root: [
|
|
180
|
-
// Tag or a keyword at start
|
|
181
|
-
[
|
|
182
|
-
/^(\s*)([a-zA-Z_-][\w-]*)/,
|
|
183
|
-
{
|
|
184
|
-
cases: {
|
|
185
|
-
"$2@tags": {
|
|
186
|
-
cases: {
|
|
187
|
-
"@eos": ["", "tag"],
|
|
188
|
-
"@default": ["", { token: "tag", next: "@tag.$1" }]
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
"$2@keywords": ["", { token: "keyword.$2" }],
|
|
192
|
-
"@default": ["", ""]
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
],
|
|
196
|
-
// id
|
|
197
|
-
[
|
|
198
|
-
/^(\s*)(#[a-zA-Z_-][\w-]*)/,
|
|
199
|
-
{
|
|
200
|
-
cases: {
|
|
201
|
-
"@eos": ["", "tag.id"],
|
|
202
|
-
"@default": ["", { token: "tag.id", next: "@tag.$1" }]
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
],
|
|
206
|
-
// class
|
|
207
|
-
[
|
|
208
|
-
/^(\s*)(\.[a-zA-Z_-][\w-]*)/,
|
|
209
|
-
{
|
|
210
|
-
cases: {
|
|
211
|
-
"@eos": ["", "tag.class"],
|
|
212
|
-
"@default": ["", { token: "tag.class", next: "@tag.$1" }]
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
],
|
|
216
|
-
// plain text with pipe
|
|
217
|
-
[/^(\s*)(\|.*)$/, ""],
|
|
218
|
-
{ include: "@whitespace" },
|
|
219
|
-
// keywords
|
|
220
|
-
[
|
|
221
|
-
/[a-zA-Z_$][\w$]*/,
|
|
222
|
-
{
|
|
223
|
-
cases: {
|
|
224
|
-
"@keywords": { token: "keyword.$0" },
|
|
225
|
-
"@default": ""
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
],
|
|
229
|
-
// delimiters and operators
|
|
230
|
-
[/[{}()\[\]]/, "@brackets"],
|
|
231
|
-
[/@symbols/, "delimiter"],
|
|
232
|
-
// numbers
|
|
233
|
-
[/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
234
|
-
[/\d+/, "number"],
|
|
235
|
-
// strings:
|
|
236
|
-
[/"/, "string", '@string."'],
|
|
237
|
-
[/'/, "string", "@string.'"]
|
|
238
|
-
],
|
|
239
|
-
tag: [
|
|
240
|
-
[/(\.)(\s*$)/, [{ token: "delimiter", next: "@blockText.$S2." }, ""]],
|
|
241
|
-
[/\s+/, { token: "", next: "@simpleText" }],
|
|
242
|
-
// id
|
|
243
|
-
[
|
|
244
|
-
/#[a-zA-Z_-][\w-]*/,
|
|
245
|
-
{
|
|
246
|
-
cases: {
|
|
247
|
-
"@eos": { token: "tag.id", next: "@pop" },
|
|
248
|
-
"@default": "tag.id"
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
],
|
|
252
|
-
// class
|
|
253
|
-
[
|
|
254
|
-
/\.[a-zA-Z_-][\w-]*/,
|
|
255
|
-
{
|
|
256
|
-
cases: {
|
|
257
|
-
"@eos": { token: "tag.class", next: "@pop" },
|
|
258
|
-
"@default": "tag.class"
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
],
|
|
262
|
-
// attributes
|
|
263
|
-
[/\(/, { token: "delimiter.parenthesis", next: "@attributeList" }]
|
|
264
|
-
],
|
|
265
|
-
simpleText: [
|
|
266
|
-
[/[^#]+$/, { token: "", next: "@popall" }],
|
|
267
|
-
[/[^#]+/, { token: "" }],
|
|
268
|
-
// interpolation
|
|
269
|
-
[
|
|
270
|
-
/(#{)([^}]*)(})/,
|
|
271
|
-
{
|
|
272
|
-
cases: {
|
|
273
|
-
"@eos": [
|
|
274
|
-
"interpolation.delimiter",
|
|
275
|
-
"interpolation",
|
|
276
|
-
{
|
|
277
|
-
token: "interpolation.delimiter",
|
|
278
|
-
next: "@popall"
|
|
279
|
-
}
|
|
280
|
-
],
|
|
281
|
-
"@default": ["interpolation.delimiter", "interpolation", "interpolation.delimiter"]
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
],
|
|
285
|
-
[/#$/, { token: "", next: "@popall" }],
|
|
286
|
-
[/#/, ""]
|
|
287
|
-
],
|
|
288
|
-
attributeList: [
|
|
289
|
-
[/\s+/, ""],
|
|
290
|
-
[
|
|
291
|
-
/(\w+)(\s*=\s*)("|')/,
|
|
292
|
-
["attribute.name", "delimiter", { token: "attribute.value", next: "@value.$3" }]
|
|
293
|
-
],
|
|
294
|
-
[/\w+/, "attribute.name"],
|
|
295
|
-
[
|
|
296
|
-
/,/,
|
|
297
|
-
{
|
|
298
|
-
cases: {
|
|
299
|
-
"@eos": {
|
|
300
|
-
token: "attribute.delimiter",
|
|
301
|
-
next: "@popall"
|
|
302
|
-
},
|
|
303
|
-
"@default": "attribute.delimiter"
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
],
|
|
307
|
-
[/\)$/, { token: "delimiter.parenthesis", next: "@popall" }],
|
|
308
|
-
[/\)/, { token: "delimiter.parenthesis", next: "@pop" }]
|
|
309
|
-
],
|
|
310
|
-
whitespace: [
|
|
311
|
-
[/^(\s*)(\/\/.*)$/, { token: "comment", next: "@blockText.$1.comment" }],
|
|
312
|
-
[/[ \t\r\n]+/, ""],
|
|
313
|
-
[/<!--/, { token: "comment", next: "@comment" }]
|
|
314
|
-
],
|
|
315
|
-
blockText: [
|
|
316
|
-
[
|
|
317
|
-
/^\s+.*$/,
|
|
318
|
-
{
|
|
319
|
-
cases: {
|
|
320
|
-
"($S2\\s+.*$)": { token: "$S3" },
|
|
321
|
-
"@default": { token: "@rematch", next: "@popall" }
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
],
|
|
325
|
-
[/./, { token: "@rematch", next: "@popall" }]
|
|
326
|
-
],
|
|
327
|
-
comment: [
|
|
328
|
-
[/[^<\-]+/, "comment.content"],
|
|
329
|
-
[/-->/, { token: "comment", next: "@pop" }],
|
|
330
|
-
[/<!--/, "comment.content.invalid"],
|
|
331
|
-
[/[<\-]/, "comment.content"]
|
|
332
|
-
],
|
|
333
|
-
string: [
|
|
334
|
-
[
|
|
335
|
-
/[^\\"'#]+/,
|
|
336
|
-
{
|
|
337
|
-
cases: {
|
|
338
|
-
"@eos": { token: "string", next: "@popall" },
|
|
339
|
-
"@default": "string"
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
],
|
|
343
|
-
[
|
|
344
|
-
/@escapes/,
|
|
345
|
-
{
|
|
346
|
-
cases: {
|
|
347
|
-
"@eos": { token: "string.escape", next: "@popall" },
|
|
348
|
-
"@default": "string.escape"
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
],
|
|
352
|
-
[
|
|
353
|
-
/\\./,
|
|
354
|
-
{
|
|
355
|
-
cases: {
|
|
356
|
-
"@eos": {
|
|
357
|
-
token: "string.escape.invalid",
|
|
358
|
-
next: "@popall"
|
|
359
|
-
},
|
|
360
|
-
"@default": "string.escape.invalid"
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
],
|
|
364
|
-
// interpolation
|
|
365
|
-
[/(#{)([^}]*)(})/, ["interpolation.delimiter", "interpolation", "interpolation.delimiter"]],
|
|
366
|
-
[/#/, "string"],
|
|
367
|
-
[
|
|
368
|
-
/["']/,
|
|
369
|
-
{
|
|
370
|
-
cases: {
|
|
371
|
-
"$#==$S2": { token: "string", next: "@pop" },
|
|
372
|
-
"@default": { token: "string" }
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
]
|
|
376
|
-
],
|
|
377
|
-
// Almost identical to above, except for escapes and the output token
|
|
378
|
-
value: [
|
|
379
|
-
[
|
|
380
|
-
/[^\\"']+/,
|
|
381
|
-
{
|
|
382
|
-
cases: {
|
|
383
|
-
"@eos": { token: "attribute.value", next: "@popall" },
|
|
384
|
-
"@default": "attribute.value"
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
],
|
|
388
|
-
[
|
|
389
|
-
/\\./,
|
|
390
|
-
{
|
|
391
|
-
cases: {
|
|
392
|
-
"@eos": { token: "attribute.value", next: "@popall" },
|
|
393
|
-
"@default": "attribute.value"
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
],
|
|
397
|
-
[
|
|
398
|
-
/["']/,
|
|
399
|
-
{
|
|
400
|
-
cases: {
|
|
401
|
-
"$#==$S2": { token: "attribute.value", next: "@pop" },
|
|
402
|
-
"@default": { token: "attribute.value" }
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
]
|
|
406
|
-
]
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
export { conf, language };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { registerLanguage } from '../_.contribution.js';
|
|
2
|
-
|
|
3
|
-
/*!-----------------------------------------------------------------------------
|
|
4
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
-
* Version: 0.54.0(undefined)
|
|
6
|
-
* Released under the MIT license
|
|
7
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
8
|
-
*-----------------------------------------------------------------------------*/
|
|
9
|
-
|
|
10
|
-
registerLanguage({
|
|
11
|
-
id: "python",
|
|
12
|
-
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
13
|
-
aliases: ["Python", "py"],
|
|
14
|
-
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
15
|
-
loader: () => {
|
|
16
|
-
{
|
|
17
|
-
return import('./python.js');
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
});
|