@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/liquid/liquid.js DELETED
@@ -1,260 +0,0 @@
1
- import * as monaco_editor_core_star from 'monaco-editor';
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
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget);
23
-
24
- // src/fillers/monaco-editor-core.ts
25
- var monaco_editor_core_exports = {};
26
- __reExport(monaco_editor_core_exports, monaco_editor_core_star);
27
-
28
- // src/basic-languages/liquid/liquid.ts
29
- var EMPTY_ELEMENTS = [
30
- "area",
31
- "base",
32
- "br",
33
- "col",
34
- "embed",
35
- "hr",
36
- "img",
37
- "input",
38
- "keygen",
39
- "link",
40
- "menuitem",
41
- "meta",
42
- "param",
43
- "source",
44
- "track",
45
- "wbr"
46
- ];
47
- var conf = {
48
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
49
- brackets: [
50
- ["<!--", "-->"],
51
- ["<", ">"],
52
- ["{{", "}}"],
53
- ["{%", "%}"],
54
- ["{", "}"],
55
- ["(", ")"]
56
- ],
57
- autoClosingPairs: [
58
- { open: "{", close: "}" },
59
- { open: "%", close: "%" },
60
- { open: "[", close: "]" },
61
- { open: "(", close: ")" },
62
- { open: '"', close: '"' },
63
- { open: "'", close: "'" }
64
- ],
65
- surroundingPairs: [
66
- { open: "<", close: ">" },
67
- { open: '"', close: '"' },
68
- { open: "'", close: "'" }
69
- ],
70
- onEnterRules: [
71
- {
72
- beforeText: new RegExp(
73
- `<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
74
- "i"
75
- ),
76
- afterText: /^<\/(\w[\w\d]*)\s*>$/i,
77
- action: {
78
- indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
79
- }
80
- },
81
- {
82
- beforeText: new RegExp(
83
- `<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
84
- "i"
85
- ),
86
- action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
87
- }
88
- ]
89
- };
90
- var language = {
91
- defaultToken: "",
92
- tokenPostfix: "",
93
- builtinTags: [
94
- "if",
95
- "else",
96
- "elseif",
97
- "endif",
98
- "render",
99
- "assign",
100
- "capture",
101
- "endcapture",
102
- "case",
103
- "endcase",
104
- "comment",
105
- "endcomment",
106
- "cycle",
107
- "decrement",
108
- "for",
109
- "endfor",
110
- "include",
111
- "increment",
112
- "layout",
113
- "raw",
114
- "endraw",
115
- "render",
116
- "tablerow",
117
- "endtablerow",
118
- "unless",
119
- "endunless"
120
- ],
121
- builtinFilters: [
122
- "abs",
123
- "append",
124
- "at_least",
125
- "at_most",
126
- "capitalize",
127
- "ceil",
128
- "compact",
129
- "date",
130
- "default",
131
- "divided_by",
132
- "downcase",
133
- "escape",
134
- "escape_once",
135
- "first",
136
- "floor",
137
- "join",
138
- "json",
139
- "last",
140
- "lstrip",
141
- "map",
142
- "minus",
143
- "modulo",
144
- "newline_to_br",
145
- "plus",
146
- "prepend",
147
- "remove",
148
- "remove_first",
149
- "replace",
150
- "replace_first",
151
- "reverse",
152
- "round",
153
- "rstrip",
154
- "size",
155
- "slice",
156
- "sort",
157
- "sort_natural",
158
- "split",
159
- "strip",
160
- "strip_html",
161
- "strip_newlines",
162
- "times",
163
- "truncate",
164
- "truncatewords",
165
- "uniq",
166
- "upcase",
167
- "url_decode",
168
- "url_encode",
169
- "where"
170
- ],
171
- constants: ["true", "false"],
172
- operators: ["==", "!=", ">", "<", ">=", "<="],
173
- symbol: /[=><!]+/,
174
- identifier: /[a-zA-Z_][\w]*/,
175
- tokenizer: {
176
- root: [
177
- [/\{\%\s*comment\s*\%\}/, "comment.start.liquid", "@comment"],
178
- [/\{\{/, { token: "@rematch", switchTo: "@liquidState.root" }],
179
- [/\{\%/, { token: "@rematch", switchTo: "@liquidState.root" }],
180
- [/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
181
- [/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
182
- [/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
183
- [/</, "delimiter.html"],
184
- [/\{/, "delimiter.html"],
185
- [/[^<{]+/]
186
- // text
187
- ],
188
- comment: [
189
- [/\{\%\s*endcomment\s*\%\}/, "comment.end.liquid", "@pop"],
190
- [/./, "comment.content.liquid"]
191
- ],
192
- otherTag: [
193
- [
194
- /\{\{/,
195
- {
196
- token: "@rematch",
197
- switchTo: "@liquidState.otherTag"
198
- }
199
- ],
200
- [
201
- /\{\%/,
202
- {
203
- token: "@rematch",
204
- switchTo: "@liquidState.otherTag"
205
- }
206
- ],
207
- [/\/?>/, "delimiter.html", "@pop"],
208
- [/"([^"]*)"/, "attribute.value"],
209
- [/'([^']*)'/, "attribute.value"],
210
- [/[\w\-]+/, "attribute.name"],
211
- [/=/, "delimiter"],
212
- [/[ \t\r\n]+/]
213
- // whitespace
214
- ],
215
- liquidState: [
216
- [/\{\{/, "delimiter.output.liquid"],
217
- [/\}\}/, { token: "delimiter.output.liquid", switchTo: "@$S2.$S3" }],
218
- [/\{\%/, "delimiter.tag.liquid"],
219
- [/raw\s*\%\}/, "delimiter.tag.liquid", "@liquidRaw"],
220
- [/\%\}/, { token: "delimiter.tag.liquid", switchTo: "@$S2.$S3" }],
221
- { include: "liquidRoot" }
222
- ],
223
- liquidRaw: [
224
- [/^(?!\{\%\s*endraw\s*\%\}).+/],
225
- [/\{\%/, "delimiter.tag.liquid"],
226
- [/@identifier/],
227
- [/\%\}/, { token: "delimiter.tag.liquid", next: "@root" }]
228
- ],
229
- liquidRoot: [
230
- [/\d+(\.\d+)?/, "number.liquid"],
231
- [/"[^"]*"/, "string.liquid"],
232
- [/'[^']*'/, "string.liquid"],
233
- [/\s+/],
234
- [
235
- /@symbol/,
236
- {
237
- cases: {
238
- "@operators": "operator.liquid",
239
- "@default": ""
240
- }
241
- }
242
- ],
243
- [/\./],
244
- [
245
- /@identifier/,
246
- {
247
- cases: {
248
- "@constants": "keyword.liquid",
249
- "@builtinFilters": "predefined.liquid",
250
- "@builtinTags": "predefined.liquid",
251
- "@default": "variable.liquid"
252
- }
253
- }
254
- ],
255
- [/[^}|%]/, "variable.liquid"]
256
- ]
257
- }
258
- };
259
-
260
- 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: "lua",
12
- extensions: [".lua"],
13
- aliases: ["Lua", "lua"],
14
- loader: () => {
15
- {
16
- return import('./lua.js');
17
- }
18
- }
19
- });
package/lua/lua.js DELETED
@@ -1,170 +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/lua/lua.ts
10
- var conf = {
11
- comments: {
12
- lineComment: "--",
13
- blockComment: ["--[[", "]]"]
14
- },
15
- brackets: [
16
- ["{", "}"],
17
- ["[", "]"],
18
- ["(", ")"]
19
- ],
20
- autoClosingPairs: [
21
- { open: "{", close: "}" },
22
- { open: "[", close: "]" },
23
- { open: "(", close: ")" },
24
- { open: '"', close: '"' },
25
- { open: "'", close: "'" }
26
- ],
27
- surroundingPairs: [
28
- { open: "{", close: "}" },
29
- { open: "[", close: "]" },
30
- { open: "(", close: ")" },
31
- { open: '"', close: '"' },
32
- { open: "'", close: "'" }
33
- ]
34
- };
35
- var language = {
36
- defaultToken: "",
37
- tokenPostfix: ".lua",
38
- keywords: [
39
- "and",
40
- "break",
41
- "do",
42
- "else",
43
- "elseif",
44
- "end",
45
- "false",
46
- "for",
47
- "function",
48
- "goto",
49
- "if",
50
- "in",
51
- "local",
52
- "nil",
53
- "not",
54
- "or",
55
- "repeat",
56
- "return",
57
- "then",
58
- "true",
59
- "until",
60
- "while"
61
- ],
62
- brackets: [
63
- { token: "delimiter.bracket", open: "{", close: "}" },
64
- { token: "delimiter.array", open: "[", close: "]" },
65
- { token: "delimiter.parenthesis", open: "(", close: ")" }
66
- ],
67
- operators: [
68
- "+",
69
- "-",
70
- "*",
71
- "/",
72
- "%",
73
- "^",
74
- "#",
75
- "==",
76
- "~=",
77
- "<=",
78
- ">=",
79
- "<",
80
- ">",
81
- "=",
82
- ";",
83
- ":",
84
- ",",
85
- ".",
86
- "..",
87
- "..."
88
- ],
89
- // we include these common regular expressions
90
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
91
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
92
- // The main tokenizer for our languages
93
- tokenizer: {
94
- root: [
95
- // identifiers and keywords
96
- [
97
- /[a-zA-Z_]\w*/,
98
- {
99
- cases: {
100
- "@keywords": { token: "keyword.$0" },
101
- "@default": "identifier"
102
- }
103
- }
104
- ],
105
- // whitespace
106
- { include: "@whitespace" },
107
- // keys
108
- [/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["delimiter", "", "key", "", "delimiter"]],
109
- [/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["@brackets", "", "key", "", "delimiter"]],
110
- // delimiters and operators
111
- [/[{}()\[\]]/, "@brackets"],
112
- [
113
- /@symbols/,
114
- {
115
- cases: {
116
- "@operators": "delimiter",
117
- "@default": ""
118
- }
119
- }
120
- ],
121
- // numbers
122
- [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
123
- [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
124
- [/\d+?/, "number"],
125
- // delimiter: after number because of .\d floats
126
- [/[;,.]/, "delimiter"],
127
- // strings: recover on non-terminated strings
128
- [/"([^"\\]|\\.)*$/, "string.invalid"],
129
- // non-teminated string
130
- [/'([^'\\]|\\.)*$/, "string.invalid"],
131
- // non-teminated string
132
- [/"/, "string", '@string."'],
133
- [/'/, "string", "@string.'"]
134
- ],
135
- whitespace: [
136
- [/[ \t\r\n]+/, ""],
137
- [/--\[([=]*)\[/, "comment", "@comment.$1"],
138
- [/--.*$/, "comment"]
139
- ],
140
- comment: [
141
- [/[^\]]+/, "comment"],
142
- [
143
- /\]([=]*)\]/,
144
- {
145
- cases: {
146
- "$1==$S2": { token: "comment", next: "@pop" },
147
- "@default": "comment"
148
- }
149
- }
150
- ],
151
- [/./, "comment"]
152
- ],
153
- string: [
154
- [/[^\\"']+/, "string"],
155
- [/@escapes/, "string.escape"],
156
- [/\\./, "string.escape.invalid"],
157
- [
158
- /["']/,
159
- {
160
- cases: {
161
- "$#==$S2": { token: "string", next: "@pop" },
162
- "@default": "string"
163
- }
164
- }
165
- ]
166
- ]
167
- }
168
- };
169
-
170
- 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: "m3",
12
- extensions: [".m3", ".i3", ".mg", ".ig"],
13
- aliases: ["Modula-3", "Modula3", "modula3", "m3"],
14
- loader: () => {
15
- {
16
- return import('./m3.js');
17
- }
18
- }
19
- });
package/m3/m3.js DELETED
@@ -1,218 +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/m3/m3.ts
10
- var conf = {
11
- comments: {
12
- blockComment: ["(*", "*)"]
13
- },
14
- brackets: [
15
- ["{", "}"],
16
- ["[", "]"],
17
- ["(", ")"]
18
- ],
19
- autoClosingPairs: [
20
- { open: "[", close: "]" },
21
- { open: "{", close: "}" },
22
- { open: "(", close: ")" },
23
- { open: "(*", close: "*)" },
24
- { open: "<*", close: "*>" },
25
- { open: "'", close: "'", notIn: ["string", "comment"] },
26
- { open: '"', close: '"', notIn: ["string", "comment"] }
27
- ]
28
- };
29
- var language = {
30
- defaultToken: "",
31
- tokenPostfix: ".m3",
32
- brackets: [
33
- { token: "delimiter.curly", open: "{", close: "}" },
34
- { token: "delimiter.parenthesis", open: "(", close: ")" },
35
- { token: "delimiter.square", open: "[", close: "]" }
36
- ],
37
- keywords: [
38
- "AND",
39
- "ANY",
40
- "ARRAY",
41
- "AS",
42
- "BEGIN",
43
- "BITS",
44
- "BRANDED",
45
- "BY",
46
- "CASE",
47
- "CONST",
48
- "DIV",
49
- "DO",
50
- "ELSE",
51
- "ELSIF",
52
- "END",
53
- "EVAL",
54
- "EXCEPT",
55
- "EXCEPTION",
56
- "EXIT",
57
- "EXPORTS",
58
- "FINALLY",
59
- "FOR",
60
- "FROM",
61
- "GENERIC",
62
- "IF",
63
- "IMPORT",
64
- "IN",
65
- "INTERFACE",
66
- "LOCK",
67
- "LOOP",
68
- "METHODS",
69
- "MOD",
70
- "MODULE",
71
- "NOT",
72
- "OBJECT",
73
- "OF",
74
- "OR",
75
- "OVERRIDES",
76
- "PROCEDURE",
77
- "RAISE",
78
- "RAISES",
79
- "READONLY",
80
- "RECORD",
81
- "REF",
82
- "REPEAT",
83
- "RETURN",
84
- "REVEAL",
85
- "SET",
86
- "THEN",
87
- "TO",
88
- "TRY",
89
- "TYPE",
90
- "TYPECASE",
91
- "UNSAFE",
92
- "UNTIL",
93
- "UNTRACED",
94
- "VALUE",
95
- "VAR",
96
- "WHILE",
97
- "WITH"
98
- ],
99
- reservedConstNames: [
100
- "ABS",
101
- "ADR",
102
- "ADRSIZE",
103
- "BITSIZE",
104
- "BYTESIZE",
105
- "CEILING",
106
- "DEC",
107
- "DISPOSE",
108
- "FALSE",
109
- "FIRST",
110
- "FLOAT",
111
- "FLOOR",
112
- "INC",
113
- "ISTYPE",
114
- "LAST",
115
- "LOOPHOLE",
116
- "MAX",
117
- "MIN",
118
- "NARROW",
119
- "NEW",
120
- "NIL",
121
- "NUMBER",
122
- "ORD",
123
- "ROUND",
124
- "SUBARRAY",
125
- "TRUE",
126
- "TRUNC",
127
- "TYPECODE",
128
- "VAL"
129
- ],
130
- reservedTypeNames: [
131
- "ADDRESS",
132
- "ANY",
133
- "BOOLEAN",
134
- "CARDINAL",
135
- "CHAR",
136
- "EXTENDED",
137
- "INTEGER",
138
- "LONGCARD",
139
- "LONGINT",
140
- "LONGREAL",
141
- "MUTEX",
142
- "NULL",
143
- "REAL",
144
- "REFANY",
145
- "ROOT",
146
- "TEXT"
147
- ],
148
- operators: ["+", "-", "*", "/", "&", "^", "."],
149
- relations: ["=", "#", "<", "<=", ">", ">=", "<:", ":"],
150
- delimiters: ["|", "..", "=>", ",", ";", ":="],
151
- symbols: /[>=<#.,:;+\-*/&^]+/,
152
- escapes: /\\(?:[\\fnrt"']|[0-7]{3})/,
153
- tokenizer: {
154
- root: [
155
- // Identifiers and keywords
156
- [/_\w*/, "invalid"],
157
- [
158
- /[a-zA-Z][a-zA-Z0-9_]*/,
159
- {
160
- cases: {
161
- "@keywords": { token: "keyword.$0" },
162
- "@reservedConstNames": { token: "constant.reserved.$0" },
163
- "@reservedTypeNames": { token: "type.reserved.$0" },
164
- "@default": "identifier"
165
- }
166
- }
167
- ],
168
- // Whitespace
169
- { include: "@whitespace" },
170
- [/[{}()\[\]]/, "@brackets"],
171
- // Integer- and real literals
172
- [/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/, "number.float"],
173
- [/[0-9]+(?:\_[0-9a-fA-F]+)?L?/, "number"],
174
- // Operators, relations, and delimiters
175
- [
176
- /@symbols/,
177
- {
178
- cases: {
179
- "@operators": "operators",
180
- "@relations": "operators",
181
- "@delimiters": "delimiter",
182
- "@default": "invalid"
183
- }
184
- }
185
- ],
186
- // Character literals
187
- [/'[^\\']'/, "string.char"],
188
- [/(')(@escapes)(')/, ["string.char", "string.escape", "string.char"]],
189
- [/'/, "invalid"],
190
- // Text literals
191
- [/"([^"\\]|\\.)*$/, "invalid"],
192
- [/"/, "string.text", "@text"]
193
- ],
194
- text: [
195
- [/[^\\"]+/, "string.text"],
196
- [/@escapes/, "string.escape"],
197
- [/\\./, "invalid"],
198
- [/"/, "string.text", "@pop"]
199
- ],
200
- comment: [
201
- [/\(\*/, "comment", "@push"],
202
- [/\*\)/, "comment", "@pop"],
203
- [/./, "comment"]
204
- ],
205
- pragma: [
206
- [/<\*/, "keyword.pragma", "@push"],
207
- [/\*>/, "keyword.pragma", "@pop"],
208
- [/./, "keyword.pragma"]
209
- ],
210
- whitespace: [
211
- [/[ \t\r\n]+/, "white"],
212
- [/\(\*/, "comment", "@comment"],
213
- [/<\*/, "keyword.pragma", "@pragma"]
214
- ]
215
- }
216
- };
217
-
218
- 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: "markdown",
12
- extensions: [".md", ".markdown", ".mdown", ".mkdn", ".mkd", ".mdwn", ".mdtxt", ".mdtext"],
13
- aliases: ["Markdown", "markdown"],
14
- loader: () => {
15
- {
16
- return import('./markdown.js');
17
- }
18
- }
19
- });