@codingame/monaco-vscode-standalone-languages 3.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/_.contribution.js +74 -0
- package/abap/abap.contribution.js +19 -0
- package/abap/abap.js +1406 -0
- package/apex/apex.contribution.js +20 -0
- package/apex/apex.js +338 -0
- package/azcli/azcli.contribution.js +19 -0
- package/azcli/azcli.js +76 -0
- package/bat/bat.contribution.js +19 -0
- package/bat/bat.js +108 -0
- package/bicep/bicep.contribution.js +19 -0
- package/bicep/bicep.js +117 -0
- package/cameligo/cameligo.contribution.js +19 -0
- package/cameligo/cameligo.js +182 -0
- package/clojure/clojure.contribution.js +19 -0
- package/clojure/clojure.js +769 -0
- package/coffee/coffee.contribution.js +20 -0
- package/coffee/coffee.js +240 -0
- package/cpp/cpp.contribution.js +29 -0
- package/cpp/cpp.js +409 -0
- package/csharp/csharp.contribution.js +19 -0
- package/csharp/csharp.js +334 -0
- package/csp/csp.contribution.js +19 -0
- package/csp/csp.js +61 -0
- package/css/css.contribution.js +20 -0
- package/css/css.js +193 -0
- package/cypher/cypher.contribution.js +19 -0
- package/cypher/cypher.js +271 -0
- package/dart/dart.contribution.js +20 -0
- package/dart/dart.js +289 -0
- package/dockerfile/dockerfile.contribution.js +20 -0
- package/dockerfile/dockerfile.js +138 -0
- package/ecl/ecl.contribution.js +19 -0
- package/ecl/ecl.js +464 -0
- package/elixir/elixir.contribution.js +19 -0
- package/elixir/elixir.js +577 -0
- package/flow9/flow9.contribution.js +19 -0
- package/flow9/flow9.js +150 -0
- package/freemarker2/freemarker2.contribution.js +73 -0
- package/freemarker2/freemarker2.js +1016 -0
- package/fsharp/fsharp.contribution.js +19 -0
- package/fsharp/fsharp.js +225 -0
- package/go/go.contribution.js +19 -0
- package/go/go.js +226 -0
- package/graphql/graphql.contribution.js +20 -0
- package/graphql/graphql.js +159 -0
- package/handlebars/handlebars.contribution.js +20 -0
- package/handlebars/handlebars.js +439 -0
- package/hcl/hcl.contribution.js +19 -0
- package/hcl/hcl.js +191 -0
- package/html/html.contribution.js +20 -0
- package/html/html.js +328 -0
- package/index.js +81 -0
- package/ini/ini.contribution.js +20 -0
- package/ini/ini.js +79 -0
- package/java/java.contribution.js +20 -0
- package/java/java.js +240 -0
- package/javascript/javascript.contribution.js +22 -0
- package/javascript/javascript.js +77 -0
- package/julia/julia.contribution.js +19 -0
- package/julia/julia.js +519 -0
- package/kotlin/kotlin.contribution.js +20 -0
- package/kotlin/kotlin.js +261 -0
- package/less/less.contribution.js +20 -0
- package/less/less.js +169 -0
- package/lexon/lexon.contribution.js +19 -0
- package/lexon/lexon.js +165 -0
- package/liquid/liquid.contribution.js +20 -0
- package/liquid/liquid.js +260 -0
- package/lua/lua.contribution.js +19 -0
- package/lua/lua.js +170 -0
- package/m3/m3.contribution.js +19 -0
- package/m3/m3.js +218 -0
- package/markdown/markdown.contribution.js +19 -0
- package/markdown/markdown.js +237 -0
- package/mdx/mdx.contribution.js +19 -0
- package/mdx/mdx.js +184 -0
- package/mips/mips.contribution.js +20 -0
- package/mips/mips.js +206 -0
- package/msdax/msdax.contribution.js +19 -0
- package/msdax/msdax.js +383 -0
- package/mysql/mysql.contribution.js +19 -0
- package/mysql/mysql.js +886 -0
- package/objective-c/objective-c.contribution.js +19 -0
- package/objective-c/objective-c.js +191 -0
- package/package.json +23 -0
- package/pascal/pascal.contribution.js +20 -0
- package/pascal/pascal.js +259 -0
- package/pascaligo/pascaligo.contribution.js +19 -0
- package/pascaligo/pascaligo.js +172 -0
- package/perl/perl.contribution.js +19 -0
- package/perl/perl.js +634 -0
- package/pgsql/pgsql.contribution.js +19 -0
- package/pgsql/pgsql.js +859 -0
- package/php/php.contribution.js +20 -0
- package/php/php.js +508 -0
- package/pla/pla.contribution.js +18 -0
- package/pla/pla.js +145 -0
- package/postiats/postiats.contribution.js +19 -0
- package/postiats/postiats.js +915 -0
- package/powerquery/powerquery.contribution.js +19 -0
- package/powerquery/powerquery.js +898 -0
- package/powershell/powershell.contribution.js +19 -0
- package/powershell/powershell.js +247 -0
- package/protobuf/protobuf.contribution.js +19 -0
- package/protobuf/protobuf.js +428 -0
- package/pug/pug.contribution.js +19 -0
- package/pug/pug.js +410 -0
- package/python/python.contribution.js +20 -0
- package/python/python.js +295 -0
- package/qsharp/qsharp.contribution.js +19 -0
- package/qsharp/qsharp.js +293 -0
- package/r/r.contribution.js +19 -0
- package/r/r.js +251 -0
- package/razor/razor.contribution.js +20 -0
- package/razor/razor.js +570 -0
- package/redis/redis.contribution.js +19 -0
- package/redis/redis.js +310 -0
- package/redshift/redshift.contribution.js +19 -0
- package/redshift/redshift.js +817 -0
- package/restructuredtext/restructuredtext.contribution.js +19 -0
- package/restructuredtext/restructuredtext.js +182 -0
- package/ruby/ruby.contribution.js +20 -0
- package/ruby/ruby.js +519 -0
- package/rust/rust.contribution.js +19 -0
- package/rust/rust.js +351 -0
- package/sb/sb.contribution.js +19 -0
- package/sb/sb.js +123 -0
- package/scala/scala.contribution.js +20 -0
- package/scala/scala.js +378 -0
- package/scheme/scheme.contribution.js +19 -0
- package/scheme/scheme.js +116 -0
- package/scss/scss.contribution.js +20 -0
- package/scss/scss.js +268 -0
- package/shell/shell.contribution.js +19 -0
- package/shell/shell.js +229 -0
- package/solidity/solidity.contribution.js +19 -0
- package/solidity/solidity.js +1375 -0
- package/sophia/sophia.contribution.js +19 -0
- package/sophia/sophia.js +207 -0
- package/sparql/sparql.contribution.js +19 -0
- package/sparql/sparql.js +209 -0
- package/sql/sql.contribution.js +19 -0
- package/sql/sql.js +861 -0
- package/st/st.contribution.js +19 -0
- package/st/st.js +424 -0
- package/swift/swift.contribution.js +20 -0
- package/swift/swift.js +320 -0
- package/systemverilog/systemverilog.contribution.js +29 -0
- package/systemverilog/systemverilog.js +584 -0
- package/tcl/tcl.contribution.js +19 -0
- package/tcl/tcl.js +240 -0
- package/twig/twig.contribution.js +20 -0
- package/twig/twig.js +400 -0
- package/typescript/typescript.contribution.js +20 -0
- package/typescript/typescript.js +362 -0
- package/vb/vb.contribution.js +19 -0
- package/vb/vb.js +380 -0
- package/wgsl/wgsl.contribution.js +19 -0
- package/wgsl/wgsl.js +461 -0
- package/xml/xml.contribution.js +39 -0
- package/xml/xml.js +114 -0
- package/yaml/yaml.contribution.js +20 -0
- package/yaml/yaml.js +225 -0
package/bicep/bicep.js
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.47.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/bicep/bicep.ts
|
|
10
|
+
var bounded = (text) => `\\b${text}\\b`;
|
|
11
|
+
var identifierStart = "[_a-zA-Z]";
|
|
12
|
+
var identifierContinue = "[_a-zA-Z0-9]";
|
|
13
|
+
var identifier = bounded(`${identifierStart}${identifierContinue}*`);
|
|
14
|
+
var keywords = [
|
|
15
|
+
"targetScope",
|
|
16
|
+
"resource",
|
|
17
|
+
"module",
|
|
18
|
+
"param",
|
|
19
|
+
"var",
|
|
20
|
+
"output",
|
|
21
|
+
"for",
|
|
22
|
+
"in",
|
|
23
|
+
"if",
|
|
24
|
+
"existing"
|
|
25
|
+
];
|
|
26
|
+
var namedLiterals = ["true", "false", "null"];
|
|
27
|
+
var nonCommentWs = `[ \\t\\r\\n]`;
|
|
28
|
+
var numericLiteral = `[0-9]+`;
|
|
29
|
+
var conf = {
|
|
30
|
+
comments: {
|
|
31
|
+
lineComment: "//",
|
|
32
|
+
blockComment: ["/*", "*/"]
|
|
33
|
+
},
|
|
34
|
+
brackets: [
|
|
35
|
+
["{", "}"],
|
|
36
|
+
["[", "]"],
|
|
37
|
+
["(", ")"]
|
|
38
|
+
],
|
|
39
|
+
surroundingPairs: [
|
|
40
|
+
{ open: "{", close: "}" },
|
|
41
|
+
{ open: "[", close: "]" },
|
|
42
|
+
{ open: "(", close: ")" },
|
|
43
|
+
{ open: "'", close: "'" },
|
|
44
|
+
{ open: "'''", close: "'''" }
|
|
45
|
+
],
|
|
46
|
+
autoClosingPairs: [
|
|
47
|
+
{ open: "{", close: "}" },
|
|
48
|
+
{ open: "[", close: "]" },
|
|
49
|
+
{ open: "(", close: ")" },
|
|
50
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
51
|
+
{ open: "'''", close: "'''", notIn: ["string", "comment"] }
|
|
52
|
+
],
|
|
53
|
+
autoCloseBefore: ":.,=}])' \n ",
|
|
54
|
+
indentationRules: {
|
|
55
|
+
increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
|
|
56
|
+
decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var language = {
|
|
60
|
+
defaultToken: "",
|
|
61
|
+
tokenPostfix: ".bicep",
|
|
62
|
+
brackets: [
|
|
63
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
64
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
65
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
66
|
+
],
|
|
67
|
+
symbols: /[=><!~?:&|+\-*/^%]+/,
|
|
68
|
+
keywords,
|
|
69
|
+
namedLiterals,
|
|
70
|
+
escapes: `\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\\${)`,
|
|
71
|
+
tokenizer: {
|
|
72
|
+
root: [{ include: "@expression" }, { include: "@whitespace" }],
|
|
73
|
+
stringVerbatim: [
|
|
74
|
+
{ regex: `(|'|'')[^']`, action: { token: "string" } },
|
|
75
|
+
{ regex: `'''`, action: { token: "string.quote", next: "@pop" } }
|
|
76
|
+
],
|
|
77
|
+
stringLiteral: [
|
|
78
|
+
{ regex: `\\\${`, action: { token: "delimiter.bracket", next: "@bracketCounting" } },
|
|
79
|
+
{ regex: `[^\\\\'$]+`, action: { token: "string" } },
|
|
80
|
+
{ regex: "@escapes", action: { token: "string.escape" } },
|
|
81
|
+
{ regex: `\\\\.`, action: { token: "string.escape.invalid" } },
|
|
82
|
+
{ regex: `'`, action: { token: "string", next: "@pop" } }
|
|
83
|
+
],
|
|
84
|
+
bracketCounting: [
|
|
85
|
+
{ regex: `{`, action: { token: "delimiter.bracket", next: "@bracketCounting" } },
|
|
86
|
+
{ regex: `}`, action: { token: "delimiter.bracket", next: "@pop" } },
|
|
87
|
+
{ include: "expression" }
|
|
88
|
+
],
|
|
89
|
+
comment: [
|
|
90
|
+
{ regex: `[^\\*]+`, action: { token: "comment" } },
|
|
91
|
+
{ regex: `\\*\\/`, action: { token: "comment", next: "@pop" } },
|
|
92
|
+
{ regex: `[\\/*]`, action: { token: "comment" } }
|
|
93
|
+
],
|
|
94
|
+
whitespace: [
|
|
95
|
+
{ regex: nonCommentWs },
|
|
96
|
+
{ regex: `\\/\\*`, action: { token: "comment", next: "@comment" } },
|
|
97
|
+
{ regex: `\\/\\/.*$`, action: { token: "comment" } }
|
|
98
|
+
],
|
|
99
|
+
expression: [
|
|
100
|
+
{ regex: `'''`, action: { token: "string.quote", next: "@stringVerbatim" } },
|
|
101
|
+
{ regex: `'`, action: { token: "string.quote", next: "@stringLiteral" } },
|
|
102
|
+
{ regex: numericLiteral, action: { token: "number" } },
|
|
103
|
+
{
|
|
104
|
+
regex: identifier,
|
|
105
|
+
action: {
|
|
106
|
+
cases: {
|
|
107
|
+
"@keywords": { token: "keyword" },
|
|
108
|
+
"@namedLiterals": { token: "keyword" },
|
|
109
|
+
"@default": { token: "identifier" }
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export { conf, language };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { registerLanguage } from '../_.contribution.js';
|
|
2
|
+
|
|
3
|
+
/*!-----------------------------------------------------------------------------
|
|
4
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
+
* Version: 0.47.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: "cameligo",
|
|
12
|
+
extensions: [".mligo"],
|
|
13
|
+
aliases: ["Cameligo"],
|
|
14
|
+
loader: () => {
|
|
15
|
+
{
|
|
16
|
+
return import('./cameligo.js');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
});
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.47.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/cameligo/cameligo.ts
|
|
10
|
+
var conf = {
|
|
11
|
+
comments: {
|
|
12
|
+
lineComment: "//",
|
|
13
|
+
blockComment: ["(*", "*)"]
|
|
14
|
+
},
|
|
15
|
+
brackets: [
|
|
16
|
+
["{", "}"],
|
|
17
|
+
["[", "]"],
|
|
18
|
+
["(", ")"],
|
|
19
|
+
["<", ">"]
|
|
20
|
+
],
|
|
21
|
+
autoClosingPairs: [
|
|
22
|
+
{ open: "{", close: "}" },
|
|
23
|
+
{ open: "[", close: "]" },
|
|
24
|
+
{ open: "(", close: ")" },
|
|
25
|
+
{ open: "<", close: ">" },
|
|
26
|
+
{ open: "'", close: "'" },
|
|
27
|
+
{ open: '"', close: '"' },
|
|
28
|
+
{ open: "(*", close: "*)" }
|
|
29
|
+
],
|
|
30
|
+
surroundingPairs: [
|
|
31
|
+
{ open: "{", close: "}" },
|
|
32
|
+
{ open: "[", close: "]" },
|
|
33
|
+
{ open: "(", close: ")" },
|
|
34
|
+
{ open: "<", close: ">" },
|
|
35
|
+
{ open: "'", close: "'" },
|
|
36
|
+
{ open: '"', close: '"' },
|
|
37
|
+
{ open: "(*", close: "*)" }
|
|
38
|
+
]
|
|
39
|
+
};
|
|
40
|
+
var language = {
|
|
41
|
+
defaultToken: "",
|
|
42
|
+
tokenPostfix: ".cameligo",
|
|
43
|
+
ignoreCase: true,
|
|
44
|
+
brackets: [
|
|
45
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
46
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
47
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
48
|
+
{ open: "<", close: ">", token: "delimiter.angle" }
|
|
49
|
+
],
|
|
50
|
+
keywords: [
|
|
51
|
+
"abs",
|
|
52
|
+
"assert",
|
|
53
|
+
"block",
|
|
54
|
+
"Bytes",
|
|
55
|
+
"case",
|
|
56
|
+
"Crypto",
|
|
57
|
+
"Current",
|
|
58
|
+
"else",
|
|
59
|
+
"failwith",
|
|
60
|
+
"false",
|
|
61
|
+
"for",
|
|
62
|
+
"fun",
|
|
63
|
+
"if",
|
|
64
|
+
"in",
|
|
65
|
+
"let",
|
|
66
|
+
"let%entry",
|
|
67
|
+
"let%init",
|
|
68
|
+
"List",
|
|
69
|
+
"list",
|
|
70
|
+
"Map",
|
|
71
|
+
"map",
|
|
72
|
+
"match",
|
|
73
|
+
"match%nat",
|
|
74
|
+
"mod",
|
|
75
|
+
"not",
|
|
76
|
+
"operation",
|
|
77
|
+
"Operation",
|
|
78
|
+
"of",
|
|
79
|
+
"record",
|
|
80
|
+
"Set",
|
|
81
|
+
"set",
|
|
82
|
+
"sender",
|
|
83
|
+
"skip",
|
|
84
|
+
"source",
|
|
85
|
+
"String",
|
|
86
|
+
"then",
|
|
87
|
+
"to",
|
|
88
|
+
"true",
|
|
89
|
+
"type",
|
|
90
|
+
"with"
|
|
91
|
+
],
|
|
92
|
+
typeKeywords: ["int", "unit", "string", "tz", "nat", "bool"],
|
|
93
|
+
operators: [
|
|
94
|
+
"=",
|
|
95
|
+
">",
|
|
96
|
+
"<",
|
|
97
|
+
"<=",
|
|
98
|
+
">=",
|
|
99
|
+
"<>",
|
|
100
|
+
":",
|
|
101
|
+
":=",
|
|
102
|
+
"and",
|
|
103
|
+
"mod",
|
|
104
|
+
"or",
|
|
105
|
+
"+",
|
|
106
|
+
"-",
|
|
107
|
+
"*",
|
|
108
|
+
"/",
|
|
109
|
+
"@",
|
|
110
|
+
"&",
|
|
111
|
+
"^",
|
|
112
|
+
"%",
|
|
113
|
+
"->",
|
|
114
|
+
"<-",
|
|
115
|
+
"&&",
|
|
116
|
+
"||"
|
|
117
|
+
],
|
|
118
|
+
// we include these common regular expressions
|
|
119
|
+
symbols: /[=><:@\^&|+\-*\/\^%]+/,
|
|
120
|
+
// The main tokenizer for our languages
|
|
121
|
+
tokenizer: {
|
|
122
|
+
root: [
|
|
123
|
+
// identifiers and keywords
|
|
124
|
+
[
|
|
125
|
+
/[a-zA-Z_][\w]*/,
|
|
126
|
+
{
|
|
127
|
+
cases: {
|
|
128
|
+
"@keywords": { token: "keyword.$0" },
|
|
129
|
+
"@default": "identifier"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
// whitespace
|
|
134
|
+
{ include: "@whitespace" },
|
|
135
|
+
// delimiters and operators
|
|
136
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
137
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
138
|
+
[
|
|
139
|
+
/@symbols/,
|
|
140
|
+
{
|
|
141
|
+
cases: {
|
|
142
|
+
"@operators": "delimiter",
|
|
143
|
+
"@default": ""
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
// numbers
|
|
148
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
149
|
+
[/\$[0-9a-fA-F]{1,16}/, "number.hex"],
|
|
150
|
+
[/\d+/, "number"],
|
|
151
|
+
// delimiter: after number because of .\d floats
|
|
152
|
+
[/[;,.]/, "delimiter"],
|
|
153
|
+
// strings
|
|
154
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
155
|
+
// non-teminated string
|
|
156
|
+
[/'/, "string", "@string"],
|
|
157
|
+
// characters
|
|
158
|
+
[/'[^\\']'/, "string"],
|
|
159
|
+
[/'/, "string.invalid"],
|
|
160
|
+
[/\#\d+/, "string"]
|
|
161
|
+
],
|
|
162
|
+
/* */
|
|
163
|
+
comment: [
|
|
164
|
+
[/[^\(\*]+/, "comment"],
|
|
165
|
+
//[/\(\*/, 'comment', '@push' ], // nested comment not allowed :-(
|
|
166
|
+
[/\*\)/, "comment", "@pop"],
|
|
167
|
+
[/\(\*/, "comment"]
|
|
168
|
+
],
|
|
169
|
+
string: [
|
|
170
|
+
[/[^\\']+/, "string"],
|
|
171
|
+
[/\\./, "string.escape.invalid"],
|
|
172
|
+
[/'/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
173
|
+
],
|
|
174
|
+
whitespace: [
|
|
175
|
+
[/[ \t\r\n]+/, "white"],
|
|
176
|
+
[/\(\*/, "comment", "@comment"],
|
|
177
|
+
[/\/\/.*$/, "comment"]
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export { conf, language };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { registerLanguage } from '../_.contribution.js';
|
|
2
|
+
|
|
3
|
+
/*!-----------------------------------------------------------------------------
|
|
4
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
+
* Version: 0.47.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: "clojure",
|
|
12
|
+
extensions: [".clj", ".cljs", ".cljc", ".edn"],
|
|
13
|
+
aliases: ["clojure", "Clojure"],
|
|
14
|
+
loader: () => {
|
|
15
|
+
{
|
|
16
|
+
return import('./clojure.js');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
});
|