@codingame/monaco-vscode-standalone-languages 23.1.0 → 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.
Files changed (165) hide show
  1. package/index.js +48 -82
  2. package/package.json +2 -2
  3. package/_.contribution.js +0 -74
  4. package/abap/abap.contribution.js +0 -19
  5. package/abap/abap.js +0 -1406
  6. package/apex/apex.contribution.js +0 -20
  7. package/apex/apex.js +0 -338
  8. package/azcli/azcli.contribution.js +0 -19
  9. package/azcli/azcli.js +0 -76
  10. package/bat/bat.contribution.js +0 -19
  11. package/bat/bat.js +0 -108
  12. package/bicep/bicep.contribution.js +0 -19
  13. package/bicep/bicep.js +0 -117
  14. package/cameligo/cameligo.contribution.js +0 -19
  15. package/cameligo/cameligo.js +0 -182
  16. package/clojure/clojure.contribution.js +0 -19
  17. package/clojure/clojure.js +0 -769
  18. package/coffee/coffee.contribution.js +0 -20
  19. package/coffee/coffee.js +0 -240
  20. package/cpp/cpp.contribution.js +0 -29
  21. package/cpp/cpp.js +0 -397
  22. package/csharp/csharp.contribution.js +0 -19
  23. package/csharp/csharp.js +0 -334
  24. package/csp/csp.contribution.js +0 -19
  25. package/csp/csp.js +0 -61
  26. package/css/css.contribution.js +0 -20
  27. package/css/css.js +0 -193
  28. package/cypher/cypher.contribution.js +0 -19
  29. package/cypher/cypher.js +0 -271
  30. package/dart/dart.contribution.js +0 -20
  31. package/dart/dart.js +0 -289
  32. package/dockerfile/dockerfile.contribution.js +0 -20
  33. package/dockerfile/dockerfile.js +0 -138
  34. package/ecl/ecl.contribution.js +0 -19
  35. package/ecl/ecl.js +0 -464
  36. package/elixir/elixir.contribution.js +0 -19
  37. package/elixir/elixir.js +0 -577
  38. package/flow9/flow9.contribution.js +0 -19
  39. package/flow9/flow9.js +0 -150
  40. package/freemarker2/freemarker2.contribution.js +0 -73
  41. package/freemarker2/freemarker2.js +0 -1016
  42. package/fsharp/fsharp.contribution.js +0 -19
  43. package/fsharp/fsharp.js +0 -225
  44. package/go/go.contribution.js +0 -19
  45. package/go/go.js +0 -226
  46. package/graphql/graphql.contribution.js +0 -20
  47. package/graphql/graphql.js +0 -159
  48. package/handlebars/handlebars.contribution.js +0 -20
  49. package/handlebars/handlebars.js +0 -439
  50. package/hcl/hcl.contribution.js +0 -19
  51. package/hcl/hcl.js +0 -191
  52. package/html/html.contribution.js +0 -20
  53. package/html/html.js +0 -328
  54. package/ini/ini.contribution.js +0 -20
  55. package/ini/ini.js +0 -79
  56. package/java/java.contribution.js +0 -20
  57. package/java/java.js +0 -240
  58. package/javascript/javascript.contribution.js +0 -22
  59. package/javascript/javascript.js +0 -77
  60. package/julia/julia.contribution.js +0 -19
  61. package/julia/julia.js +0 -519
  62. package/kotlin/kotlin.contribution.js +0 -20
  63. package/kotlin/kotlin.js +0 -261
  64. package/less/less.contribution.js +0 -20
  65. package/less/less.js +0 -169
  66. package/lexon/lexon.contribution.js +0 -19
  67. package/lexon/lexon.js +0 -165
  68. package/liquid/liquid.contribution.js +0 -20
  69. package/liquid/liquid.js +0 -260
  70. package/lua/lua.contribution.js +0 -19
  71. package/lua/lua.js +0 -170
  72. package/m3/m3.contribution.js +0 -19
  73. package/m3/m3.js +0 -218
  74. package/markdown/markdown.contribution.js +0 -19
  75. package/markdown/markdown.js +0 -237
  76. package/mdx/mdx.contribution.js +0 -19
  77. package/mdx/mdx.js +0 -184
  78. package/mips/mips.contribution.js +0 -20
  79. package/mips/mips.js +0 -206
  80. package/msdax/msdax.contribution.js +0 -19
  81. package/msdax/msdax.js +0 -383
  82. package/mysql/mysql.contribution.js +0 -19
  83. package/mysql/mysql.js +0 -886
  84. package/objective-c/objective-c.contribution.js +0 -19
  85. package/objective-c/objective-c.js +0 -191
  86. package/pascal/pascal.contribution.js +0 -20
  87. package/pascal/pascal.js +0 -259
  88. package/pascaligo/pascaligo.contribution.js +0 -19
  89. package/pascaligo/pascaligo.js +0 -172
  90. package/perl/perl.contribution.js +0 -19
  91. package/perl/perl.js +0 -634
  92. package/pgsql/pgsql.contribution.js +0 -19
  93. package/pgsql/pgsql.js +0 -859
  94. package/php/php.contribution.js +0 -20
  95. package/php/php.js +0 -508
  96. package/pla/pla.contribution.js +0 -18
  97. package/pla/pla.js +0 -145
  98. package/postiats/postiats.contribution.js +0 -19
  99. package/postiats/postiats.js +0 -915
  100. package/powerquery/powerquery.contribution.js +0 -19
  101. package/powerquery/powerquery.js +0 -898
  102. package/powershell/powershell.contribution.js +0 -19
  103. package/powershell/powershell.js +0 -247
  104. package/protobuf/protobuf.contribution.js +0 -19
  105. package/protobuf/protobuf.js +0 -428
  106. package/pug/pug.contribution.js +0 -19
  107. package/pug/pug.js +0 -410
  108. package/python/python.contribution.js +0 -20
  109. package/python/python.js +0 -320
  110. package/qsharp/qsharp.contribution.js +0 -19
  111. package/qsharp/qsharp.js +0 -309
  112. package/r/r.contribution.js +0 -19
  113. package/r/r.js +0 -251
  114. package/razor/razor.contribution.js +0 -20
  115. package/razor/razor.js +0 -570
  116. package/redis/redis.contribution.js +0 -19
  117. package/redis/redis.js +0 -310
  118. package/redshift/redshift.contribution.js +0 -19
  119. package/redshift/redshift.js +0 -817
  120. package/restructuredtext/restructuredtext.contribution.js +0 -19
  121. package/restructuredtext/restructuredtext.js +0 -182
  122. package/ruby/ruby.contribution.js +0 -20
  123. package/ruby/ruby.js +0 -519
  124. package/rust/rust.contribution.js +0 -19
  125. package/rust/rust.js +0 -351
  126. package/sb/sb.contribution.js +0 -19
  127. package/sb/sb.js +0 -123
  128. package/scala/scala.contribution.js +0 -20
  129. package/scala/scala.js +0 -378
  130. package/scheme/scheme.contribution.js +0 -19
  131. package/scheme/scheme.js +0 -116
  132. package/scss/scss.contribution.js +0 -20
  133. package/scss/scss.js +0 -268
  134. package/shell/shell.contribution.js +0 -19
  135. package/shell/shell.js +0 -229
  136. package/solidity/solidity.contribution.js +0 -19
  137. package/solidity/solidity.js +0 -1375
  138. package/sophia/sophia.contribution.js +0 -19
  139. package/sophia/sophia.js +0 -207
  140. package/sparql/sparql.contribution.js +0 -19
  141. package/sparql/sparql.js +0 -209
  142. package/sql/sql.contribution.js +0 -19
  143. package/sql/sql.js +0 -861
  144. package/st/st.contribution.js +0 -19
  145. package/st/st.js +0 -424
  146. package/swift/swift.contribution.js +0 -20
  147. package/swift/swift.js +0 -320
  148. package/systemverilog/systemverilog.contribution.js +0 -29
  149. package/systemverilog/systemverilog.js +0 -584
  150. package/tcl/tcl.contribution.js +0 -19
  151. package/tcl/tcl.js +0 -240
  152. package/twig/twig.contribution.js +0 -20
  153. package/twig/twig.js +0 -400
  154. package/typescript/typescript.contribution.js +0 -20
  155. package/typescript/typescript.js +0 -362
  156. package/typespec/typespec.contribution.js +0 -19
  157. package/typespec/typespec.js +0 -135
  158. package/vb/vb.contribution.js +0 -19
  159. package/vb/vb.js +0 -380
  160. package/wgsl/wgsl.contribution.js +0 -19
  161. package/wgsl/wgsl.js +0 -461
  162. package/xml/xml.contribution.js +0 -39
  163. package/xml/xml.js +0 -114
  164. package/yaml/yaml.contribution.js +0 -20
  165. package/yaml/yaml.js +0 -225
