@codingame/monaco-vscode-standalone-languages 23.1.1 → 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
|
@@ -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: "aes",
|
|
12
|
-
extensions: [".aes"],
|
|
13
|
-
aliases: ["aes", "sophia", "Sophia"],
|
|
14
|
-
loader: () => {
|
|
15
|
-
{
|
|
16
|
-
return import('./sophia.js');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
});
|
package/sophia/sophia.js
DELETED
|
@@ -1,207 +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/sophia/sophia.ts
|
|
10
|
-
var conf = {
|
|
11
|
-
comments: {
|
|
12
|
-
lineComment: "//",
|
|
13
|
-
blockComment: ["/*", "*/"]
|
|
14
|
-
},
|
|
15
|
-
brackets: [
|
|
16
|
-
["{", "}"],
|
|
17
|
-
["[", "]"],
|
|
18
|
-
["(", ")"],
|
|
19
|
-
["<", ">"]
|
|
20
|
-
],
|
|
21
|
-
autoClosingPairs: [
|
|
22
|
-
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
|
23
|
-
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
|
24
|
-
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
|
25
|
-
{ open: "(", close: ")", notIn: ["string", "comment"] }
|
|
26
|
-
]
|
|
27
|
-
};
|
|
28
|
-
var language = {
|
|
29
|
-
defaultToken: "",
|
|
30
|
-
tokenPostfix: ".aes",
|
|
31
|
-
brackets: [
|
|
32
|
-
{ token: "delimiter.curly", open: "{", close: "}" },
|
|
33
|
-
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
|
34
|
-
{ token: "delimiter.square", open: "[", close: "]" },
|
|
35
|
-
{ token: "delimiter.angle", open: "<", close: ">" }
|
|
36
|
-
],
|
|
37
|
-
keywords: [
|
|
38
|
-
// Main keywords
|
|
39
|
-
"contract",
|
|
40
|
-
"library",
|
|
41
|
-
"entrypoint",
|
|
42
|
-
"function",
|
|
43
|
-
"stateful",
|
|
44
|
-
"state",
|
|
45
|
-
"hash",
|
|
46
|
-
"signature",
|
|
47
|
-
"tuple",
|
|
48
|
-
"list",
|
|
49
|
-
"address",
|
|
50
|
-
"string",
|
|
51
|
-
"bool",
|
|
52
|
-
"int",
|
|
53
|
-
"record",
|
|
54
|
-
"datatype",
|
|
55
|
-
"type",
|
|
56
|
-
"option",
|
|
57
|
-
"oracle",
|
|
58
|
-
"oracle_query",
|
|
59
|
-
"Call",
|
|
60
|
-
"Bits",
|
|
61
|
-
"Bytes",
|
|
62
|
-
"Oracle",
|
|
63
|
-
"String",
|
|
64
|
-
"Crypto",
|
|
65
|
-
"Address",
|
|
66
|
-
"Auth",
|
|
67
|
-
"Chain",
|
|
68
|
-
"None",
|
|
69
|
-
"Some",
|
|
70
|
-
"bits",
|
|
71
|
-
"bytes",
|
|
72
|
-
"event",
|
|
73
|
-
"let",
|
|
74
|
-
"map",
|
|
75
|
-
"private",
|
|
76
|
-
"public",
|
|
77
|
-
"true",
|
|
78
|
-
"false",
|
|
79
|
-
"var",
|
|
80
|
-
"if",
|
|
81
|
-
"else",
|
|
82
|
-
"throw"
|
|
83
|
-
],
|
|
84
|
-
operators: [
|
|
85
|
-
"=",
|
|
86
|
-
">",
|
|
87
|
-
"<",
|
|
88
|
-
"!",
|
|
89
|
-
"~",
|
|
90
|
-
"?",
|
|
91
|
-
"::",
|
|
92
|
-
":",
|
|
93
|
-
"==",
|
|
94
|
-
"<=",
|
|
95
|
-
">=",
|
|
96
|
-
"!=",
|
|
97
|
-
"&&",
|
|
98
|
-
"||",
|
|
99
|
-
"++",
|
|
100
|
-
"--",
|
|
101
|
-
"+",
|
|
102
|
-
"-",
|
|
103
|
-
"*",
|
|
104
|
-
"/",
|
|
105
|
-
"&",
|
|
106
|
-
"|",
|
|
107
|
-
"^",
|
|
108
|
-
"%",
|
|
109
|
-
"<<",
|
|
110
|
-
">>",
|
|
111
|
-
">>>",
|
|
112
|
-
"+=",
|
|
113
|
-
"-=",
|
|
114
|
-
"*=",
|
|
115
|
-
"/=",
|
|
116
|
-
"&=",
|
|
117
|
-
"|=",
|
|
118
|
-
"^=",
|
|
119
|
-
"%=",
|
|
120
|
-
"<<=",
|
|
121
|
-
">>=",
|
|
122
|
-
">>>="
|
|
123
|
-
],
|
|
124
|
-
// we include these common regular expressions
|
|
125
|
-
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
126
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
127
|
-
integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
|
|
128
|
-
floatsuffix: /[fFlL]?/,
|
|
129
|
-
// The main tokenizer for our languages
|
|
130
|
-
tokenizer: {
|
|
131
|
-
root: [
|
|
132
|
-
// identifiers and keywords
|
|
133
|
-
[
|
|
134
|
-
/[a-zA-Z_]\w*/,
|
|
135
|
-
{
|
|
136
|
-
cases: {
|
|
137
|
-
"@keywords": { token: "keyword.$0" },
|
|
138
|
-
"@default": "identifier"
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
],
|
|
142
|
-
// whitespace
|
|
143
|
-
{ include: "@whitespace" },
|
|
144
|
-
// [[ attributes ]].
|
|
145
|
-
[/\[\[.*\]\]/, "annotation"],
|
|
146
|
-
// Preprocessor directive
|
|
147
|
-
[/^\s*#\w+/, "keyword"],
|
|
148
|
-
//DataTypes
|
|
149
|
-
[/int\d*/, "keyword"],
|
|
150
|
-
// delimiters and operators
|
|
151
|
-
[/[{}()\[\]]/, "@brackets"],
|
|
152
|
-
[/[<>](?!@symbols)/, "@brackets"],
|
|
153
|
-
[
|
|
154
|
-
/@symbols/,
|
|
155
|
-
{
|
|
156
|
-
cases: {
|
|
157
|
-
"@operators": "delimiter",
|
|
158
|
-
"@default": ""
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
],
|
|
162
|
-
// numbers
|
|
163
|
-
[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
164
|
-
[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
|
|
165
|
-
[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"],
|
|
166
|
-
[/0[0-7']*[0-7](@integersuffix)/, "number.octal"],
|
|
167
|
-
[/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"],
|
|
168
|
-
[/\d[\d']*\d(@integersuffix)/, "number"],
|
|
169
|
-
[/\d(@integersuffix)/, "number"],
|
|
170
|
-
// delimiter: after number because of .\d floats
|
|
171
|
-
[/[;,.]/, "delimiter"],
|
|
172
|
-
// strings
|
|
173
|
-
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
174
|
-
// non-teminated string
|
|
175
|
-
[/"/, "string", "@string"],
|
|
176
|
-
// characters
|
|
177
|
-
[/'[^\\']'/, "string"],
|
|
178
|
-
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
|
179
|
-
[/'/, "string.invalid"]
|
|
180
|
-
],
|
|
181
|
-
whitespace: [
|
|
182
|
-
[/[ \t\r\n]+/, ""],
|
|
183
|
-
[/\/\*\*(?!\/)/, "comment.doc", "@doccomment"],
|
|
184
|
-
[/\/\*/, "comment", "@comment"],
|
|
185
|
-
[/\/\/.*$/, "comment"]
|
|
186
|
-
],
|
|
187
|
-
comment: [
|
|
188
|
-
[/[^\/*]+/, "comment"],
|
|
189
|
-
[/\*\//, "comment", "@pop"],
|
|
190
|
-
[/[\/*]/, "comment"]
|
|
191
|
-
],
|
|
192
|
-
//Identical copy of comment above, except for the addition of .doc
|
|
193
|
-
doccomment: [
|
|
194
|
-
[/[^\/*]+/, "comment.doc"],
|
|
195
|
-
[/\*\//, "comment.doc", "@pop"],
|
|
196
|
-
[/[\/*]/, "comment.doc"]
|
|
197
|
-
],
|
|
198
|
-
string: [
|
|
199
|
-
[/[^\\"]+/, "string"],
|
|
200
|
-
[/@escapes/, "string.escape"],
|
|
201
|
-
[/\\./, "string.escape.invalid"],
|
|
202
|
-
[/"/, "string", "@pop"]
|
|
203
|
-
]
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
export { conf, language };
|
|
@@ -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: "sparql",
|
|
12
|
-
extensions: [".rq"],
|
|
13
|
-
aliases: ["sparql", "SPARQL"],
|
|
14
|
-
loader: () => {
|
|
15
|
-
{
|
|
16
|
-
return import('./sparql.js');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
});
|
package/sparql/sparql.js
DELETED
|
@@ -1,209 +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/sparql/sparql.ts
|
|
10
|
-
var conf = {
|
|
11
|
-
comments: {
|
|
12
|
-
lineComment: "#"
|
|
13
|
-
},
|
|
14
|
-
brackets: [
|
|
15
|
-
["{", "}"],
|
|
16
|
-
["[", "]"],
|
|
17
|
-
["(", ")"]
|
|
18
|
-
],
|
|
19
|
-
autoClosingPairs: [
|
|
20
|
-
{ open: "'", close: "'", notIn: ["string"] },
|
|
21
|
-
{ open: '"', close: '"', notIn: ["string"] },
|
|
22
|
-
{ open: "{", close: "}" },
|
|
23
|
-
{ open: "[", close: "]" },
|
|
24
|
-
{ open: "(", close: ")" }
|
|
25
|
-
]
|
|
26
|
-
};
|
|
27
|
-
var language = {
|
|
28
|
-
defaultToken: "",
|
|
29
|
-
tokenPostfix: ".rq",
|
|
30
|
-
brackets: [
|
|
31
|
-
{ token: "delimiter.curly", open: "{", close: "}" },
|
|
32
|
-
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
|
33
|
-
{ token: "delimiter.square", open: "[", close: "]" },
|
|
34
|
-
{ token: "delimiter.angle", open: "<", close: ">" }
|
|
35
|
-
],
|
|
36
|
-
keywords: [
|
|
37
|
-
"add",
|
|
38
|
-
"as",
|
|
39
|
-
"asc",
|
|
40
|
-
"ask",
|
|
41
|
-
"base",
|
|
42
|
-
"by",
|
|
43
|
-
"clear",
|
|
44
|
-
"construct",
|
|
45
|
-
"copy",
|
|
46
|
-
"create",
|
|
47
|
-
"data",
|
|
48
|
-
"delete",
|
|
49
|
-
"desc",
|
|
50
|
-
"describe",
|
|
51
|
-
"distinct",
|
|
52
|
-
"drop",
|
|
53
|
-
"false",
|
|
54
|
-
"filter",
|
|
55
|
-
"from",
|
|
56
|
-
"graph",
|
|
57
|
-
"group",
|
|
58
|
-
"having",
|
|
59
|
-
"in",
|
|
60
|
-
"insert",
|
|
61
|
-
"limit",
|
|
62
|
-
"load",
|
|
63
|
-
"minus",
|
|
64
|
-
"move",
|
|
65
|
-
"named",
|
|
66
|
-
"not",
|
|
67
|
-
"offset",
|
|
68
|
-
"optional",
|
|
69
|
-
"order",
|
|
70
|
-
"prefix",
|
|
71
|
-
"reduced",
|
|
72
|
-
"select",
|
|
73
|
-
"service",
|
|
74
|
-
"silent",
|
|
75
|
-
"to",
|
|
76
|
-
"true",
|
|
77
|
-
"undef",
|
|
78
|
-
"union",
|
|
79
|
-
"using",
|
|
80
|
-
"values",
|
|
81
|
-
"where",
|
|
82
|
-
"with"
|
|
83
|
-
],
|
|
84
|
-
builtinFunctions: [
|
|
85
|
-
"a",
|
|
86
|
-
"abs",
|
|
87
|
-
"avg",
|
|
88
|
-
"bind",
|
|
89
|
-
"bnode",
|
|
90
|
-
"bound",
|
|
91
|
-
"ceil",
|
|
92
|
-
"coalesce",
|
|
93
|
-
"concat",
|
|
94
|
-
"contains",
|
|
95
|
-
"count",
|
|
96
|
-
"datatype",
|
|
97
|
-
"day",
|
|
98
|
-
"encode_for_uri",
|
|
99
|
-
"exists",
|
|
100
|
-
"floor",
|
|
101
|
-
"group_concat",
|
|
102
|
-
"hours",
|
|
103
|
-
"if",
|
|
104
|
-
"iri",
|
|
105
|
-
"isblank",
|
|
106
|
-
"isiri",
|
|
107
|
-
"isliteral",
|
|
108
|
-
"isnumeric",
|
|
109
|
-
"isuri",
|
|
110
|
-
"lang",
|
|
111
|
-
"langmatches",
|
|
112
|
-
"lcase",
|
|
113
|
-
"max",
|
|
114
|
-
"md5",
|
|
115
|
-
"min",
|
|
116
|
-
"minutes",
|
|
117
|
-
"month",
|
|
118
|
-
"now",
|
|
119
|
-
"rand",
|
|
120
|
-
"regex",
|
|
121
|
-
"replace",
|
|
122
|
-
"round",
|
|
123
|
-
"sameterm",
|
|
124
|
-
"sample",
|
|
125
|
-
"seconds",
|
|
126
|
-
"sha1",
|
|
127
|
-
"sha256",
|
|
128
|
-
"sha384",
|
|
129
|
-
"sha512",
|
|
130
|
-
"str",
|
|
131
|
-
"strafter",
|
|
132
|
-
"strbefore",
|
|
133
|
-
"strdt",
|
|
134
|
-
"strends",
|
|
135
|
-
"strlang",
|
|
136
|
-
"strlen",
|
|
137
|
-
"strstarts",
|
|
138
|
-
"struuid",
|
|
139
|
-
"substr",
|
|
140
|
-
"sum",
|
|
141
|
-
"timezone",
|
|
142
|
-
"tz",
|
|
143
|
-
"ucase",
|
|
144
|
-
"uri",
|
|
145
|
-
"uuid",
|
|
146
|
-
"year"
|
|
147
|
-
],
|
|
148
|
-
// describe tokens
|
|
149
|
-
ignoreCase: true,
|
|
150
|
-
tokenizer: {
|
|
151
|
-
root: [
|
|
152
|
-
// resource indicators
|
|
153
|
-
[/<[^\s\u00a0>]*>?/, "tag"],
|
|
154
|
-
// strings
|
|
155
|
-
{ include: "@strings" },
|
|
156
|
-
// line comment
|
|
157
|
-
[/#.*/, "comment"],
|
|
158
|
-
// special chars with special meaning
|
|
159
|
-
[/[{}()\[\]]/, "@brackets"],
|
|
160
|
-
[/[;,.]/, "delimiter"],
|
|
161
|
-
// (prefixed) name
|
|
162
|
-
[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/, "tag"],
|
|
163
|
-
[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/, "tag"],
|
|
164
|
-
// identifiers, builtinFunctions and keywords
|
|
165
|
-
[
|
|
166
|
-
/[$?]?[_\w\d]+/,
|
|
167
|
-
{
|
|
168
|
-
cases: {
|
|
169
|
-
"@keywords": { token: "keyword" },
|
|
170
|
-
"@builtinFunctions": { token: "predefined.sql" },
|
|
171
|
-
"@default": "identifier"
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
],
|
|
175
|
-
// operators
|
|
176
|
-
[/\^\^/, "operator.sql"],
|
|
177
|
-
[/\^[*+\-<>=&|^\/!?]*/, "operator.sql"],
|
|
178
|
-
[/[*+\-<>=&|\/!?]/, "operator.sql"],
|
|
179
|
-
// symbol
|
|
180
|
-
[/@[a-z\d\-]*/, "metatag.html"],
|
|
181
|
-
// whitespaces
|
|
182
|
-
[/\s+/, "white"]
|
|
183
|
-
],
|
|
184
|
-
strings: [
|
|
185
|
-
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
186
|
-
// non-terminated single-quoted string
|
|
187
|
-
[/'$/, "string.sql", "@pop"],
|
|
188
|
-
[/'/, "string.sql", "@stringBody"],
|
|
189
|
-
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
190
|
-
// non-terminated single-quoted string
|
|
191
|
-
[/"$/, "string.sql", "@pop"],
|
|
192
|
-
[/"/, "string.sql", "@dblStringBody"]
|
|
193
|
-
],
|
|
194
|
-
// single-quoted strings
|
|
195
|
-
stringBody: [
|
|
196
|
-
[/[^\\']+/, "string.sql"],
|
|
197
|
-
[/\\./, "string.escape"],
|
|
198
|
-
[/'/, "string.sql", "@pop"]
|
|
199
|
-
],
|
|
200
|
-
// double-quoted strings
|
|
201
|
-
dblStringBody: [
|
|
202
|
-
[/[^\\"]+/, "string.sql"],
|
|
203
|
-
[/\\./, "string.escape"],
|
|
204
|
-
[/"/, "string.sql", "@pop"]
|
|
205
|
-
]
|
|
206
|
-
}
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
export { conf, language };
|
package/sql/sql.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: "sql",
|
|
12
|
-
extensions: [".sql"],
|
|
13
|
-
aliases: ["SQL"],
|
|
14
|
-
loader: () => {
|
|
15
|
-
{
|
|
16
|
-
return import('./sql.js');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
});
|