@codingame/monaco-vscode-standalone-languages 23.1.1 → 23.2.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/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/protobuf/protobuf.js
DELETED
|
@@ -1,428 +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/protobuf/protobuf.ts
|
|
10
|
-
var namedLiterals = ["true", "false"];
|
|
11
|
-
var conf = {
|
|
12
|
-
comments: {
|
|
13
|
-
lineComment: "//",
|
|
14
|
-
blockComment: ["/*", "*/"]
|
|
15
|
-
},
|
|
16
|
-
brackets: [
|
|
17
|
-
["{", "}"],
|
|
18
|
-
["[", "]"],
|
|
19
|
-
["(", ")"],
|
|
20
|
-
["<", ">"]
|
|
21
|
-
],
|
|
22
|
-
surroundingPairs: [
|
|
23
|
-
{ open: "{", close: "}" },
|
|
24
|
-
{ open: "[", close: "]" },
|
|
25
|
-
{ open: "(", close: ")" },
|
|
26
|
-
{ open: "<", close: ">" },
|
|
27
|
-
{ open: '"', close: '"' },
|
|
28
|
-
{ open: "'", close: "'" }
|
|
29
|
-
],
|
|
30
|
-
autoClosingPairs: [
|
|
31
|
-
{ open: "{", close: "}" },
|
|
32
|
-
{ open: "[", close: "]" },
|
|
33
|
-
{ open: "(", close: ")" },
|
|
34
|
-
{ open: "<", close: ">" },
|
|
35
|
-
{ open: '"', close: '"', notIn: ["string"] },
|
|
36
|
-
{ open: "'", close: "'", notIn: ["string"] }
|
|
37
|
-
],
|
|
38
|
-
autoCloseBefore: ".,=}])>' \n ",
|
|
39
|
-
indentationRules: {
|
|
40
|
-
increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
|
|
41
|
-
decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var language = {
|
|
45
|
-
defaultToken: "",
|
|
46
|
-
tokenPostfix: ".proto",
|
|
47
|
-
brackets: [
|
|
48
|
-
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
49
|
-
{ open: "[", close: "]", token: "delimiter.square" },
|
|
50
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
51
|
-
{ open: "<", close: ">", token: "delimiter.angle" }
|
|
52
|
-
],
|
|
53
|
-
symbols: /[=><!~?:&|+\-*/^%]+/,
|
|
54
|
-
keywords: [
|
|
55
|
-
"syntax",
|
|
56
|
-
"import",
|
|
57
|
-
"weak",
|
|
58
|
-
"public",
|
|
59
|
-
"package",
|
|
60
|
-
"option",
|
|
61
|
-
"repeated",
|
|
62
|
-
"oneof",
|
|
63
|
-
"map",
|
|
64
|
-
"reserved",
|
|
65
|
-
"to",
|
|
66
|
-
"max",
|
|
67
|
-
"enum",
|
|
68
|
-
"message",
|
|
69
|
-
"service",
|
|
70
|
-
"rpc",
|
|
71
|
-
"stream",
|
|
72
|
-
"returns",
|
|
73
|
-
"package",
|
|
74
|
-
"optional",
|
|
75
|
-
"true",
|
|
76
|
-
"false"
|
|
77
|
-
],
|
|
78
|
-
builtinTypes: [
|
|
79
|
-
"double",
|
|
80
|
-
"float",
|
|
81
|
-
"int32",
|
|
82
|
-
"int64",
|
|
83
|
-
"uint32",
|
|
84
|
-
"uint64",
|
|
85
|
-
"sint32",
|
|
86
|
-
"sint64",
|
|
87
|
-
"fixed32",
|
|
88
|
-
"fixed64",
|
|
89
|
-
"sfixed32",
|
|
90
|
-
"sfixed64",
|
|
91
|
-
"bool",
|
|
92
|
-
"string",
|
|
93
|
-
"bytes"
|
|
94
|
-
],
|
|
95
|
-
operators: ["=", "+", "-"],
|
|
96
|
-
namedLiterals,
|
|
97
|
-
escapes: `\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\\${)`,
|
|
98
|
-
identifier: /[a-zA-Z]\w*/,
|
|
99
|
-
fullIdentifier: /@identifier(?:\s*\.\s*@identifier)*/,
|
|
100
|
-
optionName: /(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,
|
|
101
|
-
messageName: /@identifier/,
|
|
102
|
-
enumName: /@identifier/,
|
|
103
|
-
messageType: /\.?\s*(?:@identifier\s*\.\s*)*@messageName/,
|
|
104
|
-
enumType: /\.?\s*(?:@identifier\s*\.\s*)*@enumName/,
|
|
105
|
-
floatLit: /[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,
|
|
106
|
-
exponent: /[eE]\s*[+-]?\s*[0-9]+/,
|
|
107
|
-
boolLit: /true\b|false\b/,
|
|
108
|
-
decimalLit: /[1-9][0-9]*/,
|
|
109
|
-
octalLit: /0[0-7]*/,
|
|
110
|
-
hexLit: /0[xX][0-9a-fA-F]+/,
|
|
111
|
-
type: /double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,
|
|
112
|
-
keyType: /int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,
|
|
113
|
-
tokenizer: {
|
|
114
|
-
root: [
|
|
115
|
-
{ include: "@whitespace" },
|
|
116
|
-
[/syntax/, "keyword"],
|
|
117
|
-
[/=/, "operators"],
|
|
118
|
-
[/;/, "delimiter"],
|
|
119
|
-
[
|
|
120
|
-
/(")(proto3)(")/,
|
|
121
|
-
["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto3" }]
|
|
122
|
-
],
|
|
123
|
-
[
|
|
124
|
-
/(")(proto2)(")/,
|
|
125
|
-
["string.quote", "string", { token: "string.quote", switchTo: "@topLevel.proto2" }]
|
|
126
|
-
],
|
|
127
|
-
[
|
|
128
|
-
// If no `syntax` provided, regarded as proto2
|
|
129
|
-
/.*?/,
|
|
130
|
-
{ token: "", switchTo: "@topLevel.proto2" }
|
|
131
|
-
]
|
|
132
|
-
],
|
|
133
|
-
topLevel: [
|
|
134
|
-
// whitespace
|
|
135
|
-
{ include: "@whitespace" },
|
|
136
|
-
{ include: "@constant" },
|
|
137
|
-
[/=/, "operators"],
|
|
138
|
-
[/[;.]/, "delimiter"],
|
|
139
|
-
[
|
|
140
|
-
/@fullIdentifier/,
|
|
141
|
-
{
|
|
142
|
-
cases: {
|
|
143
|
-
option: { token: "keyword", next: "@option.$S2" },
|
|
144
|
-
enum: { token: "keyword", next: "@enumDecl.$S2" },
|
|
145
|
-
message: { token: "keyword", next: "@messageDecl.$S2" },
|
|
146
|
-
service: { token: "keyword", next: "@serviceDecl.$S2" },
|
|
147
|
-
extend: {
|
|
148
|
-
cases: {
|
|
149
|
-
"$S2==proto2": { token: "keyword", next: "@extendDecl.$S2" }
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"@keywords": "keyword",
|
|
153
|
-
"@default": "identifier"
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
]
|
|
157
|
-
],
|
|
158
|
-
enumDecl: [
|
|
159
|
-
{ include: "@whitespace" },
|
|
160
|
-
[/@identifier/, "type.identifier"],
|
|
161
|
-
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@enumBody.$S2" }]
|
|
162
|
-
],
|
|
163
|
-
enumBody: [
|
|
164
|
-
{ include: "@whitespace" },
|
|
165
|
-
{ include: "@constant" },
|
|
166
|
-
[/=/, "operators"],
|
|
167
|
-
[/;/, "delimiter"],
|
|
168
|
-
[/option\b/, "keyword", "@option.$S2"],
|
|
169
|
-
[/@identifier/, "identifier"],
|
|
170
|
-
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
171
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
172
|
-
],
|
|
173
|
-
messageDecl: [
|
|
174
|
-
{ include: "@whitespace" },
|
|
175
|
-
[/@identifier/, "type.identifier"],
|
|
176
|
-
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }]
|
|
177
|
-
],
|
|
178
|
-
messageBody: [
|
|
179
|
-
{ include: "@whitespace" },
|
|
180
|
-
{ include: "@constant" },
|
|
181
|
-
[/=/, "operators"],
|
|
182
|
-
[/;/, "delimiter"],
|
|
183
|
-
[
|
|
184
|
-
"(map)(s*)(<)",
|
|
185
|
-
["keyword", "white", { token: "@brackets", bracket: "@open", next: "@map.$S2" }]
|
|
186
|
-
],
|
|
187
|
-
[
|
|
188
|
-
/@identifier/,
|
|
189
|
-
{
|
|
190
|
-
cases: {
|
|
191
|
-
option: { token: "keyword", next: "@option.$S2" },
|
|
192
|
-
enum: { token: "keyword", next: "@enumDecl.$S2" },
|
|
193
|
-
message: { token: "keyword", next: "@messageDecl.$S2" },
|
|
194
|
-
oneof: { token: "keyword", next: "@oneofDecl.$S2" },
|
|
195
|
-
extensions: {
|
|
196
|
-
cases: {
|
|
197
|
-
"$S2==proto2": { token: "keyword", next: "@reserved.$S2" }
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
reserved: { token: "keyword", next: "@reserved.$S2" },
|
|
201
|
-
"(?:repeated|optional)": { token: "keyword", next: "@field.$S2" },
|
|
202
|
-
required: {
|
|
203
|
-
cases: {
|
|
204
|
-
"$S2==proto2": { token: "keyword", next: "@field.$S2" }
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
"$S2==proto3": { token: "@rematch", next: "@field.$S2" }
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
],
|
|
211
|
-
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
212
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
213
|
-
],
|
|
214
|
-
extendDecl: [
|
|
215
|
-
{ include: "@whitespace" },
|
|
216
|
-
[/@identifier/, "type.identifier"],
|
|
217
|
-
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@extendBody.$S2" }]
|
|
218
|
-
],
|
|
219
|
-
extendBody: [
|
|
220
|
-
{ include: "@whitespace" },
|
|
221
|
-
{ include: "@constant" },
|
|
222
|
-
[/;/, "delimiter"],
|
|
223
|
-
[/(?:repeated|optional|required)/, "keyword", "@field.$S2"],
|
|
224
|
-
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
225
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
226
|
-
],
|
|
227
|
-
options: [
|
|
228
|
-
{ include: "@whitespace" },
|
|
229
|
-
{ include: "@constant" },
|
|
230
|
-
[/;/, "delimiter"],
|
|
231
|
-
[/@optionName/, "annotation"],
|
|
232
|
-
[/[()]/, "annotation.brackets"],
|
|
233
|
-
[/=/, "operator"],
|
|
234
|
-
[/\]/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
235
|
-
],
|
|
236
|
-
option: [
|
|
237
|
-
{ include: "@whitespace" },
|
|
238
|
-
[/@optionName/, "annotation"],
|
|
239
|
-
[/[()]/, "annotation.brackets"],
|
|
240
|
-
[/=/, "operator", "@pop"]
|
|
241
|
-
],
|
|
242
|
-
oneofDecl: [
|
|
243
|
-
{ include: "@whitespace" },
|
|
244
|
-
[/@identifier/, "identifier"],
|
|
245
|
-
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@oneofBody.$S2" }]
|
|
246
|
-
],
|
|
247
|
-
oneofBody: [
|
|
248
|
-
{ include: "@whitespace" },
|
|
249
|
-
{ include: "@constant" },
|
|
250
|
-
[/;/, "delimiter"],
|
|
251
|
-
[/(@identifier)(\s*)(=)/, ["identifier", "white", "delimiter"]],
|
|
252
|
-
[
|
|
253
|
-
/@fullIdentifier|\./,
|
|
254
|
-
{
|
|
255
|
-
cases: {
|
|
256
|
-
"@builtinTypes": "keyword",
|
|
257
|
-
"@default": "type.identifier"
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
],
|
|
261
|
-
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
262
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
263
|
-
],
|
|
264
|
-
reserved: [
|
|
265
|
-
{ include: "@whitespace" },
|
|
266
|
-
[/,/, "delimiter"],
|
|
267
|
-
[/;/, "delimiter", "@pop"],
|
|
268
|
-
{ include: "@constant" },
|
|
269
|
-
[/to\b|max\b/, "keyword"]
|
|
270
|
-
],
|
|
271
|
-
map: [
|
|
272
|
-
{ include: "@whitespace" },
|
|
273
|
-
[
|
|
274
|
-
/@fullIdentifier|\./,
|
|
275
|
-
{
|
|
276
|
-
cases: {
|
|
277
|
-
"@builtinTypes": "keyword",
|
|
278
|
-
"@default": "type.identifier"
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
],
|
|
282
|
-
[/,/, "delimiter"],
|
|
283
|
-
[/>/, { token: "@brackets", bracket: "@close", switchTo: "identifier" }]
|
|
284
|
-
],
|
|
285
|
-
field: [
|
|
286
|
-
{ include: "@whitespace" },
|
|
287
|
-
[
|
|
288
|
-
"group",
|
|
289
|
-
{
|
|
290
|
-
cases: {
|
|
291
|
-
"$S2==proto2": { token: "keyword", switchTo: "@groupDecl.$S2" }
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
],
|
|
295
|
-
[/(@identifier)(\s*)(=)/, ["identifier", "white", { token: "delimiter", next: "@pop" }]],
|
|
296
|
-
[
|
|
297
|
-
/@fullIdentifier|\./,
|
|
298
|
-
{
|
|
299
|
-
cases: {
|
|
300
|
-
"@builtinTypes": "keyword",
|
|
301
|
-
"@default": "type.identifier"
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
]
|
|
305
|
-
],
|
|
306
|
-
groupDecl: [
|
|
307
|
-
{ include: "@whitespace" },
|
|
308
|
-
[/@identifier/, "identifier"],
|
|
309
|
-
["=", "operator"],
|
|
310
|
-
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@messageBody.$S2" }],
|
|
311
|
-
{ include: "@constant" }
|
|
312
|
-
],
|
|
313
|
-
type: [
|
|
314
|
-
{ include: "@whitespace" },
|
|
315
|
-
[/@identifier/, "type.identifier", "@pop"],
|
|
316
|
-
[/./, "delimiter"]
|
|
317
|
-
],
|
|
318
|
-
identifier: [{ include: "@whitespace" }, [/@identifier/, "identifier", "@pop"]],
|
|
319
|
-
serviceDecl: [
|
|
320
|
-
{ include: "@whitespace" },
|
|
321
|
-
[/@identifier/, "identifier"],
|
|
322
|
-
[/{/, { token: "@brackets", bracket: "@open", switchTo: "@serviceBody.$S2" }]
|
|
323
|
-
],
|
|
324
|
-
serviceBody: [
|
|
325
|
-
{ include: "@whitespace" },
|
|
326
|
-
{ include: "@constant" },
|
|
327
|
-
[/;/, "delimiter"],
|
|
328
|
-
[/option\b/, "keyword", "@option.$S2"],
|
|
329
|
-
[/rpc\b/, "keyword", "@rpc.$S2"],
|
|
330
|
-
[/\[/, { token: "@brackets", bracket: "@open", next: "@options.$S2" }],
|
|
331
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
332
|
-
],
|
|
333
|
-
rpc: [
|
|
334
|
-
{ include: "@whitespace" },
|
|
335
|
-
[/@identifier/, "identifier"],
|
|
336
|
-
[/\(/, { token: "@brackets", bracket: "@open", switchTo: "@request.$S2" }],
|
|
337
|
-
[/{/, { token: "@brackets", bracket: "@open", next: "@methodOptions.$S2" }],
|
|
338
|
-
[/;/, "delimiter", "@pop"]
|
|
339
|
-
],
|
|
340
|
-
request: [
|
|
341
|
-
{ include: "@whitespace" },
|
|
342
|
-
[
|
|
343
|
-
/@messageType/,
|
|
344
|
-
{
|
|
345
|
-
cases: {
|
|
346
|
-
stream: { token: "keyword", next: "@type.$S2" },
|
|
347
|
-
"@default": "type.identifier"
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
],
|
|
351
|
-
[/\)/, { token: "@brackets", bracket: "@close", switchTo: "@returns.$S2" }]
|
|
352
|
-
],
|
|
353
|
-
returns: [
|
|
354
|
-
{ include: "@whitespace" },
|
|
355
|
-
[/returns\b/, "keyword"],
|
|
356
|
-
[/\(/, { token: "@brackets", bracket: "@open", switchTo: "@response.$S2" }]
|
|
357
|
-
],
|
|
358
|
-
response: [
|
|
359
|
-
{ include: "@whitespace" },
|
|
360
|
-
[
|
|
361
|
-
/@messageType/,
|
|
362
|
-
{
|
|
363
|
-
cases: {
|
|
364
|
-
stream: { token: "keyword", next: "@type.$S2" },
|
|
365
|
-
"@default": "type.identifier"
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
],
|
|
369
|
-
[/\)/, { token: "@brackets", bracket: "@close", switchTo: "@rpc.$S2" }]
|
|
370
|
-
],
|
|
371
|
-
methodOptions: [
|
|
372
|
-
{ include: "@whitespace" },
|
|
373
|
-
{ include: "@constant" },
|
|
374
|
-
[/;/, "delimiter"],
|
|
375
|
-
["option", "keyword"],
|
|
376
|
-
[/@optionName/, "annotation"],
|
|
377
|
-
[/[()]/, "annotation.brackets"],
|
|
378
|
-
[/=/, "operator"],
|
|
379
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
380
|
-
],
|
|
381
|
-
comment: [
|
|
382
|
-
[/[^\/*]+/, "comment"],
|
|
383
|
-
[/\/\*/, "comment", "@push"],
|
|
384
|
-
// nested comment
|
|
385
|
-
["\\*/", "comment", "@pop"],
|
|
386
|
-
[/[\/*]/, "comment"]
|
|
387
|
-
],
|
|
388
|
-
string: [
|
|
389
|
-
[/[^\\"]+/, "string"],
|
|
390
|
-
[/@escapes/, "string.escape"],
|
|
391
|
-
[/\\./, "string.escape.invalid"],
|
|
392
|
-
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
393
|
-
],
|
|
394
|
-
stringSingle: [
|
|
395
|
-
[/[^\\']+/, "string"],
|
|
396
|
-
[/@escapes/, "string.escape"],
|
|
397
|
-
[/\\./, "string.escape.invalid"],
|
|
398
|
-
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
399
|
-
],
|
|
400
|
-
constant: [
|
|
401
|
-
["@boolLit", "keyword.constant"],
|
|
402
|
-
["@hexLit", "number.hex"],
|
|
403
|
-
["@octalLit", "number.octal"],
|
|
404
|
-
["@decimalLit", "number"],
|
|
405
|
-
["@floatLit", "number.float"],
|
|
406
|
-
[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/, "string.invalid"],
|
|
407
|
-
// non-terminated string
|
|
408
|
-
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
|
409
|
-
[/'/, { token: "string.quote", bracket: "@open", next: "@stringSingle" }],
|
|
410
|
-
[/{/, { token: "@brackets", bracket: "@open", next: "@prototext" }],
|
|
411
|
-
[/identifier/, "identifier"]
|
|
412
|
-
],
|
|
413
|
-
whitespace: [
|
|
414
|
-
[/[ \t\r\n]+/, "white"],
|
|
415
|
-
[/\/\*/, "comment", "@comment"],
|
|
416
|
-
[/\/\/.*$/, "comment"]
|
|
417
|
-
],
|
|
418
|
-
prototext: [
|
|
419
|
-
{ include: "@whitespace" },
|
|
420
|
-
{ include: "@constant" },
|
|
421
|
-
[/@identifier/, "identifier"],
|
|
422
|
-
[/[:;]/, "delimiter"],
|
|
423
|
-
[/}/, { token: "@brackets", bracket: "@close", next: "@pop" }]
|
|
424
|
-
]
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
|
|
428
|
-
export { conf, language };
|
package/pug/pug.contribution.js
DELETED
|
@@ -1,19 +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: "pug",
|
|
12
|
-
extensions: [".jade", ".pug"],
|
|
13
|
-
aliases: ["Pug", "Jade", "jade"],
|
|
14
|
-
loader: () => {
|
|
15
|
-
{
|
|
16
|
-
return import('./pug.js');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
});
|