@codingame/monaco-vscode-standalone-languages 23.2.0 → 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.
Files changed (165) hide show
  1. package/_.contribution.js +48 -0
  2. package/abap/abap.contribution.js +8 -0
  3. package/abap/abap.js +1397 -0
  4. package/apex/apex.contribution.js +9 -0
  5. package/apex/apex.js +329 -0
  6. package/azcli/azcli.contribution.js +8 -0
  7. package/azcli/azcli.js +67 -0
  8. package/bat/bat.contribution.js +8 -0
  9. package/bat/bat.js +99 -0
  10. package/bicep/bicep.contribution.js +8 -0
  11. package/bicep/bicep.js +108 -0
  12. package/cameligo/cameligo.contribution.js +8 -0
  13. package/cameligo/cameligo.js +173 -0
  14. package/clojure/clojure.contribution.js +8 -0
  15. package/clojure/clojure.js +760 -0
  16. package/coffee/coffee.contribution.js +9 -0
  17. package/coffee/coffee.js +231 -0
  18. package/cpp/cpp.contribution.js +14 -0
  19. package/cpp/cpp.js +388 -0
  20. package/csharp/csharp.contribution.js +8 -0
  21. package/csharp/csharp.js +325 -0
  22. package/csp/csp.contribution.js +8 -0
  23. package/csp/csp.js +52 -0
  24. package/css/css.contribution.js +9 -0
  25. package/css/css.js +184 -0
  26. package/cypher/cypher.contribution.js +8 -0
  27. package/cypher/cypher.js +262 -0
  28. package/dart/dart.contribution.js +9 -0
  29. package/dart/dart.js +280 -0
  30. package/dockerfile/dockerfile.contribution.js +9 -0
  31. package/dockerfile/dockerfile.js +129 -0
  32. package/ecl/ecl.contribution.js +8 -0
  33. package/ecl/ecl.js +455 -0
  34. package/elixir/elixir.contribution.js +8 -0
  35. package/elixir/elixir.js +568 -0
  36. package/flow9/flow9.contribution.js +8 -0
  37. package/flow9/flow9.js +141 -0
  38. package/freemarker2/freemarker2.contribution.js +52 -0
  39. package/freemarker2/freemarker2.js +990 -0
  40. package/fsharp/fsharp.contribution.js +8 -0
  41. package/fsharp/fsharp.js +216 -0
  42. package/go/go.contribution.js +8 -0
  43. package/go/go.js +217 -0
  44. package/graphql/graphql.contribution.js +9 -0
  45. package/graphql/graphql.js +150 -0
  46. package/handlebars/handlebars.contribution.js +9 -0
  47. package/handlebars/handlebars.js +413 -0
  48. package/hcl/hcl.contribution.js +8 -0
  49. package/hcl/hcl.js +182 -0
  50. package/html/html.contribution.js +9 -0
  51. package/html/html.js +302 -0
  52. package/index.js +81 -48
  53. package/ini/ini.contribution.js +9 -0
  54. package/ini/ini.js +70 -0
  55. package/java/java.contribution.js +9 -0
  56. package/java/java.js +231 -0
  57. package/javascript/javascript.contribution.js +11 -0
  58. package/javascript/javascript.js +70 -0
  59. package/julia/julia.contribution.js +8 -0
  60. package/julia/julia.js +510 -0
  61. package/kotlin/kotlin.contribution.js +9 -0
  62. package/kotlin/kotlin.js +251 -0
  63. package/less/less.contribution.js +9 -0
  64. package/less/less.js +160 -0
  65. package/lexon/lexon.contribution.js +8 -0
  66. package/lexon/lexon.js +156 -0
  67. package/liquid/liquid.contribution.js +9 -0
  68. package/liquid/liquid.js +234 -0
  69. package/lua/lua.contribution.js +8 -0
  70. package/lua/lua.js +161 -0
  71. package/m3/m3.contribution.js +8 -0
  72. package/m3/m3.js +209 -0
  73. package/markdown/markdown.contribution.js +8 -0
  74. package/markdown/markdown.js +228 -0
  75. package/mdx/mdx.contribution.js +8 -0
  76. package/mdx/mdx.js +158 -0
  77. package/mips/mips.contribution.js +9 -0
  78. package/mips/mips.js +197 -0
  79. package/msdax/msdax.contribution.js +8 -0
  80. package/msdax/msdax.js +374 -0
  81. package/mysql/mysql.contribution.js +8 -0
  82. package/mysql/mysql.js +877 -0
  83. package/objective-c/objective-c.contribution.js +8 -0
  84. package/objective-c/objective-c.js +182 -0
  85. package/package.json +2 -2
  86. package/pascal/pascal.contribution.js +9 -0
  87. package/pascal/pascal.js +250 -0
  88. package/pascaligo/pascaligo.contribution.js +8 -0
  89. package/pascaligo/pascaligo.js +163 -0
  90. package/perl/perl.contribution.js +8 -0
  91. package/perl/perl.js +625 -0
  92. package/pgsql/pgsql.contribution.js +8 -0
  93. package/pgsql/pgsql.js +850 -0
  94. package/php/php.contribution.js +9 -0
  95. package/php/php.js +499 -0
  96. package/pla/pla.contribution.js +7 -0
  97. package/pla/pla.js +136 -0
  98. package/postiats/postiats.contribution.js +8 -0
  99. package/postiats/postiats.js +906 -0
  100. package/powerquery/powerquery.contribution.js +8 -0
  101. package/powerquery/powerquery.js +889 -0
  102. package/powershell/powershell.contribution.js +8 -0
  103. package/powershell/powershell.js +238 -0
  104. package/protobuf/protobuf.contribution.js +8 -0
  105. package/protobuf/protobuf.js +419 -0
  106. package/pug/pug.contribution.js +8 -0
  107. package/pug/pug.js +401 -0
  108. package/python/python.contribution.js +9 -0
  109. package/python/python.js +294 -0
  110. package/qsharp/qsharp.contribution.js +8 -0
  111. package/qsharp/qsharp.js +300 -0
  112. package/r/r.contribution.js +8 -0
  113. package/r/r.js +242 -0
  114. package/razor/razor.contribution.js +9 -0
  115. package/razor/razor.js +544 -0
  116. package/redis/redis.contribution.js +8 -0
  117. package/redis/redis.js +301 -0
  118. package/redshift/redshift.contribution.js +8 -0
  119. package/redshift/redshift.js +808 -0
  120. package/restructuredtext/restructuredtext.contribution.js +8 -0
  121. package/restructuredtext/restructuredtext.js +173 -0
  122. package/ruby/ruby.contribution.js +9 -0
  123. package/ruby/ruby.js +510 -0
  124. package/rust/rust.contribution.js +8 -0
  125. package/rust/rust.js +342 -0
  126. package/sb/sb.contribution.js +8 -0
  127. package/sb/sb.js +114 -0
  128. package/scala/scala.contribution.js +9 -0
  129. package/scala/scala.js +369 -0
  130. package/scheme/scheme.contribution.js +8 -0
  131. package/scheme/scheme.js +107 -0
  132. package/scss/scss.contribution.js +9 -0
  133. package/scss/scss.js +259 -0
  134. package/shell/shell.contribution.js +8 -0
  135. package/shell/shell.js +220 -0
  136. package/solidity/solidity.contribution.js +8 -0
  137. package/solidity/solidity.js +1366 -0
  138. package/sophia/sophia.contribution.js +8 -0
  139. package/sophia/sophia.js +198 -0
  140. package/sparql/sparql.contribution.js +8 -0
  141. package/sparql/sparql.js +200 -0
  142. package/sql/sql.contribution.js +8 -0
  143. package/sql/sql.js +852 -0
  144. package/st/st.contribution.js +8 -0
  145. package/st/st.js +415 -0
  146. package/swift/swift.contribution.js +9 -0
  147. package/swift/swift.js +311 -0
  148. package/systemverilog/systemverilog.contribution.js +14 -0
  149. package/systemverilog/systemverilog.js +575 -0
  150. package/tcl/tcl.contribution.js +8 -0
  151. package/tcl/tcl.js +231 -0
  152. package/twig/twig.contribution.js +9 -0
  153. package/twig/twig.js +391 -0
  154. package/typescript/typescript.contribution.js +11 -0
  155. package/typescript/typescript.js +336 -0
  156. package/typespec/typespec.contribution.js +8 -0
  157. package/typespec/typespec.js +126 -0
  158. package/vb/vb.contribution.js +8 -0
  159. package/vb/vb.js +371 -0
  160. package/wgsl/wgsl.contribution.js +8 -0
  161. package/wgsl/wgsl.js +452 -0
  162. package/xml/xml.contribution.js +28 -0
  163. package/xml/xml.js +88 -0
  164. package/yaml/yaml.contribution.js +9 -0
  165. package/yaml/yaml.js +199 -0