package/csharp/csharp.js DELETED
@@ -1,334 +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/csharp/csharp.ts
10
- var conf = {
11
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
12
- comments: {
13
- lineComment: "//",
14
- blockComment: ["/*", "*/"]
15
- },
16
- brackets: [
17
- ["{", "}"],
18
- ["[", "]"],
19
- ["(", ")"]
20
- ],
21
- autoClosingPairs: [
22
- { open: "{", close: "}" },
23
- { open: "[", close: "]" },
24
- { open: "(", close: ")" },
25
- { open: "'", close: "'", notIn: ["string", "comment"] },
26
- { open: '"', close: '"', notIn: ["string", "comment"] }
27
- ],
28
- surroundingPairs: [
29
- { open: "{", close: "}" },
30
- { open: "[", close: "]" },
31
- { open: "(", close: ")" },
32
- { open: "<", close: ">" },
33
- { open: "'", close: "'" },
34
- { open: '"', close: '"' }
35
- ],
36
- folding: {
37
- markers: {
38
- start: new RegExp("^\\s*#region\\b"),
39
- end: new RegExp("^\\s*#endregion\\b")
40
- }
41
- }
42
- };
43
- var language = {
44
- defaultToken: "",
45
- tokenPostfix: ".cs",
46
- brackets: [
47
- { open: "{", close: "}", token: "delimiter.curly" },
48
- { open: "[", close: "]", token: "delimiter.square" },
49
- { open: "(", close: ")", token: "delimiter.parenthesis" },
50
- { open: "<", close: ">", token: "delimiter.angle" }
51
- ],
52
- keywords: [
53
- "extern",
54
- "alias",
55
- "using",
56
- "bool",
57
- "decimal",
58
- "sbyte",
59
- "byte",
60
- "short",
61
- "ushort",
62
- "int",
63
- "uint",
64
- "long",
65
- "ulong",
66
- "char",
67
- "float",
68
- "double",
69
- "object",
70
- "dynamic",
71
- "string",
72
- "assembly",
73
- "is",
74
- "as",
75
- "ref",
76
- "out",
77
- "this",
78
- "base",
79
- "new",
80
- "typeof",
81
- "void",
82
- "checked",
83
- "unchecked",
84
- "default",
85
- "delegate",
86
- "var",
87
- "const",
88
- "if",
89
- "else",
90
- "switch",
91
- "case",
92
- "while",
93
- "do",
94
- "for",
95
- "foreach",
96
- "in",
97
- "break",
98
- "continue",
99
- "goto",
100
- "return",
101
- "throw",
102
- "try",
103
- "catch",
104
- "finally",
105
- "lock",
106
- "yield",
107
- "from",
108
- "let",
109
- "where",
110
- "join",
111
- "on",
112
- "equals",
113
- "into",
114
- "orderby",
115
- "ascending",
116
- "descending",
117
- "select",
118
- "group",
119
- "by",
120
- "namespace",
121
- "partial",
122
- "class",
123
- "field",
124
- "event",
125
- "method",
126
- "param",
127
- "public",
128
- "protected",
129
- "internal",
130
- "private",
131
- "abstract",
132
- "sealed",
133
- "static",
134
- "struct",
135
- "readonly",
136
- "volatile",
137
- "virtual",
138
- "override",
139
- "params",
140
- "get",
141
- "set",
142
- "add",
143
- "remove",
144
- "operator",
145
- "true",
146
- "false",
147
- "implicit",
148
- "explicit",
149
- "interface",
150
- "enum",
151
- "null",
152
- "async",
153
- "await",
154
- "fixed",
155
- "sizeof",
156
- "stackalloc",
157
- "unsafe",
158
- "nameof",
159
- "when"
160
- ],
161
- namespaceFollows: ["namespace", "using"],
162
- parenFollows: ["if", "for", "while", "switch", "foreach", "using", "catch", "when"],
163
- operators: [
164
- "=",
165
- "??",
166
- "||",
167
- "&&",
168
- "|",
169
- "^",
170
- "&",
171
- "==",
172
- "!=",
173
- "<=",
174
- ">=",
175
- "<<",
176
- "+",
177
- "-",
178
- "*",
179
- "/",
180
- "%",
181
- "!",
182
- "~",
183
- "++",
184
- "--",
185
- "+=",
186
- "-=",
187
- "*=",
188
- "/=",
189
- "%=",
190
- "&=",
191
- "|=",
192
- "^=",
193
- "<<=",
194
- ">>=",
195
- ">>",
196
- "=>"
197
- ],
198
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
199
- // escape sequences
200
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
201
- // The main tokenizer for our languages
202
- tokenizer: {
203
- root: [
204
- // identifiers and keywords
205
- [
206
- /\@?[a-zA-Z_]\w*/,
207
- {
208
- cases: {
209
- "@namespaceFollows": {
210
- token: "keyword.$0",
211
- next: "@namespace"
212
- },
213
- "@keywords": {
214
- token: "keyword.$0",
215
- next: "@qualified"
216
- },
217
- "@default": { token: "identifier", next: "@qualified" }
218
- }
219
- }
220
- ],
221
- // whitespace
222
- { include: "@whitespace" },
223
- // delimiters and operators
224
- [
225
- /}/,
226
- {
227
- cases: {
228
- "$S2==interpolatedstring": {
229
- token: "string.quote",
230
- next: "@pop"
231
- },
232
- "$S2==litinterpstring": {
233
- token: "string.quote",
234
- next: "@pop"
235
- },
236
- "@default": "@brackets"
237
- }
238
- }
239
- ],
240
- [/[{}()\[\]]/, "@brackets"],
241
- [/[<>](?!@symbols)/, "@brackets"],
242
- [
243
- /@symbols/,
244
- {
245
- cases: {
246
- "@operators": "delimiter",
247
- "@default": ""
248
- }
249
- }
250
- ],
251
- // numbers
252
- [/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/, "number.float"],
253
- [/0[xX][0-9a-fA-F_]+/, "number.hex"],
254
- [/0[bB][01_]+/, "number.hex"],
255
- // binary: use same theme style as hex
256
- [/[0-9_]+/, "number"],
257
- // delimiter: after number because of .\d floats
258
- [/[;,.]/, "delimiter"],
259
- // strings
260
- [/"([^"\\]|\\.)*$/, "string.invalid"],
261
- // non-teminated string
262
- [/"/, { token: "string.quote", next: "@string" }],
263
- [/\$\@"/, { token: "string.quote", next: "@litinterpstring" }],
264
- [/\@"/, { token: "string.quote", next: "@litstring" }],
265
- [/\$"/, { token: "string.quote", next: "@interpolatedstring" }],
266
- // characters
267
- [/'[^\\']'/, "string"],
268
- [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
269
- [/'/, "string.invalid"]
270
- ],
271
- qualified: [
272
- [
273
- /[a-zA-Z_][\w]*/,
274
- {
275
- cases: {
276
- "@keywords": { token: "keyword.$0" },
277
- "@default": "identifier"
278
- }
279
- }
280
- ],
281
- [/\./, "delimiter"],
282
- ["", "", "@pop"]
283
- ],
284
- namespace: [
285
- { include: "@whitespace" },
286
- [/[A-Z]\w*/, "namespace"],
287
- [/[\.=]/, "delimiter"],
288
- ["", "", "@pop"]
289
- ],
290
- comment: [
291
- [/[^\/*]+/, "comment"],
292
- // [/\/\*/, 'comment', '@push' ], // no nested comments :-(
293
- ["\\*/", "comment", "@pop"],
294
- [/[\/*]/, "comment"]
295
- ],
296
- string: [
297
- [/[^\\"]+/, "string"],
298
- [/@escapes/, "string.escape"],
299
- [/\\./, "string.escape.invalid"],
300
- [/"/, { token: "string.quote", next: "@pop" }]
301
- ],
302
- litstring: [
303
- [/[^"]+/, "string"],
304
- [/""/, "string.escape"],
305
- [/"/, { token: "string.quote", next: "@pop" }]
306
- ],
307
- litinterpstring: [
308
- [/[^"{]+/, "string"],
309
- [/""/, "string.escape"],
310
- [/{{/, "string.escape"],
311
- [/}}/, "string.escape"],
312
- [/{/, { token: "string.quote", next: "root.litinterpstring" }],
313
- [/"/, { token: "string.quote", next: "@pop" }]
314
- ],
315
- interpolatedstring: [
316
- [/[^\\"{]+/, "string"],
317
- [/@escapes/, "string.escape"],
318
- [/\\./, "string.escape.invalid"],
319
- [/{{/, "string.escape"],
320
- [/}}/, "string.escape"],
321
- [/{/, { token: "string.quote", next: "root.interpolatedstring" }],
322
- [/"/, { token: "string.quote", next: "@pop" }]
323
- ],
324
- whitespace: [
325
- [/^[ \t\v\f]*#((r)|(load))(?=\s)/, "directive.csx"],
326
- [/^[ \t\v\f]*#\w.*$/, "namespace.cpp"],
327
- [/[ \t\v\f\r\n]+/, ""],
328
- [/\/\*/, "comment", "@comment"],
329
- [/\/\/.*$/, "comment"]
330
- ]
331
- }
332
- };
333
-
334
- 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: "csp",
12
- extensions: [".csp"],
13
- aliases: ["CSP", "csp"],
14
- loader: () => {
15
- {
16
- return import('./csp.js');
17
- }
18
- }
19
- });
package/csp/csp.js DELETED
@@ -1,61 +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/csp/csp.ts
10
- var conf = {
11
- brackets: [],
12
- autoClosingPairs: [],
13
- surroundingPairs: []
14
- };
15
- var language = {
16
- // Set defaultToken to invalid to see what you do not tokenize yet
17
- // defaultToken: 'invalid',
18
- keywords: [],
19
- typeKeywords: [],
20
- tokenPostfix: ".csp",
21
- operators: [],
22
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
23
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
24
- tokenizer: {
25
- root: [
26
- [/child-src/, "string.quote"],
27
- [/connect-src/, "string.quote"],
28
- [/default-src/, "string.quote"],
29
- [/font-src/, "string.quote"],
30
- [/frame-src/, "string.quote"],
31
- [/img-src/, "string.quote"],
32
- [/manifest-src/, "string.quote"],
33
- [/media-src/, "string.quote"],
34
- [/object-src/, "string.quote"],
35
- [/script-src/, "string.quote"],
36
- [/style-src/, "string.quote"],
37
- [/worker-src/, "string.quote"],
38
- [/base-uri/, "string.quote"],
39
- [/plugin-types/, "string.quote"],
40
- [/sandbox/, "string.quote"],
41
- [/disown-opener/, "string.quote"],
42
- [/form-action/, "string.quote"],
43
- [/frame-ancestors/, "string.quote"],
44
- [/report-uri/, "string.quote"],
45
- [/report-to/, "string.quote"],
46
- [/upgrade-insecure-requests/, "string.quote"],
47
- [/block-all-mixed-content/, "string.quote"],
48
- [/require-sri-for/, "string.quote"],
49
- [/reflected-xss/, "string.quote"],
50
- [/referrer/, "string.quote"],
51
- [/policy-uri/, "string.quote"],
52
- [/'self'/, "string.quote"],
53
- [/'unsafe-inline'/, "string.quote"],
54
- [/'unsafe-eval'/, "string.quote"],
55
- [/'strict-dynamic'/, "string.quote"],
56
- [/'unsafe-hashed-attributes'/, "string.quote"]
57
- ]
58
- }
59
- };
60
-
61
- export { conf, language };
@@ -1,20 +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: "css",
12
- extensions: [".css"],
13
- aliases: ["CSS", "css"],
14
- mimetypes: ["text/css"],
15
- loader: () => {
16
- {
17
- return import('./css.js');
18
- }
19
- }
20
- });
package/css/css.js DELETED
@@ -1,193 +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/css/css.ts
10
- var conf = {
11
- wordPattern: /(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,
12
- comments: {
13
- blockComment: ["/*", "*/"]
14
- },
15
- brackets: [
16
- ["{", "}"],
17
- ["[", "]"],
18
- ["(", ")"]
19
- ],
20
- autoClosingPairs: [
21
- { open: "{", close: "}", notIn: ["string", "comment"] },
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
- surroundingPairs: [
28
- { open: "{", close: "}" },
29
- { open: "[", close: "]" },
30
- { open: "(", close: ")" },
31
- { open: '"', close: '"' },
32
- { open: "'", close: "'" }
33
- ],
34
- folding: {
35
- markers: {
36
- start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
37
- end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
38
- }
39
- }
40
- };
41
- var language = {
42
- defaultToken: "",
43
- tokenPostfix: ".css",
44
- ws: "[ \n\r\f]*",
45
- // whitespaces (referenced in several rules)
46
- identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
47
- brackets: [
48
- { open: "{", close: "}", token: "delimiter.bracket" },
49
- { open: "[", close: "]", token: "delimiter.bracket" },
50
- { open: "(", close: ")", token: "delimiter.parenthesis" },
51
- { open: "<", close: ">", token: "delimiter.angle" }
52
- ],
53
- tokenizer: {
54
- root: [{ include: "@selector" }],
55
- selector: [
56
- { include: "@comments" },
57
- { include: "@import" },
58
- { include: "@strings" },
59
- [
60
- "[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",
61
- { token: "keyword", next: "@keyframedeclaration" }
62
- ],
63
- ["[@](page|content|font-face|-moz-document)", { token: "keyword" }],
64
- ["[@](charset|namespace)", { token: "keyword", next: "@declarationbody" }],
65
- [
66
- "(url-prefix)(\\()",
67
- ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
68
- ],
69
- [
70
- "(url)(\\()",
71
- ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
72
- ],
73
- { include: "@selectorname" },
74
- ["[\\*]", "tag"],
75
- // selector symbols
76
- ["[>\\+,]", "delimiter"],
77
- // selector operators
78
- ["\\[", { token: "delimiter.bracket", next: "@selectorattribute" }],
79
- ["{", { token: "delimiter.bracket", next: "@selectorbody" }]
80
- ],
81
- selectorbody: [
82
- { include: "@comments" },
83
- ["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"],
84
- // rule definition: to distinguish from a nested selector check for whitespace, number or a semicolon
85
- ["}", { token: "delimiter.bracket", next: "@pop" }]
86
- ],
87
- selectorname: [
88
- ["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]
89
- // selector (.foo, div, ...)
90
- ],
91
- selectorattribute: [{ include: "@term" }, ["]", { token: "delimiter.bracket", next: "@pop" }]],
92
- term: [
93
- { include: "@comments" },
94
- [
95
- "(url-prefix)(\\()",
96
- ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
97
- ],
98
- [
99
- "(url)(\\()",
100
- ["attribute.value", { token: "delimiter.parenthesis", next: "@urldeclaration" }]
101
- ],
102
- { include: "@functioninvocation" },
103
- { include: "@numbers" },
104
- { include: "@name" },
105
- { include: "@strings" },
106
- ["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "delimiter"],
107
- [",", "delimiter"]
108
- ],
109
- rulevalue: [
110
- { include: "@comments" },
111
- { include: "@strings" },
112
- { include: "@term" },
113
- ["!important", "keyword"],
114
- [";", "delimiter", "@pop"],
115
- ["(?=})", { token: "", next: "@pop" }]
116
- // missing semicolon
117
- ],
118
- warndebug: [["[@](warn|debug)", { token: "keyword", next: "@declarationbody" }]],
119
- import: [["[@](import)", { token: "keyword", next: "@declarationbody" }]],
120
- urldeclaration: [
121
- { include: "@strings" },
122
- ["[^)\r\n]+", "string"],
123
- ["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
124
- ],
125
- parenthizedterm: [
126
- { include: "@term" },
127
- ["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
128
- ],
129
- declarationbody: [
130
- { include: "@term" },
131
- [";", "delimiter", "@pop"],
132
- ["(?=})", { token: "", next: "@pop" }]
133
- // missing semicolon
134
- ],
135
- comments: [
136
- ["\\/\\*", "comment", "@comment"],
137
- ["\\/\\/+.*", "comment"]
138
- ],
139
- comment: [
140
- ["\\*\\/", "comment", "@pop"],
141
- [/[^*/]+/, "comment"],
142
- [/./, "comment"]
143
- ],
144
- name: [["@identifier", "attribute.value"]],
145
- numbers: [
146
- ["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", { token: "attribute.value.number", next: "@units" }],
147
- ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]
148
- ],
149
- units: [
150
- [
151
- "(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
152
- "attribute.value.unit",
153
- "@pop"
154
- ]
155
- ],
156
- keyframedeclaration: [
157
- ["@identifier", "attribute.value"],
158
- ["{", { token: "delimiter.bracket", switchTo: "@keyframebody" }]
159
- ],
160
- keyframebody: [
161
- { include: "@term" },
162
- ["{", { token: "delimiter.bracket", next: "@selectorbody" }],
163
- ["}", { token: "delimiter.bracket", next: "@pop" }]
164
- ],
165
- functioninvocation: [
166
- ["@identifier\\(", { token: "attribute.value", next: "@functionarguments" }]
167
- ],
168
- functionarguments: [
169
- ["\\$@identifier@ws:", "attribute.name"],
170
- ["[,]", "delimiter"],
171
- { include: "@term" },
172
- ["\\)", { token: "attribute.value", next: "@pop" }]
173
- ],
174
- strings: [
175
- ['~?"', { token: "string", next: "@stringenddoublequote" }],
176
- ["~?'", { token: "string", next: "@stringendquote" }]
177
- ],
178
- stringenddoublequote: [
179
- ["\\\\.", "string"],
180
- ['"', { token: "string", next: "@pop" }],
181
- [/[^\\"]+/, "string"],
182
- [".", "string"]
183
- ],
184
- stringendquote: [
185
- ["\\\\.", "string"],
186
- ["'", { token: "string", next: "@pop" }],
187
- [/[^\\']+/, "string"],
188
- [".", "string"]
189
- ]
190
- }
191
- };
192
-
193
- 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: "cypher",
12
- extensions: [".cypher", ".cyp"],
13
- aliases: ["Cypher", "OpenCypher"],
14
- loader: () => {
15
- {
16
- return import('./cypher.js');
17
- }
18
- }
19
- });