@codingame/monaco-vscode-xml-default-extension 1.81.8-next.1

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.
package/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import { registerExtension } from 'vscode/extensions';
2
+
3
+ var manifest = {name:"xml",displayName:"XML Language Basics",description:"Provides syntax highlighting and bracket matching in XML files.",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"*"},contributes:{languages:[{id:"xml",extensions:[".xml",".xsd",".ascx",".atom",".axml",".axaml",".bpmn",".cpt",".csl",".csproj",".csproj.user",".dita",".ditamap",".dtd",".ent",".mod",".dtml",".fsproj",".fxml",".iml",".isml",".jmx",".launch",".menu",".mxml",".nuspec",".opml",".owl",".proj",".props",".pt",".publishsettings",".pubxml",".pubxml.user",".rbxlx",".rbxmx",".rdf",".rng",".rss",".shproj",".storyboard",".svg",".targets",".tld",".tmx",".vbproj",".vbproj.user",".vcxproj",".vcxproj.filters",".wsdl",".wxi",".wxl",".wxs",".xaml",".xbl",".xib",".xlf",".xliff",".xpdl",".xul",".xoml"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],configuration:"./xml.language-configuration.json"},{id:"xsl",extensions:[".xsl",".xslt"],aliases:["XSL","xsl"],configuration:"./xsl.language-configuration.json"}],grammars:[{language:"xml",scopeName:"text.xml",path:"./syntaxes/xml.tmLanguage.json"},{language:"xsl",scopeName:"text.xml.xsl",path:"./syntaxes/xsl.tmLanguage.json"}]},scripts:{"update-grammar":"node ../node_modules/vscode-grammar-updater/bin atom/language-xml grammars/xml.cson ./syntaxes/xml.tmLanguage.json grammars/xsl.cson ./syntaxes/xsl.tmLanguage.json"},repository:{type:"git",url:"https://github.com/microsoft/vscode.git"},main:undefined};
4
+
5
+ const { registerFileUrl } = registerExtension(manifest);
6
+ registerFileUrl('./syntaxes/xml.tmLanguage.json', new URL('./xml.tmLanguage.json', import.meta.url).toString(), 'application/json');
7
+ registerFileUrl('./syntaxes/xsl.tmLanguage.json', new URL('./xsl.tmLanguage.json', import.meta.url).toString(), 'application/json');
8
+ registerFileUrl('./xml.language-configuration.json', new URL('./xml.language-configuration.json', import.meta.url).toString(), 'application/json');
9
+ registerFileUrl('./xsl.language-configuration.json', new URL('./xsl.language-configuration.json', import.meta.url).toString(), 'application/json');
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@codingame/monaco-vscode-xml-default-extension",
3
+ "version": "1.81.8-next.1",
4
+ "keywords": [],
5
+ "author": {
6
+ "name": "CodinGame",
7
+ "url": "http://www.codingame.com"
8
+ },
9
+ "license": "MIT",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/CodinGame/monaco-vscode-api"
13
+ },
14
+ "type": "module",
15
+ "private": false,
16
+ "description": "Default VSCode extension designed to be used with @codingame/monaco-vscode-api",
17
+ "main": "index.js",
18
+ "module": "index.js",
19
+ "dependencies": {
20
+ "vscode": "npm:@codingame/monaco-vscode-api@1.81.8-next.1"
21
+ }
22
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "comments": {
3
+ "blockComment": [ "<!--", "-->" ]
4
+ },
5
+ "brackets": [
6
+ ["<!--", "-->"],
7
+ ["<", ">"],
8
+ ["{", "}"],
9
+ ["(", ")"]
10
+ ],
11
+ "autoClosingPairs": [
12
+ { "open": "{", "close": "}"},
13
+ { "open": "[", "close": "]"},
14
+ { "open": "(", "close": ")" },
15
+ { "open": "\"", "close": "\"", "notIn": ["string"] },
16
+ { "open": "'", "close": "'", "notIn": ["string"] },
17
+ { "open": "<!--", "close": "-->", "notIn": [ "comment", "string" ]},
18
+ { "open": "<![CDATA[", "close": "]]>", "notIn": [ "comment", "string" ]}
19
+ ],
20
+ "surroundingPairs": [
21
+ { "open": "'", "close": "'" },
22
+ { "open": "\"", "close": "\"" },
23
+ { "open": "{", "close": "}"},
24
+ { "open": "[", "close": "]"},
25
+ { "open": "(", "close": ")" },
26
+ { "open": "<", "close": ">" }
27
+ ],
28
+ "colorizedBracketPairs": [
29
+ ],
30
+ "folding": {
31
+ "markers": {
32
+ "start": "^\\s*<!--\\s*#region\\b.*-->",
33
+ "end": "^\\s*<!--\\s*#endregion\\b.*-->"
34
+ }
35
+ },
36
+ "wordPattern": {
37
+ "pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\$\\%\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)"
38
+ }
39
+ }
@@ -0,0 +1,387 @@
1
+ {
2
+ "information_for_contributors": [
3
+ "This file has been converted from https://github.com/atom/language-xml/blob/master/grammars/xml.cson",
4
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
5
+ "Once accepted there, we are happy to receive an update request."
6
+ ],
7
+ "version": "https://github.com/atom/language-xml/commit/7bc75dfe779ad5b35d9bf4013d9181864358cb49",
8
+ "name": "XML",
9
+ "scopeName": "text.xml",
10
+ "patterns": [
11
+ {
12
+ "begin": "(<\\?)\\s*([-_a-zA-Z0-9]+)",
13
+ "captures": {
14
+ "1": {
15
+ "name": "punctuation.definition.tag.xml"
16
+ },
17
+ "2": {
18
+ "name": "entity.name.tag.xml"
19
+ }
20
+ },
21
+ "end": "(\\?>)",
22
+ "name": "meta.tag.preprocessor.xml",
23
+ "patterns": [
24
+ {
25
+ "match": " ([a-zA-Z-]+)",
26
+ "name": "entity.other.attribute-name.xml"
27
+ },
28
+ {
29
+ "include": "#doublequotedString"
30
+ },
31
+ {
32
+ "include": "#singlequotedString"
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "begin": "(<!)(DOCTYPE)\\s+([:a-zA-Z_][:a-zA-Z0-9_.-]*)",
38
+ "captures": {
39
+ "1": {
40
+ "name": "punctuation.definition.tag.xml"
41
+ },
42
+ "2": {
43
+ "name": "keyword.other.doctype.xml"
44
+ },
45
+ "3": {
46
+ "name": "variable.language.documentroot.xml"
47
+ }
48
+ },
49
+ "end": "\\s*(>)",
50
+ "name": "meta.tag.sgml.doctype.xml",
51
+ "patterns": [
52
+ {
53
+ "include": "#internalSubset"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "include": "#comments"
59
+ },
60
+ {
61
+ "begin": "(<)((?:([-_a-zA-Z0-9]+)(:))?([-_a-zA-Z0-9:]+))(?=(\\s[^>]*)?></\\2>)",
62
+ "beginCaptures": {
63
+ "1": {
64
+ "name": "punctuation.definition.tag.xml"
65
+ },
66
+ "2": {
67
+ "name": "entity.name.tag.xml"
68
+ },
69
+ "3": {
70
+ "name": "entity.name.tag.namespace.xml"
71
+ },
72
+ "4": {
73
+ "name": "punctuation.separator.namespace.xml"
74
+ },
75
+ "5": {
76
+ "name": "entity.name.tag.localname.xml"
77
+ }
78
+ },
79
+ "end": "(>)(</)((?:([-_a-zA-Z0-9]+)(:))?([-_a-zA-Z0-9:]+))(>)",
80
+ "endCaptures": {
81
+ "1": {
82
+ "name": "punctuation.definition.tag.xml"
83
+ },
84
+ "2": {
85
+ "name": "punctuation.definition.tag.xml"
86
+ },
87
+ "3": {
88
+ "name": "entity.name.tag.xml"
89
+ },
90
+ "4": {
91
+ "name": "entity.name.tag.namespace.xml"
92
+ },
93
+ "5": {
94
+ "name": "punctuation.separator.namespace.xml"
95
+ },
96
+ "6": {
97
+ "name": "entity.name.tag.localname.xml"
98
+ },
99
+ "7": {
100
+ "name": "punctuation.definition.tag.xml"
101
+ }
102
+ },
103
+ "name": "meta.tag.no-content.xml",
104
+ "patterns": [
105
+ {
106
+ "include": "#tagStuff"
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "begin": "(</?)(?:([-\\w\\.]+)((:)))?([-\\w\\.:]+)",
112
+ "captures": {
113
+ "1": {
114
+ "name": "punctuation.definition.tag.xml"
115
+ },
116
+ "2": {
117
+ "name": "entity.name.tag.namespace.xml"
118
+ },
119
+ "3": {
120
+ "name": "entity.name.tag.xml"
121
+ },
122
+ "4": {
123
+ "name": "punctuation.separator.namespace.xml"
124
+ },
125
+ "5": {
126
+ "name": "entity.name.tag.localname.xml"
127
+ }
128
+ },
129
+ "end": "(/?>)",
130
+ "name": "meta.tag.xml",
131
+ "patterns": [
132
+ {
133
+ "include": "#tagStuff"
134
+ }
135
+ ]
136
+ },
137
+ {
138
+ "include": "#entity"
139
+ },
140
+ {
141
+ "include": "#bare-ampersand"
142
+ },
143
+ {
144
+ "begin": "<%@",
145
+ "beginCaptures": {
146
+ "0": {
147
+ "name": "punctuation.section.embedded.begin.xml"
148
+ }
149
+ },
150
+ "end": "%>",
151
+ "endCaptures": {
152
+ "0": {
153
+ "name": "punctuation.section.embedded.end.xml"
154
+ }
155
+ },
156
+ "name": "source.java-props.embedded.xml",
157
+ "patterns": [
158
+ {
159
+ "match": "page|include|taglib",
160
+ "name": "keyword.other.page-props.xml"
161
+ }
162
+ ]
163
+ },
164
+ {
165
+ "begin": "<%[!=]?(?!--)",
166
+ "beginCaptures": {
167
+ "0": {
168
+ "name": "punctuation.section.embedded.begin.xml"
169
+ }
170
+ },
171
+ "end": "(?!--)%>",
172
+ "endCaptures": {
173
+ "0": {
174
+ "name": "punctuation.section.embedded.end.xml"
175
+ }
176
+ },
177
+ "name": "source.java.embedded.xml",
178
+ "patterns": [
179
+ {
180
+ "include": "source.java"
181
+ }
182
+ ]
183
+ },
184
+ {
185
+ "begin": "<!\\[CDATA\\[",
186
+ "beginCaptures": {
187
+ "0": {
188
+ "name": "punctuation.definition.string.begin.xml"
189
+ }
190
+ },
191
+ "end": "]]>",
192
+ "endCaptures": {
193
+ "0": {
194
+ "name": "punctuation.definition.string.end.xml"
195
+ }
196
+ },
197
+ "name": "string.unquoted.cdata.xml"
198
+ }
199
+ ],
200
+ "repository": {
201
+ "EntityDecl": {
202
+ "begin": "(<!)(ENTITY)\\s+(%\\s+)?([:a-zA-Z_][:a-zA-Z0-9_.-]*)(\\s+(?:SYSTEM|PUBLIC)\\s+)?",
203
+ "captures": {
204
+ "1": {
205
+ "name": "punctuation.definition.tag.xml"
206
+ },
207
+ "2": {
208
+ "name": "keyword.other.entity.xml"
209
+ },
210
+ "3": {
211
+ "name": "punctuation.definition.entity.xml"
212
+ },
213
+ "4": {
214
+ "name": "variable.language.entity.xml"
215
+ },
216
+ "5": {
217
+ "name": "keyword.other.entitytype.xml"
218
+ }
219
+ },
220
+ "end": "(>)",
221
+ "patterns": [
222
+ {
223
+ "include": "#doublequotedString"
224
+ },
225
+ {
226
+ "include": "#singlequotedString"
227
+ }
228
+ ]
229
+ },
230
+ "bare-ampersand": {
231
+ "match": "&",
232
+ "name": "invalid.illegal.bad-ampersand.xml"
233
+ },
234
+ "doublequotedString": {
235
+ "begin": "\"",
236
+ "beginCaptures": {
237
+ "0": {
238
+ "name": "punctuation.definition.string.begin.xml"
239
+ }
240
+ },
241
+ "end": "\"",
242
+ "endCaptures": {
243
+ "0": {
244
+ "name": "punctuation.definition.string.end.xml"
245
+ }
246
+ },
247
+ "name": "string.quoted.double.xml",
248
+ "patterns": [
249
+ {
250
+ "include": "#entity"
251
+ },
252
+ {
253
+ "include": "#bare-ampersand"
254
+ }
255
+ ]
256
+ },
257
+ "entity": {
258
+ "captures": {
259
+ "1": {
260
+ "name": "punctuation.definition.constant.xml"
261
+ },
262
+ "3": {
263
+ "name": "punctuation.definition.constant.xml"
264
+ }
265
+ },
266
+ "match": "(&)([:a-zA-Z_][:a-zA-Z0-9_.-]*|#[0-9]+|#x[0-9a-fA-F]+)(;)",
267
+ "name": "constant.character.entity.xml"
268
+ },
269
+ "internalSubset": {
270
+ "begin": "(\\[)",
271
+ "captures": {
272
+ "1": {
273
+ "name": "punctuation.definition.constant.xml"
274
+ }
275
+ },
276
+ "end": "(\\])",
277
+ "name": "meta.internalsubset.xml",
278
+ "patterns": [
279
+ {
280
+ "include": "#EntityDecl"
281
+ },
282
+ {
283
+ "include": "#parameterEntity"
284
+ },
285
+ {
286
+ "include": "#comments"
287
+ }
288
+ ]
289
+ },
290
+ "parameterEntity": {
291
+ "captures": {
292
+ "1": {
293
+ "name": "punctuation.definition.constant.xml"
294
+ },
295
+ "3": {
296
+ "name": "punctuation.definition.constant.xml"
297
+ }
298
+ },
299
+ "match": "(%)([:a-zA-Z_][:a-zA-Z0-9_.-]*)(;)",
300
+ "name": "constant.character.parameter-entity.xml"
301
+ },
302
+ "singlequotedString": {
303
+ "begin": "'",
304
+ "beginCaptures": {
305
+ "0": {
306
+ "name": "punctuation.definition.string.begin.xml"
307
+ }
308
+ },
309
+ "end": "'",
310
+ "endCaptures": {
311
+ "0": {
312
+ "name": "punctuation.definition.string.end.xml"
313
+ }
314
+ },
315
+ "name": "string.quoted.single.xml",
316
+ "patterns": [
317
+ {
318
+ "include": "#entity"
319
+ },
320
+ {
321
+ "include": "#bare-ampersand"
322
+ }
323
+ ]
324
+ },
325
+ "tagStuff": {
326
+ "patterns": [
327
+ {
328
+ "captures": {
329
+ "1": {
330
+ "name": "entity.other.attribute-name.namespace.xml"
331
+ },
332
+ "2": {
333
+ "name": "entity.other.attribute-name.xml"
334
+ },
335
+ "3": {
336
+ "name": "punctuation.separator.namespace.xml"
337
+ },
338
+ "4": {
339
+ "name": "entity.other.attribute-name.localname.xml"
340
+ }
341
+ },
342
+ "match": "(?:^|\\s+)(?:([-\\w.]+)((:)))?([-\\w.:]+)\\s*="
343
+ },
344
+ {
345
+ "include": "#doublequotedString"
346
+ },
347
+ {
348
+ "include": "#singlequotedString"
349
+ }
350
+ ]
351
+ },
352
+ "comments": {
353
+ "patterns": [
354
+ {
355
+ "begin": "<%--",
356
+ "captures": {
357
+ "0": {
358
+ "name": "punctuation.definition.comment.xml"
359
+ },
360
+ "end": "--%>",
361
+ "name": "comment.block.xml"
362
+ }
363
+ },
364
+ {
365
+ "begin": "<!--",
366
+ "captures": {
367
+ "0": {
368
+ "name": "punctuation.definition.comment.xml"
369
+ }
370
+ },
371
+ "end": "-->",
372
+ "name": "comment.block.xml",
373
+ "patterns": [
374
+ {
375
+ "begin": "--(?!>)",
376
+ "captures": {
377
+ "0": {
378
+ "name": "invalid.illegal.bad-comments-or-CDATA.xml"
379
+ }
380
+ }
381
+ }
382
+ ]
383
+ }
384
+ ]
385
+ }
386
+ }
387
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "comments": {
3
+ "lineComment": "",
4
+ "blockComment": ["<!--", "-->"]
5
+ },
6
+ "brackets": [
7
+ ["<!--", "-->"],
8
+ ["<", ">"],
9
+ ["{", "}"],
10
+ ["(", ")"],
11
+ ["[", "]"]
12
+ ],
13
+ "wordPattern": {
14
+ "pattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\$\\%\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)"
15
+ }
16
+
17
+ // enhancedBrackets: [{
18
+ // tokenType: 'tag.tag-$1.xml',
19
+ // openTrigger: '>',
20
+ // open: /<(\w[\w\d]*)([^\/>]*(?!\/)>)[^<>]*$/i,
21
+ // closeComplete: '</$1>',
22
+ // closeTrigger: '>',
23
+ // close: /<\/(\w[\w\d]*)\s*>$/i
24
+ // }],
25
+
26
+ // autoClosingPairs: [['\'', '\''], ['"', '"'] ]
27
+ }
@@ -0,0 +1,94 @@
1
+ {
2
+ "information_for_contributors": [
3
+ "This file has been converted from https://github.com/atom/language-xml/blob/master/grammars/xsl.cson",
4
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
5
+ "Once accepted there, we are happy to receive an update request."
6
+ ],
7
+ "version": "https://github.com/atom/language-xml/commit/507de2ee7daca60cf02e9e21fbeb92bbae73e280",
8
+ "name": "XSL",
9
+ "scopeName": "text.xml.xsl",
10
+ "patterns": [
11
+ {
12
+ "begin": "(<)(xsl)((:))(template)",
13
+ "captures": {
14
+ "1": {
15
+ "name": "punctuation.definition.tag.xml"
16
+ },
17
+ "2": {
18
+ "name": "entity.name.tag.namespace.xml"
19
+ },
20
+ "3": {
21
+ "name": "entity.name.tag.xml"
22
+ },
23
+ "4": {
24
+ "name": "punctuation.separator.namespace.xml"
25
+ },
26
+ "5": {
27
+ "name": "entity.name.tag.localname.xml"
28
+ }
29
+ },
30
+ "end": "(>)",
31
+ "name": "meta.tag.xml.template",
32
+ "patterns": [
33
+ {
34
+ "captures": {
35
+ "1": {
36
+ "name": "entity.other.attribute-name.namespace.xml"
37
+ },
38
+ "2": {
39
+ "name": "entity.other.attribute-name.xml"
40
+ },
41
+ "3": {
42
+ "name": "punctuation.separator.namespace.xml"
43
+ },
44
+ "4": {
45
+ "name": "entity.other.attribute-name.localname.xml"
46
+ }
47
+ },
48
+ "match": " (?:([-_a-zA-Z0-9]+)((:)))?([a-zA-Z-]+)"
49
+ },
50
+ {
51
+ "include": "#doublequotedString"
52
+ },
53
+ {
54
+ "include": "#singlequotedString"
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "include": "text.xml"
60
+ }
61
+ ],
62
+ "repository": {
63
+ "doublequotedString": {
64
+ "begin": "\"",
65
+ "beginCaptures": {
66
+ "0": {
67
+ "name": "punctuation.definition.string.begin.xml"
68
+ }
69
+ },
70
+ "end": "\"",
71
+ "endCaptures": {
72
+ "0": {
73
+ "name": "punctuation.definition.string.end.xml"
74
+ }
75
+ },
76
+ "name": "string.quoted.double.xml"
77
+ },
78
+ "singlequotedString": {
79
+ "begin": "'",
80
+ "beginCaptures": {
81
+ "0": {
82
+ "name": "punctuation.definition.string.begin.xml"
83
+ }
84
+ },
85
+ "end": "'",
86
+ "endCaptures": {
87
+ "0": {
88
+ "name": "punctuation.definition.string.end.xml"
89
+ }
90
+ },
91
+ "name": "string.quoted.single.xml"
92
+ }
93
+ }
94
+ }