@codingame/monaco-vscode-standalone-languages 23.2.1 → 23.2.2
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 +48 -0
- package/abap/abap.contribution.js +8 -0
- package/abap/abap.js +1397 -0
- package/apex/apex.contribution.js +9 -0
- package/apex/apex.js +329 -0
- package/azcli/azcli.contribution.js +8 -0
- package/azcli/azcli.js +67 -0
- package/bat/bat.contribution.js +8 -0
- package/bat/bat.js +99 -0
- package/bicep/bicep.contribution.js +8 -0
- package/bicep/bicep.js +108 -0
- package/cameligo/cameligo.contribution.js +8 -0
- package/cameligo/cameligo.js +173 -0
- package/clojure/clojure.contribution.js +8 -0
- package/clojure/clojure.js +760 -0
- package/coffee/coffee.contribution.js +9 -0
- package/coffee/coffee.js +231 -0
- package/cpp/cpp.contribution.js +14 -0
- package/cpp/cpp.js +388 -0
- package/csharp/csharp.contribution.js +8 -0
- package/csharp/csharp.js +325 -0
- package/csp/csp.contribution.js +8 -0
- package/csp/csp.js +52 -0
- package/css/css.contribution.js +9 -0
- package/css/css.js +184 -0
- package/cypher/cypher.contribution.js +8 -0
- package/cypher/cypher.js +262 -0
- package/dart/dart.contribution.js +9 -0
- package/dart/dart.js +280 -0
- package/dockerfile/dockerfile.contribution.js +9 -0
- package/dockerfile/dockerfile.js +129 -0
- package/ecl/ecl.contribution.js +8 -0
- package/ecl/ecl.js +455 -0
- package/elixir/elixir.contribution.js +8 -0
- package/elixir/elixir.js +568 -0
- package/flow9/flow9.contribution.js +8 -0
- package/flow9/flow9.js +141 -0
- package/freemarker2/freemarker2.contribution.js +52 -0
- package/freemarker2/freemarker2.js +990 -0
- package/fsharp/fsharp.contribution.js +8 -0
- package/fsharp/fsharp.js +216 -0
- package/go/go.contribution.js +8 -0
- package/go/go.js +217 -0
- package/graphql/graphql.contribution.js +9 -0
- package/graphql/graphql.js +150 -0
- package/handlebars/handlebars.contribution.js +9 -0
- package/handlebars/handlebars.js +413 -0
- package/hcl/hcl.contribution.js +8 -0
- package/hcl/hcl.js +182 -0
- package/html/html.contribution.js +9 -0
- package/html/html.js +302 -0
- package/index.js +81 -48
- package/ini/ini.contribution.js +9 -0
- package/ini/ini.js +70 -0
- package/java/java.contribution.js +9 -0
- package/java/java.js +231 -0
- package/javascript/javascript.contribution.js +11 -0
- package/javascript/javascript.js +70 -0
- package/julia/julia.contribution.js +8 -0
- package/julia/julia.js +510 -0
- package/kotlin/kotlin.contribution.js +9 -0
- package/kotlin/kotlin.js +251 -0
- package/less/less.contribution.js +9 -0
- package/less/less.js +160 -0
- package/lexon/lexon.contribution.js +8 -0
- package/lexon/lexon.js +156 -0
- package/liquid/liquid.contribution.js +9 -0
- package/liquid/liquid.js +234 -0
- package/lua/lua.contribution.js +8 -0
- package/lua/lua.js +161 -0
- package/m3/m3.contribution.js +8 -0
- package/m3/m3.js +209 -0
- package/markdown/markdown.contribution.js +8 -0
- package/markdown/markdown.js +228 -0
- package/mdx/mdx.contribution.js +8 -0
- package/mdx/mdx.js +158 -0
- package/mips/mips.contribution.js +9 -0
- package/mips/mips.js +197 -0
- package/msdax/msdax.contribution.js +8 -0
- package/msdax/msdax.js +374 -0
- package/mysql/mysql.contribution.js +8 -0
- package/mysql/mysql.js +877 -0
- package/objective-c/objective-c.contribution.js +8 -0
- package/objective-c/objective-c.js +182 -0
- package/package.json +2 -2
- package/pascal/pascal.contribution.js +9 -0
- package/pascal/pascal.js +250 -0
- package/pascaligo/pascaligo.contribution.js +8 -0
- package/pascaligo/pascaligo.js +163 -0
- package/perl/perl.contribution.js +8 -0
- package/perl/perl.js +625 -0
- package/pgsql/pgsql.contribution.js +8 -0
- package/pgsql/pgsql.js +850 -0
- package/php/php.contribution.js +9 -0
- package/php/php.js +499 -0
- package/pla/pla.contribution.js +7 -0
- package/pla/pla.js +136 -0
- package/postiats/postiats.contribution.js +8 -0
- package/postiats/postiats.js +906 -0
- package/powerquery/powerquery.contribution.js +8 -0
- package/powerquery/powerquery.js +889 -0
- package/powershell/powershell.contribution.js +8 -0
- package/powershell/powershell.js +238 -0
- package/protobuf/protobuf.contribution.js +8 -0
- package/protobuf/protobuf.js +419 -0
- package/pug/pug.contribution.js +8 -0
- package/pug/pug.js +401 -0
- package/python/python.contribution.js +9 -0
- package/python/python.js +294 -0
- package/qsharp/qsharp.contribution.js +8 -0
- package/qsharp/qsharp.js +300 -0
- package/r/r.contribution.js +8 -0
- package/r/r.js +242 -0
- package/razor/razor.contribution.js +9 -0
- package/razor/razor.js +544 -0
- package/redis/redis.contribution.js +8 -0
- package/redis/redis.js +301 -0
- package/redshift/redshift.contribution.js +8 -0
- package/redshift/redshift.js +808 -0
- package/restructuredtext/restructuredtext.contribution.js +8 -0
- package/restructuredtext/restructuredtext.js +173 -0
- package/ruby/ruby.contribution.js +9 -0
- package/ruby/ruby.js +510 -0
- package/rust/rust.contribution.js +8 -0
- package/rust/rust.js +342 -0
- package/sb/sb.contribution.js +8 -0
- package/sb/sb.js +114 -0
- package/scala/scala.contribution.js +9 -0
- package/scala/scala.js +369 -0
- package/scheme/scheme.contribution.js +8 -0
- package/scheme/scheme.js +107 -0
- package/scss/scss.contribution.js +9 -0
- package/scss/scss.js +259 -0
- package/shell/shell.contribution.js +8 -0
- package/shell/shell.js +220 -0
- package/solidity/solidity.contribution.js +8 -0
- package/solidity/solidity.js +1366 -0
- package/sophia/sophia.contribution.js +8 -0
- package/sophia/sophia.js +198 -0
- package/sparql/sparql.contribution.js +8 -0
- package/sparql/sparql.js +200 -0
- package/sql/sql.contribution.js +8 -0
- package/sql/sql.js +852 -0
- package/st/st.contribution.js +8 -0
- package/st/st.js +415 -0
- package/swift/swift.contribution.js +9 -0
- package/swift/swift.js +311 -0
- package/systemverilog/systemverilog.contribution.js +14 -0
- package/systemverilog/systemverilog.js +575 -0
- package/tcl/tcl.contribution.js +8 -0
- package/tcl/tcl.js +231 -0
- package/twig/twig.contribution.js +9 -0
- package/twig/twig.js +391 -0
- package/typescript/typescript.contribution.js +11 -0
- package/typescript/typescript.js +336 -0
- package/typespec/typespec.contribution.js +8 -0
- package/typespec/typespec.js +126 -0
- package/vb/vb.contribution.js +8 -0
- package/vb/vb.js +371 -0
- package/wgsl/wgsl.contribution.js +8 -0
- package/wgsl/wgsl.js +452 -0
- package/xml/xml.contribution.js +28 -0
- package/xml/xml.js +88 -0
- package/yaml/yaml.contribution.js +9 -0
- package/yaml/yaml.js +199 -0
package/flow9/flow9.js
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
const conf = {
|
|
2
|
+
comments: {
|
|
3
|
+
blockComment: ["/*", "*/"],
|
|
4
|
+
lineComment: "//"
|
|
5
|
+
},
|
|
6
|
+
brackets: [
|
|
7
|
+
["{", "}"],
|
|
8
|
+
["[", "]"],
|
|
9
|
+
["(", ")"]
|
|
10
|
+
],
|
|
11
|
+
autoClosingPairs: [
|
|
12
|
+
{ open: "{", close: "}", notIn: ["string"] },
|
|
13
|
+
{ open: "[", close: "]", notIn: ["string"] },
|
|
14
|
+
{ open: "(", close: ")", notIn: ["string"] },
|
|
15
|
+
{ open: '"', close: '"', notIn: ["string"] },
|
|
16
|
+
{ open: "'", close: "'", notIn: ["string"] }
|
|
17
|
+
],
|
|
18
|
+
surroundingPairs: [
|
|
19
|
+
{ open: "{", close: "}" },
|
|
20
|
+
{ open: "[", close: "]" },
|
|
21
|
+
{ open: "(", close: ")" },
|
|
22
|
+
{ open: '"', close: '"' },
|
|
23
|
+
{ open: "'", close: "'" },
|
|
24
|
+
{ open: "<", close: ">" }
|
|
25
|
+
]
|
|
26
|
+
};
|
|
27
|
+
const language = {
|
|
28
|
+
defaultToken: "",
|
|
29
|
+
tokenPostfix: ".flow",
|
|
30
|
+
keywords: [
|
|
31
|
+
"import",
|
|
32
|
+
"require",
|
|
33
|
+
"export",
|
|
34
|
+
"forbid",
|
|
35
|
+
"native",
|
|
36
|
+
"if",
|
|
37
|
+
"else",
|
|
38
|
+
"cast",
|
|
39
|
+
"unsafe",
|
|
40
|
+
"switch",
|
|
41
|
+
"default"
|
|
42
|
+
],
|
|
43
|
+
types: [
|
|
44
|
+
"io",
|
|
45
|
+
"mutable",
|
|
46
|
+
"bool",
|
|
47
|
+
"int",
|
|
48
|
+
"double",
|
|
49
|
+
"string",
|
|
50
|
+
"flow",
|
|
51
|
+
"void",
|
|
52
|
+
"ref",
|
|
53
|
+
"true",
|
|
54
|
+
"false",
|
|
55
|
+
"with"
|
|
56
|
+
],
|
|
57
|
+
operators: [
|
|
58
|
+
"=",
|
|
59
|
+
">",
|
|
60
|
+
"<",
|
|
61
|
+
"<=",
|
|
62
|
+
">=",
|
|
63
|
+
"==",
|
|
64
|
+
"!",
|
|
65
|
+
"!=",
|
|
66
|
+
":=",
|
|
67
|
+
"::=",
|
|
68
|
+
"&&",
|
|
69
|
+
"||",
|
|
70
|
+
"+",
|
|
71
|
+
"-",
|
|
72
|
+
"*",
|
|
73
|
+
"/",
|
|
74
|
+
"@",
|
|
75
|
+
"&",
|
|
76
|
+
"%",
|
|
77
|
+
":",
|
|
78
|
+
"->",
|
|
79
|
+
"\\",
|
|
80
|
+
"$",
|
|
81
|
+
"??",
|
|
82
|
+
"^"
|
|
83
|
+
],
|
|
84
|
+
symbols: /[@$=><!~?:&|+\-*\\\/\^%]+/,
|
|
85
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
86
|
+
// The main tokenizer for our languages
|
|
87
|
+
tokenizer: {
|
|
88
|
+
root: [
|
|
89
|
+
// identifiers and keywords
|
|
90
|
+
[
|
|
91
|
+
/[a-zA-Z_]\w*/,
|
|
92
|
+
{
|
|
93
|
+
cases: {
|
|
94
|
+
"@keywords": "keyword",
|
|
95
|
+
"@types": "type",
|
|
96
|
+
"@default": "identifier"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
// whitespace
|
|
101
|
+
{ include: "@whitespace" },
|
|
102
|
+
// delimiters and operators
|
|
103
|
+
[/[{}()\[\]]/, "delimiter"],
|
|
104
|
+
[/[<>](?!@symbols)/, "delimiter"],
|
|
105
|
+
[
|
|
106
|
+
/@symbols/,
|
|
107
|
+
{
|
|
108
|
+
cases: {
|
|
109
|
+
"@operators": "delimiter",
|
|
110
|
+
"@default": ""
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
// numbers
|
|
115
|
+
[/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/, "number"],
|
|
116
|
+
// delimiter: after number because of .\d floats
|
|
117
|
+
[/[;,.]/, "delimiter"],
|
|
118
|
+
// strings
|
|
119
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
120
|
+
[/"/, "string", "@string"]
|
|
121
|
+
],
|
|
122
|
+
whitespace: [
|
|
123
|
+
[/[ \t\r\n]+/, ""],
|
|
124
|
+
[/\/\*/, "comment", "@comment"],
|
|
125
|
+
[/\/\/.*$/, "comment"]
|
|
126
|
+
],
|
|
127
|
+
comment: [
|
|
128
|
+
[/[^\/*]+/, "comment"],
|
|
129
|
+
[/\*\//, "comment", "@pop"],
|
|
130
|
+
[/[\/*]/, "comment"]
|
|
131
|
+
],
|
|
132
|
+
string: [
|
|
133
|
+
[/[^\\"]+/, "string"],
|
|
134
|
+
[/@escapes/, "string.escape"],
|
|
135
|
+
[/\\./, "string.escape.invalid"],
|
|
136
|
+
[/"/, "string", "@pop"]
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export { conf, language };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { registerLanguage } from '../_.contribution.js';
|
|
2
|
+
|
|
3
|
+
registerLanguage({
|
|
4
|
+
id: "freemarker2",
|
|
5
|
+
extensions: [".ftl", ".ftlh", ".ftlx"],
|
|
6
|
+
aliases: ["FreeMarker2", "Apache FreeMarker2"],
|
|
7
|
+
loader: () => {
|
|
8
|
+
return import('./freemarker2.js').then((m) => m.TagAutoInterpolationDollar);
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
registerLanguage({
|
|
12
|
+
id: "freemarker2.tag-angle.interpolation-dollar",
|
|
13
|
+
aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
|
|
14
|
+
loader: () => {
|
|
15
|
+
return import('./freemarker2.js').then((m) => m.TagAngleInterpolationDollar);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
registerLanguage({
|
|
19
|
+
id: "freemarker2.tag-bracket.interpolation-dollar",
|
|
20
|
+
aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
|
|
21
|
+
loader: () => {
|
|
22
|
+
return import('./freemarker2.js').then((m) => m.TagBracketInterpolationDollar);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
registerLanguage({
|
|
26
|
+
id: "freemarker2.tag-angle.interpolation-bracket",
|
|
27
|
+
aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
|
|
28
|
+
loader: () => {
|
|
29
|
+
return import('./freemarker2.js').then((m) => m.TagAngleInterpolationBracket);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
registerLanguage({
|
|
33
|
+
id: "freemarker2.tag-bracket.interpolation-bracket",
|
|
34
|
+
aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
|
|
35
|
+
loader: () => {
|
|
36
|
+
return import('./freemarker2.js').then((m) => m.TagBracketInterpolationBracket);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
registerLanguage({
|
|
40
|
+
id: "freemarker2.tag-auto.interpolation-dollar",
|
|
41
|
+
aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
|
|
42
|
+
loader: () => {
|
|
43
|
+
return import('./freemarker2.js').then((m) => m.TagAutoInterpolationDollar);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
registerLanguage({
|
|
47
|
+
id: "freemarker2.tag-auto.interpolation-bracket",
|
|
48
|
+
aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
|
|
49
|
+
loader: () => {
|
|
50
|
+
return import('./freemarker2.js').then((m) => m.TagAutoInterpolationBracket);
|
|
51
|
+
}
|
|
52
|
+
});
|