@@ -0,0 +1,8 @@
1
+ import { registerLanguage } from '../_.contribution.js';
2
+
3
+ registerLanguage({
4
+ id: "aes",
5
+ extensions: [".aes"],
6
+ aliases: ["aes", "sophia", "Sophia"],
7
+ loader: () => import('./sophia.js')
8
+ });
@@ -0,0 +1,198 @@
1
+ const conf = {
2
+ comments: {
3
+ lineComment: "//",
4
+ blockComment: ["/*", "*/"]
5
+ },
6
+ brackets: [
7
+ ["{", "}"],
8
+ ["[", "]"],
9
+ ["(", ")"],
10
+ ["<", ">"]
11
+ ],
12
+ autoClosingPairs: [
13
+ { open: '"', close: '"', notIn: ["string", "comment"] },
14
+ { open: "{", close: "}", notIn: ["string", "comment"] },
15
+ { open: "[", close: "]", notIn: ["string", "comment"] },
16
+ { open: "(", close: ")", notIn: ["string", "comment"] }
17
+ ]
18
+ };
19
+ const language = {
20
+ defaultToken: "",
21
+ tokenPostfix: ".aes",
22
+ brackets: [
23
+ { token: "delimiter.curly", open: "{", close: "}" },
24
+ { token: "delimiter.parenthesis", open: "(", close: ")" },
25
+ { token: "delimiter.square", open: "[", close: "]" },
26
+ { token: "delimiter.angle", open: "<", close: ">" }
27
+ ],
28
+ keywords: [
29
+ // Main keywords
30
+ "contract",
31
+ "library",
32
+ "entrypoint",
33
+ "function",
34
+ "stateful",
35
+ "state",
36
+ "hash",
37
+ "signature",
38
+ "tuple",
39
+ "list",
40
+ "address",
41
+ "string",
42
+ "bool",
43
+ "int",
44
+ "record",
45
+ "datatype",
46
+ "type",
47
+ "option",
48
+ "oracle",
49
+ "oracle_query",
50
+ "Call",
51
+ "Bits",
52
+ "Bytes",
53
+ "Oracle",
54
+ "String",
55
+ "Crypto",
56
+ "Address",
57
+ "Auth",
58
+ "Chain",
59
+ "None",
60
+ "Some",
61
+ "bits",
62
+ "bytes",
63
+ "event",
64
+ "let",
65
+ "map",
66
+ "private",
67
+ "public",
68
+ "true",
69
+ "false",
70
+ "var",
71
+ "if",
72
+ "else",
73
+ "throw"
74
+ ],
75
+ operators: [
76
+ "=",
77
+ ">",
78
+ "<",
79
+ "!",
80
+ "~",
81
+ "?",
82
+ "::",
83
+ ":",
84
+ "==",
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
+ // we include these common regular expressions
116
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
117
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
118
+ integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
119
+ floatsuffix: /[fFlL]?/,
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
+ // [[ attributes ]].
136
+ [/\[\[.*\]\]/, "annotation"],
137
+ // Preprocessor directive
138
+ [/^\s*#\w+/, "keyword"],
139
+ //DataTypes
140
+ [/int\d*/, "keyword"],
141
+ // delimiters and operators
142
+ [/[{}()\[\]]/, "@brackets"],
143
+ [/[<>](?!@symbols)/, "@brackets"],
144
+ [
145
+ /@symbols/,
146
+ {
147
+ cases: {
148
+ "@operators": "delimiter",
149
+ "@default": ""
150
+ }
151
+ }
152
+ ],
153
+ // numbers
154
+ [/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/, "number.float"],
155
+ [/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/, "number.float"],
156
+ [/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, "number.hex"],
157
+ [/0[0-7']*[0-7](@integersuffix)/, "number.octal"],
158
+ [/0[bB][0-1']*[0-1](@integersuffix)/, "number.binary"],
159
+ [/\d[\d']*\d(@integersuffix)/, "number"],
160
+ [/\d(@integersuffix)/, "number"],
161
+ // delimiter: after number because of .\d floats
162
+ [/[;,.]/, "delimiter"],
163
+ // strings
164
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
165
+ // non-teminated string
166
+ [/"/, "string", "@string"],
167
+ // characters
168
+ [/'[^\\']'/, "string"],
169
+ [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
170
+ [/'/, "string.invalid"]
171
+ ],
172
+ whitespace: [
173
+ [/[ \t\r\n]+/, ""],
174
+ [/\/\*\*(?!\/)/, "comment.doc", "@doccomment"],
175
+ [/\/\*/, "comment", "@comment"],
176
+ [/\/\/.*$/, "comment"]
177
+ ],
178
+ comment: [
179
+ [/[^\/*]+/, "comment"],
180
+ [/\*\//, "comment", "@pop"],
181
+ [/[\/*]/, "comment"]
182
+ ],
183
+ //Identical copy of comment above, except for the addition of .doc
184
+ doccomment: [
185
+ [/[^\/*]+/, "comment.doc"],
186
+ [/\*\//, "comment.doc", "@pop"],
187
+ [/[\/*]/, "comment.doc"]
188
+ ],
189
+ string: [
190
+ [/[^\\"]+/, "string"],
191
+ [/@escapes/, "string.escape"],
192
+ [/\\./, "string.escape.invalid"],
193
+ [/"/, "string", "@pop"]
194
+ ]
195
+ }
196
+ };
197
+
198
+ export { conf, language };
@@ -0,0 +1,8 @@
1
+ import { registerLanguage } from '../_.contribution.js';
2
+
3
+ registerLanguage({
4
+ id: "sparql",
5
+ extensions: [".rq"],
6
+ aliases: ["sparql", "SPARQL"],
7
+ loader: () => import('./sparql.js')
8
+ });
@@ -0,0 +1,200 @@
1
+ const conf = {
2
+ comments: {
3
+ lineComment: "#"
4
+ },
5
+ brackets: [
6
+ ["{", "}"],
7
+ ["[", "]"],
8
+ ["(", ")"]
9
+ ],
10
+ autoClosingPairs: [
11
+ { open: "'", close: "'", notIn: ["string"] },
12
+ { open: '"', close: '"', notIn: ["string"] },
13
+ { open: "{", close: "}" },
14
+ { open: "[", close: "]" },
15
+ { open: "(", close: ")" }
16
+ ]
17
+ };
18
+ const language = {
19
+ defaultToken: "",
20
+ tokenPostfix: ".rq",
21
+ brackets: [
22
+ { token: "delimiter.curly", open: "{", close: "}" },
23
+ { token: "delimiter.parenthesis", open: "(", close: ")" },
24
+ { token: "delimiter.square", open: "[", close: "]" },
25
+ { token: "delimiter.angle", open: "<", close: ">" }
26
+ ],
27
+ keywords: [
28
+ "add",
29
+ "as",
30
+ "asc",
31
+ "ask",
32
+ "base",
33
+ "by",
34
+ "clear",
35
+ "construct",
36
+ "copy",
37
+ "create",
38
+ "data",
39
+ "delete",
40
+ "desc",
41
+ "describe",
42
+ "distinct",
43
+ "drop",
44
+ "false",
45
+ "filter",
46
+ "from",
47
+ "graph",
48
+ "group",
49
+ "having",
50
+ "in",
51
+ "insert",
52
+ "limit",
53
+ "load",
54
+ "minus",
55
+ "move",
56
+ "named",
57
+ "not",
58
+ "offset",
59
+ "optional",
60
+ "order",
61
+ "prefix",
62
+ "reduced",
63
+ "select",
64
+ "service",
65
+ "silent",
66
+ "to",
67
+ "true",
68
+ "undef",
69
+ "union",
70
+ "using",
71
+ "values",
72
+ "where",
73
+ "with"
74
+ ],
75
+ builtinFunctions: [
76
+ "a",
77
+ "abs",
78
+ "avg",
79
+ "bind",
80
+ "bnode",
81
+ "bound",
82
+ "ceil",
83
+ "coalesce",
84
+ "concat",
85
+ "contains",
86
+ "count",
87
+ "datatype",
88
+ "day",
89
+ "encode_for_uri",
90
+ "exists",
91
+ "floor",
92
+ "group_concat",
93
+ "hours",
94
+ "if",
95
+ "iri",
96
+ "isblank",
97
+ "isiri",
98
+ "isliteral",
99
+ "isnumeric",
100
+ "isuri",
101
+ "lang",
102
+ "langmatches",
103
+ "lcase",
104
+ "max",
105
+ "md5",
106
+ "min",
107
+ "minutes",
108
+ "month",
109
+ "now",
110
+ "rand",
111
+ "regex",
112
+ "replace",
113
+ "round",
114
+ "sameterm",
115
+ "sample",
116
+ "seconds",
117
+ "sha1",
118
+ "sha256",
119
+ "sha384",
120
+ "sha512",
121
+ "str",
122
+ "strafter",
123
+ "strbefore",
124
+ "strdt",
125
+ "strends",
126
+ "strlang",
127
+ "strlen",
128
+ "strstarts",
129
+ "struuid",
130
+ "substr",
131
+ "sum",
132
+ "timezone",
133
+ "tz",
134
+ "ucase",
135
+ "uri",
136
+ "uuid",
137
+ "year"
138
+ ],
139
+ // describe tokens
140
+ ignoreCase: true,
141
+ tokenizer: {
142
+ root: [
143
+ // resource indicators
144
+ [/<[^\s\u00a0>]*>?/, "tag"],
145
+ // strings
146
+ { include: "@strings" },
147
+ // line comment
148
+ [/#.*/, "comment"],
149
+ // special chars with special meaning
150
+ [/[{}()\[\]]/, "@brackets"],
151
+ [/[;,.]/, "delimiter"],
152
+ // (prefixed) name
153
+ [/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/, "tag"],
154
+ [/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/, "tag"],
155
+ // identifiers, builtinFunctions and keywords
156
+ [
157
+ /[$?]?[_\w\d]+/,
158
+ {
159
+ cases: {
160
+ "@keywords": { token: "keyword" },
161
+ "@builtinFunctions": { token: "predefined.sql" },
162
+ "@default": "identifier"
163
+ }
164
+ }
165
+ ],
166
+ // operators
167
+ [/\^\^/, "operator.sql"],
168
+ [/\^[*+\-<>=&|^\/!?]*/, "operator.sql"],
169
+ [/[*+\-<>=&|\/!?]/, "operator.sql"],
170
+ // symbol
171
+ [/@[a-z\d\-]*/, "metatag.html"],
172
+ // whitespaces
173
+ [/\s+/, "white"]
174
+ ],
175
+ strings: [
176
+ [/'([^'\\]|\\.)*$/, "string.invalid"],
177
+ // non-terminated single-quoted string
178
+ [/'$/, "string.sql", "@pop"],
179
+ [/'/, "string.sql", "@stringBody"],
180
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
181
+ // non-terminated single-quoted string
182
+ [/"$/, "string.sql", "@pop"],
183
+ [/"/, "string.sql", "@dblStringBody"]
184
+ ],
185
+ // single-quoted strings
186
+ stringBody: [
187
+ [/[^\\']+/, "string.sql"],
188
+ [/\\./, "string.escape"],
189
+ [/'/, "string.sql", "@pop"]
190
+ ],
191
+ // double-quoted strings
192
+ dblStringBody: [
193
+ [/[^\\"]+/, "string.sql"],
194
+ [/\\./, "string.escape"],
195
+ [/"/, "string.sql", "@pop"]
196
+ ]
197
+ }
198
+ };
199
+
200
+ export { conf, language };
@@ -0,0 +1,8 @@
1
+ import { registerLanguage } from '../_.contribution.js';
2
+
3
+ registerLanguage({
4
+ id: "sql",
5
+ extensions: [".sql"],
6
+ aliases: ["SQL"],
7
+ loader: () => import('./sql.js')
8
+ });