@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.
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/kotlin/kotlin.js DELETED
@@ -1,261 +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/kotlin/kotlin.ts
10
- var conf = {
11
- // the default separators except `@$`
12
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
13
- comments: {
14
- lineComment: "//",
15
- blockComment: ["/*", "*/"]
16
- },
17
- brackets: [
18
- ["{", "}"],
19
- ["[", "]"],
20
- ["(", ")"]
21
- ],
22
- autoClosingPairs: [
23
- { open: "{", close: "}" },
24
- { open: "[", close: "]" },
25
- { open: "(", close: ")" },
26
- { open: '"', close: '"' },
27
- { open: "'", close: "'" }
28
- ],
29
- surroundingPairs: [
30
- { open: "{", close: "}" },
31
- { open: "[", close: "]" },
32
- { open: "(", close: ")" },
33
- { open: '"', close: '"' },
34
- { open: "'", close: "'" },
35
- { open: "<", close: ">" }
36
- ],
37
- folding: {
38
- markers: {
39
- start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
40
- end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
41
- }
42
- }
43
- };
44
- var language = {
45
- defaultToken: "",
46
- tokenPostfix: ".kt",
47
- keywords: [
48
- "as",
49
- "as?",
50
- "break",
51
- "class",
52
- "continue",
53
- "do",
54
- "else",
55
- "false",
56
- "for",
57
- "fun",
58
- "if",
59
- "in",
60
- "!in",
61
- "interface",
62
- "is",
63
- "!is",
64
- "null",
65
- "object",
66
- "package",
67
- "return",
68
- "super",
69
- "this",
70
- "throw",
71
- "true",
72
- "try",
73
- "typealias",
74
- "val",
75
- "var",
76
- "when",
77
- "while",
78
- "by",
79
- "catch",
80
- "constructor",
81
- "delegate",
82
- "dynamic",
83
- "field",
84
- "file",
85
- "finally",
86
- "get",
87
- "import",
88
- "init",
89
- "param",
90
- "property",
91
- "receiver",
92
- "set",
93
- "setparam",
94
- "where",
95
- "actual",
96
- "abstract",
97
- "annotation",
98
- "companion",
99
- "const",
100
- "crossinline",
101
- "data",
102
- "enum",
103
- "expect",
104
- "external",
105
- "final",
106
- "infix",
107
- "inline",
108
- "inner",
109
- "internal",
110
- "lateinit",
111
- "noinline",
112
- "open",
113
- "operator",
114
- "out",
115
- "override",
116
- "private",
117
- "protected",
118
- "public",
119
- "reified",
120
- "sealed",
121
- "suspend",
122
- "tailrec",
123
- "vararg",
124
- "field",
125
- "it"
126
- ],
127
- operators: [
128
- "+",
129
- "-",
130
- "*",
131
- "/",
132
- "%",
133
- "=",
134
- "+=",
135
- "-=",
136
- "*=",
137
- "/=",
138
- "%=",
139
- "++",
140
- "--",
141
- "&&",
142
- "||",
143
- "!",
144
- "==",
145
- "!=",
146
- "===",
147
- "!==",
148
- ">",
149
- "<",
150
- "<=",
151
- ">=",
152
- "[",
153
- "]",
154
- "!!",
155
- "?.",
156
- "?:",
157
- "::",
158
- "..",
159
- ":",
160
- "?",
161
- "->",
162
- "@",
163
- ";",
164
- "$",
165
- "_"
166
- ],
167
- // we include these common regular expressions
168
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
169
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
170
- digits: /\d+(_+\d+)*/,
171
- octaldigits: /[0-7]+(_+[0-7]+)*/,
172
- binarydigits: /[0-1]+(_+[0-1]+)*/,
173
- hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
174
- // The main tokenizer for our languages
175
- tokenizer: {
176
- root: [
177
- // class name highlighting
178
- [/[A-Z][\w\$]*/, "type.identifier"],
179
- // identifiers and keywords
180
- [
181
- /[a-zA-Z_$][\w$]*/,
182
- {
183
- cases: {
184
- "@keywords": { token: "keyword.$0" },
185
- "@default": "identifier"
186
- }
187
- }
188
- ],
189
- // whitespace
190
- { include: "@whitespace" },
191
- // delimiters and operators
192
- [/[{}()\[\]]/, "@brackets"],
193
- [/[<>](?!@symbols)/, "@brackets"],
194
- [
195
- /@symbols/,
196
- {
197
- cases: {
198
- "@operators": "delimiter",
199
- "@default": ""
200
- }
201
- }
202
- ],
203
- // @ annotations.
204
- [/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
205
- // numbers
206
- [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"],
207
- [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"],
208
- [/0[xX](@hexdigits)[Ll]?/, "number.hex"],
209
- [/0(@octaldigits)[Ll]?/, "number.octal"],
210
- [/0[bB](@binarydigits)[Ll]?/, "number.binary"],
211
- [/(@digits)[fFdD]/, "number.float"],
212
- [/(@digits)[lL]?/, "number"],
213
- // delimiter: after number because of .\d floats
214
- [/[;,.]/, "delimiter"],
215
- // strings
216
- [/"([^"\\]|\\.)*$/, "string.invalid"],
217
- // non-teminated string
218
- [/"""/, "string", "@multistring"],
219
- [/"/, "string", "@string"],
220
- // characters
221
- [/'[^\\']'/, "string"],
222
- [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
223
- [/'/, "string.invalid"]
224
- ],
225
- whitespace: [
226
- [/[ \t\r\n]+/, ""],
227
- [/\/\*\*(?!\/)/, "comment.doc", "@javadoc"],
228
- [/\/\*/, "comment", "@comment"],
229
- [/\/\/.*$/, "comment"]
230
- ],
231
- comment: [
232
- [/[^\/*]+/, "comment"],
233
- [/\/\*/, "comment", "@comment"],
234
- [/\*\//, "comment", "@pop"],
235
- [/[\/*]/, "comment"]
236
- ],
237
- //Identical copy of comment above, except for the addition of .doc
238
- javadoc: [
239
- [/[^\/*]+/, "comment.doc"],
240
- [/\/\*/, "comment.doc", "@push"],
241
- [/\/\*/, "comment.doc.invalid"],
242
- [/\*\//, "comment.doc", "@pop"],
243
- [/[\/*]/, "comment.doc"]
244
- ],
245
- string: [
246
- [/[^\\"]+/, "string"],
247
- [/@escapes/, "string.escape"],
248
- [/\\./, "string.escape.invalid"],
249
- [/"/, "string", "@pop"]
250
- ],
251
- multistring: [
252
- [/[^\\"]+/, "string"],
253
- [/@escapes/, "string.escape"],
254
- [/\\./, "string.escape.invalid"],
255
- [/"""/, "string", "@pop"],
256
- [/./, "string"]
257
- ]
258
- }
259
- };
260
-
261
- 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: "less",
12
- extensions: [".less"],
13
- aliases: ["Less", "less"],
14
- mimetypes: ["text/x-less", "text/less"],
15
- loader: () => {
16
- {
17
- return import('./less.js');
18
- }
19
- }
20
- });
package/less/less.js DELETED
@@ -1,169 +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/less/less.ts
10
- var conf = {
11
- wordPattern: /(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,
12
- comments: {
13
- blockComment: ["/*", "*/"],
14
- lineComment: "//"
15
- },
16
- brackets: [
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
- { open: "'", close: "'", notIn: ["string", "comment"] }
27
- ],
28
- surroundingPairs: [
29
- { open: "{", close: "}" },
30
- { open: "[", close: "]" },
31
- { open: "(", close: ")" },
32
- { open: '"', close: '"' },
33
- { open: "'", close: "'" }
34
- ],
35
- folding: {
36
- markers: {
37
- start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
38
- end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
39
- }
40
- }
41
- };
42
- var language = {
43
- defaultToken: "",
44
- tokenPostfix: ".less",
45
- 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])))*",
46
- identifierPlus: "-?-?([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.curly" },
49
- { open: "[", close: "]", token: "delimiter.bracket" },
50
- { open: "(", close: ")", token: "delimiter.parenthesis" },
51
- { open: "<", close: ">", token: "delimiter.angle" }
52
- ],
53
- tokenizer: {
54
- root: [
55
- { include: "@nestedJSBegin" },
56
- ["[ \\t\\r\\n]+", ""],
57
- { include: "@comments" },
58
- { include: "@keyword" },
59
- { include: "@strings" },
60
- { include: "@numbers" },
61
- ["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))", "attribute.name", "@attribute"],
62
- ["url(\\-prefix)?\\(", { token: "tag", next: "@urldeclaration" }],
63
- ["[{}()\\[\\]]", "@brackets"],
64
- ["[,:;]", "delimiter"],
65
- ["#@identifierPlus", "tag.id"],
66
- ["&", "tag"],
67
- ["\\.@identifierPlus(?=\\()", "tag.class", "@attribute"],
68
- ["\\.@identifierPlus", "tag.class"],
69
- ["@identifierPlus", "tag"],
70
- { include: "@operators" },
71
- ["@(@identifier(?=[:,\\)]))", "variable", "@attribute"],
72
- ["@(@identifier)", "variable"],
73
- ["@", "key", "@atRules"]
74
- ],
75
- nestedJSBegin: [
76
- ["``", "delimiter.backtick"],
77
- [
78
- "`",
79
- {
80
- token: "delimiter.backtick",
81
- next: "@nestedJSEnd",
82
- nextEmbedded: "text/javascript"
83
- }
84
- ]
85
- ],
86
- nestedJSEnd: [
87
- [
88
- "`",
89
- {
90
- token: "delimiter.backtick",
91
- next: "@pop",
92
- nextEmbedded: "@pop"
93
- }
94
- ]
95
- ],
96
- operators: [["[<>=\\+\\-\\*\\/\\^\\|\\~]", "operator"]],
97
- keyword: [
98
- [
99
- "(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b",
100
- "keyword"
101
- ]
102
- ],
103
- urldeclaration: [
104
- { include: "@strings" },
105
- ["[^)\r\n]+", "string"],
106
- ["\\)", { token: "tag", next: "@pop" }]
107
- ],
108
- attribute: [
109
- { include: "@nestedJSBegin" },
110
- { include: "@comments" },
111
- { include: "@strings" },
112
- { include: "@numbers" },
113
- { include: "@keyword" },
114
- ["[a-zA-Z\\-]+(?=\\()", "attribute.value", "@attribute"],
115
- [">", "operator", "@pop"],
116
- ["@identifier", "attribute.value"],
117
- { include: "@operators" },
118
- ["@(@identifier)", "variable"],
119
- ["[)\\}]", "@brackets", "@pop"],
120
- ["[{}()\\[\\]>]", "@brackets"],
121
- ["[;]", "delimiter", "@pop"],
122
- ["[,=:]", "delimiter"],
123
- ["\\s", ""],
124
- [".", "attribute.value"]
125
- ],
126
- comments: [
127
- ["\\/\\*", "comment", "@comment"],
128
- ["\\/\\/+.*", "comment"]
129
- ],
130
- comment: [
131
- ["\\*\\/", "comment", "@pop"],
132
- [".", "comment"]
133
- ],
134
- numbers: [
135
- ["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", { token: "attribute.value.number", next: "@units" }],
136
- ["#[0-9a-fA-F_]+(?!\\w)", "attribute.value.hex"]
137
- ],
138
- units: [
139
- [
140
- "(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
141
- "attribute.value.unit",
142
- "@pop"
143
- ]
144
- ],
145
- strings: [
146
- ['~?"', { token: "string.delimiter", next: "@stringsEndDoubleQuote" }],
147
- ["~?'", { token: "string.delimiter", next: "@stringsEndQuote" }]
148
- ],
149
- stringsEndDoubleQuote: [
150
- ['\\\\"', "string"],
151
- ['"', { token: "string.delimiter", next: "@popall" }],
152
- [".", "string"]
153
- ],
154
- stringsEndQuote: [
155
- ["\\\\'", "string"],
156
- ["'", { token: "string.delimiter", next: "@popall" }],
157
- [".", "string"]
158
- ],
159
- atRules: [
160
- { include: "@comments" },
161
- { include: "@strings" },
162
- ["[()]", "delimiter"],
163
- ["[\\{;]", "delimiter", "@pop"],
164
- [".", "key"]
165
- ]
166
- }
167
- };
168
-
169
- 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: "lexon",
12
- extensions: [".lex"],
13
- aliases: ["Lexon"],
14
- loader: () => {
15
- {
16
- return import('./lexon.js');
17
- }
18
- }
19
- });
package/lexon/lexon.js DELETED
@@ -1,165 +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/lexon/lexon.ts
10
- var conf = {
11
- comments: {
12
- lineComment: "COMMENT"
13
- // blockComment: ['COMMENT', '.'],
14
- },
15
- brackets: [["(", ")"]],
16
- autoClosingPairs: [
17
- { open: "{", close: "}" },
18
- { open: "[", close: "]" },
19
- { open: "(", close: ")" },
20
- { open: '"', close: '"' },
21
- { open: ":", close: "." }
22
- ],
23
- surroundingPairs: [
24
- { open: "{", close: "}" },
25
- { open: "[", close: "]" },
26
- { open: "(", close: ")" },
27
- { open: "`", close: "`" },
28
- { open: '"', close: '"' },
29
- { open: "'", close: "'" },
30
- { open: ":", close: "." }
31
- ],
32
- folding: {
33
- markers: {
34
- start: new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),
35
- end: new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")
36
- }
37
- }
38
- };
39
- var language = {
40
- // Set defaultToken to invalid to see what you do not tokenize yet
41
- // defaultToken: 'invalid',
42
- tokenPostfix: ".lexon",
43
- ignoreCase: true,
44
- keywords: [
45
- "lexon",
46
- "lex",
47
- "clause",
48
- "terms",
49
- "contracts",
50
- "may",
51
- "pay",
52
- "pays",
53
- "appoints",
54
- "into",
55
- "to"
56
- ],
57
- typeKeywords: ["amount", "person", "key", "time", "date", "asset", "text"],
58
- operators: [
59
- "less",
60
- "greater",
61
- "equal",
62
- "le",
63
- "gt",
64
- "or",
65
- "and",
66
- "add",
67
- "added",
68
- "subtract",
69
- "subtracted",
70
- "multiply",
71
- "multiplied",
72
- "times",
73
- "divide",
74
- "divided",
75
- "is",
76
- "be",
77
- "certified"
78
- ],
79
- // we include these common regular expressions
80
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
81
- // The main tokenizer for our languages
82
- tokenizer: {
83
- root: [
84
- // comment
85
- [/^(\s*)(comment:?(?:\s.*|))$/, ["", "comment"]],
86
- // special identifier cases
87
- [
88
- /"/,
89
- {
90
- token: "identifier.quote",
91
- bracket: "@open",
92
- next: "@quoted_identifier"
93
- }
94
- ],
95
- [
96
- "LEX$",
97
- {
98
- token: "keyword",
99
- bracket: "@open",
100
- next: "@identifier_until_period"
101
- }
102
- ],
103
- ["LEXON", { token: "keyword", bracket: "@open", next: "@semver" }],
104
- [
105
- ":",
106
- {
107
- token: "delimiter",
108
- bracket: "@open",
109
- next: "@identifier_until_period"
110
- }
111
- ],
112
- // identifiers and keywords
113
- [
114
- /[a-z_$][\w$]*/,
115
- {
116
- cases: {
117
- "@operators": "operator",
118
- "@typeKeywords": "keyword.type",
119
- "@keywords": "keyword",
120
- "@default": "identifier"
121
- }
122
- }
123
- ],
124
- // whitespace
125
- { include: "@whitespace" },
126
- // delimiters and operators
127
- [/[{}()\[\]]/, "@brackets"],
128
- [/[<>](?!@symbols)/, "@brackets"],
129
- [/@symbols/, "delimiter"],
130
- // numbers
131
- [/\d*\.\d*\.\d*/, "number.semver"],
132
- [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
133
- [/0[xX][0-9a-fA-F]+/, "number.hex"],
134
- [/\d+/, "number"],
135
- // delimiter: after number because of .\d floats
136
- [/[;,.]/, "delimiter"]
137
- ],
138
- quoted_identifier: [
139
- [/[^\\"]+/, "identifier"],
140
- [/"/, { token: "identifier.quote", bracket: "@close", next: "@pop" }]
141
- ],
142
- space_identifier_until_period: [
143
- [":", "delimiter"],
144
- [" ", { token: "white", next: "@identifier_rest" }]
145
- ],
146
- identifier_until_period: [
147
- { include: "@whitespace" },
148
- [":", { token: "delimiter", next: "@identifier_rest" }],
149
- [/[^\\.]+/, "identifier"],
150
- [/\./, { token: "delimiter", bracket: "@close", next: "@pop" }]
151
- ],
152
- identifier_rest: [
153
- [/[^\\.]+/, "identifier"],
154
- [/\./, { token: "delimiter", bracket: "@close", next: "@pop" }]
155
- ],
156
- semver: [
157
- { include: "@whitespace" },
158
- [":", "delimiter"],
159
- [/\d*\.\d*\.\d*/, { token: "number.semver", bracket: "@close", next: "@pop" }]
160
- ],
161
- whitespace: [[/[ \t\r\n]+/, "white"]]
162
- }
163
- };
164
-
165
- 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: "liquid",
12
- extensions: [".liquid", ".html.liquid"],
13
- aliases: ["Liquid", "liquid"],
14
- mimetypes: ["application/liquid"],
15
- loader: () => {
16
- {
17
- return import('./liquid.js');
18
- }
19
- }
20
- });