@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
@@ -1,237 +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/markdown/markdown.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: ">", notIn: ["string"] }
24
- ],
25
- surroundingPairs: [
26
- { open: "(", close: ")" },
27
- { open: "[", close: "]" },
28
- { open: "`", close: "`" }
29
- ],
30
- folding: {
31
- markers: {
32
- start: new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),
33
- end: new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")
34
- }
35
- }
36
- };
37
- var language = {
38
- defaultToken: "",
39
- tokenPostfix: ".md",
40
- // escape codes
41
- control: /[\\`*_\[\]{}()#+\-\.!]/,
42
- noncontrol: /[^\\`*_\[\]{}()#+\-\.!]/,
43
- escapes: /\\(?:@control)/,
44
- // escape codes for javascript/CSS strings
45
- jsescapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
46
- // non matched elements
47
- empty: [
48
- "area",
49
- "base",
50
- "basefont",
51
- "br",
52
- "col",
53
- "frame",
54
- "hr",
55
- "img",
56
- "input",
57
- "isindex",
58
- "link",
59
- "meta",
60
- "param"
61
- ],
62
- tokenizer: {
63
- root: [
64
- // markdown tables
65
- [/^\s*\|/, "@rematch", "@table_header"],
66
- // headers (with #)
67
- [/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/, ["white", "keyword", "keyword", "keyword"]],
68
- // headers (with =)
69
- [/^\s*(=+|\-+)\s*$/, "keyword"],
70
- // headers (with ***)
71
- [/^\s*((\*[ ]?)+)\s*$/, "meta.separator"],
72
- // quote
73
- [/^\s*>+/, "comment"],
74
- // list (starting with * or number)
75
- [/^\s*([\*\-+:]|\d+\.)\s/, "keyword"],
76
- // code block (4 spaces indent)
77
- [/^(\t|[ ]{4})[^ ].*$/, "string"],
78
- // code block (3 tilde)
79
- [/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/, { token: "string", next: "@codeblock" }],
80
- // github style code blocks (with backticks and language)
81
- [
82
- /^\s*```\s*((?:\w|[\/\-#])+).*$/,
83
- { token: "string", next: "@codeblockgh", nextEmbedded: "$1" }
84
- ],
85
- // github style code blocks (with backticks but no language)
86
- [/^\s*```\s*$/, { token: "string", next: "@codeblock" }],
87
- // markup within lines
88
- { include: "@linecontent" }
89
- ],
90
- table_header: [
91
- { include: "@table_common" },
92
- [/[^\|]+/, "keyword.table.header"]
93
- // table header
94
- ],
95
- table_body: [{ include: "@table_common" }, { include: "@linecontent" }],
96
- table_common: [
97
- [/\s*[\-:]+\s*/, { token: "keyword", switchTo: "table_body" }],
98
- // header-divider
99
- [/^\s*\|/, "keyword.table.left"],
100
- // opening |
101
- [/^\s*[^\|]/, "@rematch", "@pop"],
102
- // exiting
103
- [/^\s*$/, "@rematch", "@pop"],
104
- // exiting
105
- [
106
- /\|/,
107
- {
108
- cases: {
109
- "@eos": "keyword.table.right",
110
- // closing |
111
- "@default": "keyword.table.middle"
112
- // inner |
113
- }
114
- }
115
- ]
116
- ],
117
- codeblock: [
118
- [/^\s*~~~\s*$/, { token: "string", next: "@pop" }],
119
- [/^\s*```\s*$/, { token: "string", next: "@pop" }],
120
- [/.*$/, "variable.source"]
121
- ],
122
- // github style code blocks
123
- codeblockgh: [
124
- [/```\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
125
- [/[^`]+/, "variable.source"]
126
- ],
127
- linecontent: [
128
- // escapes
129
- [/&\w+;/, "string.escape"],
130
- [/@escapes/, "escape"],
131
- // various markup
132
- [/\b__([^\\_]|@escapes|_(?!_))+__\b/, "strong"],
133
- [/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/, "strong"],
134
- [/\b_[^_]+_\b/, "emphasis"],
135
- [/\*([^\\*]|@escapes)+\*/, "emphasis"],
136
- [/`([^\\`]|@escapes)+`/, "variable"],
137
- // links
138
- [/\{+[^}]+\}+/, "string.target"],
139
- [/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/, ["string.link", "", "string.link"]],
140
- [/(!?\[)((?:[^\]\\]|@escapes)*)(\])/, "string.link"],
141
- // or html
142
- { include: "html" }
143
- ],
144
- // Note: it is tempting to rather switch to the real HTML mode instead of building our own here
145
- // but currently there is a limitation in Monarch that prevents us from doing it: The opening
146
- // '<' would start the HTML mode, however there is no way to jump 1 character back to let the
147
- // HTML mode also tokenize the opening angle bracket. Thus, even though we could jump to HTML,
148
- // we cannot correctly tokenize it in that mode yet.
149
- html: [
150
- // html tags
151
- [/<(\w+)\/>/, "tag"],
152
- [
153
- /<(\w+)(\-|\w)*/,
154
- {
155
- cases: {
156
- "@empty": { token: "tag", next: "@tag.$1" },
157
- "@default": { token: "tag", next: "@tag.$1" }
158
- }
159
- }
160
- ],
161
- [/<\/(\w+)(\-|\w)*\s*>/, { token: "tag" }],
162
- [/<!--/, "comment", "@comment"]
163
- ],
164
- comment: [
165
- [/[^<\-]+/, "comment.content"],
166
- [/-->/, "comment", "@pop"],
167
- [/<!--/, "comment.content.invalid"],
168
- [/[<\-]/, "comment.content"]
169
- ],
170
- // Almost full HTML tag matching, complete with embedded scripts & styles
171
- tag: [
172
- [/[ \t\r\n]+/, "white"],
173
- [
174
- /(type)(\s*=\s*)(")([^"]+)(")/,
175
- [
176
- "attribute.name.html",
177
- "delimiter.html",
178
- "string.html",
179
- { token: "string.html", switchTo: "@tag.$S2.$4" },
180
- "string.html"
181
- ]
182
- ],
183
- [
184
- /(type)(\s*=\s*)(')([^']+)(')/,
185
- [
186
- "attribute.name.html",
187
- "delimiter.html",
188
- "string.html",
189
- { token: "string.html", switchTo: "@tag.$S2.$4" },
190
- "string.html"
191
- ]
192
- ],
193
- [/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name.html", "delimiter.html", "string.html"]],
194
- [/\w+/, "attribute.name.html"],
195
- [/\/>/, "tag", "@pop"],
196
- [
197
- />/,
198
- {
199
- cases: {
200
- "$S2==style": {
201
- token: "tag",
202
- switchTo: "embeddedStyle",
203
- nextEmbedded: "text/css"
204
- },
205
- "$S2==script": {
206
- cases: {
207
- $S3: {
208
- token: "tag",
209
- switchTo: "embeddedScript",
210
- nextEmbedded: "$S3"
211
- },
212
- "@default": {
213
- token: "tag",
214
- switchTo: "embeddedScript",
215
- nextEmbedded: "text/javascript"
216
- }
217
- }
218
- },
219
- "@default": { token: "tag", next: "@pop" }
220
- }
221
- }
222
- ]
223
- ],
224
- embeddedStyle: [
225
- [/[^<]+/, ""],
226
- [/<\/style\s*>/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
227
- [/</, ""]
228
- ],
229
- embeddedScript: [
230
- [/[^<]+/, ""],
231
- [/<\/script\s*>/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
232
- [/</, ""]
233
- ]
234
- }
235
- };
236
-
237
- 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: "mdx",
12
- extensions: [".mdx"],
13
- aliases: ["MDX", "mdx"],
14
- loader: () => {
15
- {
16
- return import('./mdx.js');
17
- }
18
- }
19
- });
package/mdx/mdx.js DELETED
@@ -1,184 +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/mdx/mdx.ts
29
- var conf = {
30
- comments: {
31
- blockComment: ["{/*", "*/}"]
32
- },
33
- brackets: [["{", "}"]],
34
- autoClosingPairs: [
35
- { open: '"', close: '"' },
36
- { open: "'", close: "'" },
37
- { open: "\u201C", close: "\u201D" },
38
- { open: "\u2018", close: "\u2019" },
39
- { open: "`", close: "`" },
40
- { open: "{", close: "}" },
41
- { open: "(", close: ")" },
42
- { open: "_", close: "_" },
43
- { open: "**", close: "**" },
44
- { open: "<", close: ">" }
45
- ],
46
- onEnterRules: [
47
- {
48
- beforeText: /^\s*- .+/,
49
- action: { indentAction: monaco_editor_core_exports.languages.IndentAction.None, appendText: "- " }
50
- },
51
- {
52
- beforeText: /^\s*\+ .+/,
53
- action: { indentAction: monaco_editor_core_exports.languages.IndentAction.None, appendText: "+ " }
54
- },
55
- {
56
- beforeText: /^\s*\* .+/,
57
- action: { indentAction: monaco_editor_core_exports.languages.IndentAction.None, appendText: "* " }
58
- },
59
- {
60
- beforeText: /^> /,
61
- action: { indentAction: monaco_editor_core_exports.languages.IndentAction.None, appendText: "> " }
62
- },
63
- {
64
- beforeText: /<\w+/,
65
- action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
66
- },
67
- {
68
- beforeText: /\s+>\s*$/,
69
- action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
70
- },
71
- {
72
- beforeText: /<\/\w+>/,
73
- action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Outdent }
74
- },
75
- ...Array.from({ length: 100 }, (_, index) => ({
76
- beforeText: new RegExp(`^${index}\\. .+`),
77
- action: { indentAction: monaco_editor_core_exports.languages.IndentAction.None, appendText: `${index + 1}. ` }
78
- }))
79
- ]
80
- };
81
- var language = {
82
- defaultToken: "",
83
- tokenPostfix: ".mdx",
84
- control: /[!#()*+.[\\\]_`{}\-]/,
85
- escapes: /\\@control/,
86
- tokenizer: {
87
- root: [
88
- [/^---$/, { token: "meta.content", next: "@frontmatter", nextEmbedded: "yaml" }],
89
- [/^\s*import/, { token: "keyword", next: "@import", nextEmbedded: "js" }],
90
- [/^\s*export/, { token: "keyword", next: "@export", nextEmbedded: "js" }],
91
- [/<\w+/, { token: "type.identifier", next: "@jsx" }],
92
- [/<\/?\w+>/, "type.identifier"],
93
- [
94
- /^(\s*)(>*\s*)(#{1,6}\s)/,
95
- [{ token: "white" }, { token: "comment" }, { token: "keyword", next: "@header" }]
96
- ],
97
- [/^(\s*)(>*\s*)([*+-])(\s+)/, ["white", "comment", "keyword", "white"]],
98
- [/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, ["white", "comment", "number", "white"]],
99
- [/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, ["white", "comment", "number", "white"]],
100
- [/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/, ["white", "comment", "keyword"]],
101
- [/`{3,}(\s.*)?$/, { token: "string", next: "@codeblock_backtick" }],
102
- [/~{3,}(\s.*)?$/, { token: "string", next: "@codeblock_tilde" }],
103
- [
104
- /`{3,}(\S+).*$/,
105
- { token: "string", next: "@codeblock_highlight_backtick", nextEmbedded: "$1" }
106
- ],
107
- [
108
- /~{3,}(\S+).*$/,
109
- { token: "string", next: "@codeblock_highlight_tilde", nextEmbedded: "$1" }
110
- ],
111
- [/^(\s*)(-{4,})$/, ["white", "comment"]],
112
- [/^(\s*)(>+)/, ["white", "comment"]],
113
- { include: "content" }
114
- ],
115
- content: [
116
- [
117
- /(\[)(.+)(]\()(.+)(\s+".*")(\))/,
118
- ["", "string.link", "", "type.identifier", "string.link", ""]
119
- ],
120
- [/(\[)(.+)(]\()(.+)(\))/, ["", "type.identifier", "", "string.link", ""]],
121
- [/(\[)(.+)(]\[)(.+)(])/, ["", "type.identifier", "", "type.identifier", ""]],
122
- [/(\[)(.+)(]:\s+)(\S*)/, ["", "type.identifier", "", "string.link"]],
123
- [/(\[)(.+)(])/, ["", "type.identifier", ""]],
124
- [/`.*`/, "variable.source"],
125
- [/_/, { token: "emphasis", next: "@emphasis_underscore" }],
126
- [/\*(?!\*)/, { token: "emphasis", next: "@emphasis_asterisk" }],
127
- [/\*\*/, { token: "strong", next: "@strong" }],
128
- [/{/, { token: "delimiter.bracket", next: "@expression", nextEmbedded: "js" }]
129
- ],
130
- import: [[/'\s*(;|$)/, { token: "string", next: "@pop", nextEmbedded: "@pop" }]],
131
- expression: [
132
- [/{/, { token: "delimiter.bracket", next: "@expression" }],
133
- [/}/, { token: "delimiter.bracket", next: "@pop", nextEmbedded: "@pop" }]
134
- ],
135
- export: [[/^\s*$/, { token: "delimiter.bracket", next: "@pop", nextEmbedded: "@pop" }]],
136
- jsx: [
137
- [/\s+/, ""],
138
- [/(\w+)(=)("(?:[^"\\]|\\.)*")/, ["attribute.name", "operator", "string"]],
139
- [/(\w+)(=)('(?:[^'\\]|\\.)*')/, ["attribute.name", "operator", "string"]],
140
- [/(\w+(?=\s|>|={|$))/, ["attribute.name"]],
141
- [/={/, { token: "delimiter.bracket", next: "@expression", nextEmbedded: "js" }],
142
- [/>/, { token: "type.identifier", next: "@pop" }]
143
- ],
144
- header: [
145
- [/.$/, { token: "keyword", next: "@pop" }],
146
- { include: "content" },
147
- [/./, { token: "keyword" }]
148
- ],
149
- strong: [
150
- [/\*\*/, { token: "strong", next: "@pop" }],
151
- { include: "content" },
152
- [/./, { token: "strong" }]
153
- ],
154
- emphasis_underscore: [
155
- [/_/, { token: "emphasis", next: "@pop" }],
156
- { include: "content" },
157
- [/./, { token: "emphasis" }]
158
- ],
159
- emphasis_asterisk: [
160
- [/\*(?!\*)/, { token: "emphasis", next: "@pop" }],
161
- { include: "content" },
162
- [/./, { token: "emphasis" }]
163
- ],
164
- frontmatter: [[/^---$/, { token: "meta.content", nextEmbedded: "@pop", next: "@pop" }]],
165
- codeblock_highlight_backtick: [
166
- [/\s*`{3,}\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
167
- [/.*$/, "variable.source"]
168
- ],
169
- codeblock_highlight_tilde: [
170
- [/\s*~{3,}\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
171
- [/.*$/, "variable.source"]
172
- ],
173
- codeblock_backtick: [
174
- [/\s*`{3,}\s*$/, { token: "string", next: "@pop" }],
175
- [/.*$/, "variable.source"]
176
- ],
177
- codeblock_tilde: [
178
- [/\s*~{3,}\s*$/, { token: "string", next: "@pop" }],
179
- [/.*$/, "variable.source"]
180
- ]
181
- }
182
- };
183
-
184
- 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: "mips",
12
- extensions: [".s"],
13
- aliases: ["MIPS", "MIPS-V"],
14
- mimetypes: ["text/x-mips", "text/mips", "text/plaintext"],
15
- loader: () => {
16
- {
17
- return import('./mips.js');
18
- }
19
- }
20
- });
package/mips/mips.js DELETED
@@ -1,206 +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/mips/mips.ts
10
- var conf = {
11
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
12
- comments: {
13
- blockComment: ["###", "###"],
14
- lineComment: "#"
15
- },
16
- folding: {
17
- markers: {
18
- start: new RegExp("^\\s*#region\\b"),
19
- end: new RegExp("^\\s*#endregion\\b")
20
- }
21
- }
22
- };
23
- var language = {
24
- defaultToken: "",
25
- ignoreCase: false,
26
- tokenPostfix: ".mips",
27
- regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,
28
- keywords: [
29
- ".data",
30
- ".text",
31
- "syscall",
32
- "trap",
33
- "add",
34
- "addu",
35
- "addi",
36
- "addiu",
37
- "and",
38
- "andi",
39
- "div",
40
- "divu",
41
- "mult",
42
- "multu",
43
- "nor",
44
- "or",
45
- "ori",
46
- "sll",
47
- "slv",
48
- "sra",
49
- "srav",
50
- "srl",
51
- "srlv",
52
- "sub",
53
- "subu",
54
- "xor",
55
- "xori",
56
- "lhi",
57
- "lho",
58
- "lhi",
59
- "llo",
60
- "slt",
61
- "slti",
62
- "sltu",
63
- "sltiu",
64
- "beq",
65
- "bgtz",
66
- "blez",
67
- "bne",
68
- "j",
69
- "jal",
70
- "jalr",
71
- "jr",
72
- "lb",
73
- "lbu",
74
- "lh",
75
- "lhu",
76
- "lw",
77
- "li",
78
- "la",
79
- "sb",
80
- "sh",
81
- "sw",
82
- "mfhi",
83
- "mflo",
84
- "mthi",
85
- "mtlo",
86
- "move"
87
- ],
88
- // we include these common regular expressions
89
- symbols: /[\.,\:]+/,
90
- escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
91
- // The main tokenizer for our languages
92
- tokenizer: {
93
- root: [
94
- // identifiers and keywords
95
- [/\$[a-zA-Z_]\w*/, "variable.predefined"],
96
- [
97
- /[.a-zA-Z_]\w*/,
98
- {
99
- cases: {
100
- this: "variable.predefined",
101
- "@keywords": { token: "keyword.$0" },
102
- "@default": ""
103
- }
104
- }
105
- ],
106
- // whitespace
107
- [/[ \t\r\n]+/, ""],
108
- // Comments
109
- [/#.*$/, "comment"],
110
- // regular expressions
111
- ["///", { token: "regexp", next: "@hereregexp" }],
112
- [/^(\s*)(@regEx)/, ["", "regexp"]],
113
- [/(\,)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
114
- [/(\:)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
115
- // delimiters
116
- [/@symbols/, "delimiter"],
117
- // numbers
118
- [/\d+[eE]([\-+]?\d+)?/, "number.float"],
119
- [/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
120
- [/0[xX][0-9a-fA-F]+/, "number.hex"],
121
- [/0[0-7]+(?!\d)/, "number.octal"],
122
- [/\d+/, "number"],
123
- // delimiter: after number because of .\d floats
124
- [/[,.]/, "delimiter"],
125
- // strings:
126
- [/"""/, "string", '@herestring."""'],
127
- [/'''/, "string", "@herestring.'''"],
128
- [
129
- /"/,
130
- {
131
- cases: {
132
- "@eos": "string",
133
- "@default": { token: "string", next: '@string."' }
134
- }
135
- }
136
- ],
137
- [
138
- /'/,
139
- {
140
- cases: {
141
- "@eos": "string",
142
- "@default": { token: "string", next: "@string.'" }
143
- }
144
- }
145
- ]
146
- ],
147
- string: [
148
- [/[^"'\#\\]+/, "string"],
149
- [/@escapes/, "string.escape"],
150
- [/\./, "string.escape.invalid"],
151
- [/\./, "string.escape.invalid"],
152
- [
153
- /#{/,
154
- {
155
- cases: {
156
- '$S2=="': {
157
- token: "string",
158
- next: "root.interpolatedstring"
159
- },
160
- "@default": "string"
161
- }
162
- }
163
- ],
164
- [
165
- /["']/,
166
- {
167
- cases: {
168
- "$#==$S2": { token: "string", next: "@pop" },
169
- "@default": "string"
170
- }
171
- }
172
- ],
173
- [/#/, "string"]
174
- ],
175
- herestring: [
176
- [
177
- /("""|''')/,
178
- {
179
- cases: {
180
- "$1==$S2": { token: "string", next: "@pop" },
181
- "@default": "string"
182
- }
183
- }
184
- ],
185
- [/[^#\\'"]+/, "string"],
186
- [/['"]+/, "string"],
187
- [/@escapes/, "string.escape"],
188
- [/\./, "string.escape.invalid"],
189
- [/#{/, { token: "string.quote", next: "root.interpolatedstring" }],
190
- [/#/, "string"]
191
- ],
192
- comment: [
193
- [/[^#]+/, "comment"],
194
- [/#/, "comment"]
195
- ],
196
- hereregexp: [
197
- [/[^\\\/#]+/, "regexp"],
198
- [/\\./, "regexp"],
199
- [/#.*$/, "comment"],
200
- ["///[igm]*", { token: "regexp", next: "@pop" }],
201
- [/\//, "regexp"]
202
- ]
203
- }
204
- };
205
-
206
- 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: "msdax",
12
- extensions: [".dax", ".msdax"],
13
- aliases: ["DAX", "MSDAX"],
14
- loader: () => {
15
- {
16
- return import('./msdax.js');
17
- }
18
- }
19
- });