Elffuss BraidHub

kikocis/continue public

main · 13.1 KiBRawPermalink
1{
2 "fileTypes": ["html", "htm", "shtml", "xhtml", "inc", "tmpl", "tpl"],
3 "firstLineMatch": "<(?i:(!DOCTYPE\\s*)?html)",
4 "injections": {
5 "R:text.html - comment.block": {
6 "comment": "Use R: to ensure this matches after any other injections.",
7 "patterns": [
8 {
9 "match": "<",
10 "name": "invalid.illegal.bad-angle-bracket.html"
11 }
12 ]
13 }
14 },
15 "keyEquivalent": "^~H",
16 "name": "HTML",
17 "patterns": [
18 {
19 "begin": "(<)([a-zA-Z0-9:\\-]++)(?=[^>]*></\\2>)",
20 "beginCaptures": {
21 "1": {
22 "name": "punctuation.definition.tag.html"
23 },
24 "2": {
25 "name": "entity.name.tag.html"
26 }
27 },
28 "end": "(>(<)/)(\\2)(>)",
29 "endCaptures": {
30 "1": {
31 "name": "punctuation.definition.tag.html"
32 },
33 "2": {
34 "name": "meta.scope.between-tag-pair.html"
35 },
36 "3": {
37 "name": "entity.name.tag.html"
38 },
39 "4": {
40 "name": "punctuation.definition.tag.html"
41 }
42 },
43 "name": "meta.tag.any.html",
44 "patterns": [
45 {
46 "include": "#tag-stuff"
47 }
48 ]
49 },
50 {
51 "begin": "(<\\?)(xml)",
52 "captures": {
53 "1": {
54 "name": "punctuation.definition.tag.html"
55 },
56 "2": {
57 "name": "entity.name.tag.xml.html"
58 }
59 },
60 "end": "(\\?>)",
61 "name": "meta.tag.preprocessor.xml.html",
62 "patterns": [
63 {
64 "include": "#tag-generic-attribute"
65 },
66 {
67 "include": "#string-double-quoted"
68 },
69 {
70 "include": "#string-single-quoted"
71 }
72 ]
73 },
74 {
75 "begin": "<!--",
76 "captures": {
77 "0": {
78 "name": "punctuation.definition.comment.html"
79 }
80 },
81 "end": "--\\s*>",
82 "name": "comment.block.html",
83 "patterns": [
84 {
85 "match": "--",
86 "name": "invalid.illegal.bad-comments-or-CDATA.html"
87 },
88 {
89 "include": "#embedded-code"
90 }
91 ]
92 },
93 {
94 "begin": "<!",
95 "captures": {
96 "0": {
97 "name": "punctuation.definition.tag.html"
98 }
99 },
100 "end": ">",
101 "name": "meta.tag.sgml.html",
102 "patterns": [
103 {
104 "begin": "(?i:DOCTYPE)",
105 "captures": {
106 "1": {
107 "name": "entity.name.tag.doctype.html"
108 }
109 },
110 "end": "(?=>)",
111 "name": "meta.tag.sgml.doctype.html",
112 "patterns": [
113 {
114 "match": "\"[^\">]*\"",
115 "name": "string.quoted.double.doctype.identifiers-and-DTDs.html"
116 }
117 ]
118 },
119 {
120 "begin": "\\[CDATA\\[",
121 "end": "]](?=>)",
122 "name": "constant.other.inline-data.html"
123 },
124 {
125 "match": "(\\s*)(?!--|>)\\S(\\s*)",
126 "name": "invalid.illegal.bad-comments-or-CDATA.html"
127 }
128 ]
129 },
130 {
131 "include": "#embedded-code"
132 },
133 {
134 "begin": "(?:^\\s+)?(<)((?i:style))\\b(?![^>]*/>)",
135 "captures": {
136 "1": {
137 "name": "punctuation.definition.tag.html"
138 },
139 "2": {
140 "name": "entity.name.tag.style.html"
141 },
142 "3": {
143 "name": "punctuation.definition.tag.html"
144 }
145 },
146 "end": "(</)((?i:style))(>)(?:\\s*\\n)?",
147 "contentName": "source.css.embedded.html",
148 "patterns": [
149 {
150 "include": "#tag-stuff"
151 },
152 {
153 "begin": "(>)",
154 "beginCaptures": {
155 "1": {
156 "name": "punctuation.definition.tag.html"
157 }
158 },
159 "end": "(?=</(?i:style))",
160 "patterns": [
161 {
162 "include": "#embedded-code"
163 },
164 {
165 "include": "source.css"
166 }
167 ]
168 }
169 ]
170 },
171 {
172 "begin": "(?:^\\s+)?(<)((?i:script))\\b(?![^>]*/>)(?![^>]*(?i:type.?=.?text/((?!javascript).*)))",
173 "beginCaptures": {
174 "1": {
175 "name": "punctuation.definition.tag.html"
176 },
177 "2": {
178 "name": "entity.name.tag.script.html"
179 }
180 },
181 "end": "(?<=</(script|SCRIPT))(>)(?:\\s*\\n)?",
182 "endCaptures": {
183 "2": {
184 "name": "punctuation.definition.tag.html"
185 }
186 },
187 "contentName": "source.js.embedded.html",
188 "patterns": [
189 {
190 "include": "#tag-stuff"
191 },
192 {
193 "begin": "(?<!</(?:script|SCRIPT))(>)",
194 "captures": {
195 "1": {
196 "name": "punctuation.definition.tag.html"
197 },
198 "2": {
199 "name": "entity.name.tag.script.html"
200 }
201 },
202 "end": "(</)((?i:script))",
203 "patterns": [
204 {
205 "captures": {
206 "1": {
207 "name": "punctuation.definition.comment.js"
208 }
209 },
210 "match": "(//).*?((?=</script)|$\\n?)",
211 "name": "comment.line.double-slash.js"
212 },
213 {
214 "begin": "/\\*",
215 "captures": {
216 "0": {
217 "name": "punctuation.definition.comment.js"
218 }
219 },
220 "end": "\\*/|(?=</script)",
221 "name": "comment.block.js"
222 },
223 {
224 "include": "source.js"
225 }
226 ]
227 }
228 ]
229 },
230 {
231 "begin": "(</?)((?i:body|head|html)(?=\\s|\\\\|>))",
232 "captures": {
233 "1": {
234 "name": "punctuation.definition.tag.html"
235 },
236 "2": {
237 "name": "entity.name.tag.structure.any.html"
238 }
239 },
240 "end": "(>)",
241 "name": "meta.tag.structure.any.html",
242 "patterns": [
243 {
244 "include": "#tag-stuff"
245 }
246 ]
247 },
248 {
249 "begin": "(</?)((?i:address|blockquote|dd|div|section|article|aside|header|footer|nav|menu|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|pre)(?=\\s|\\\\|>))",
250 "beginCaptures": {
251 "1": {
252 "name": "punctuation.definition.tag.begin.html"
253 },
254 "2": {
255 "name": "entity.name.tag.block.any.html"
256 }
257 },
258 "end": "(>)",
259 "endCaptures": {
260 "1": {
261 "name": "punctuation.definition.tag.end.html"
262 }
263 },
264 "name": "meta.tag.block.any.html",
265 "patterns": [
266 {
267 "include": "#tag-stuff"
268 }
269 ]
270 },
271 {
272 "begin": "(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?=\\s|\\\\|>))",
273 "beginCaptures": {
274 "1": {
275 "name": "punctuation.definition.tag.begin.html"
276 },
277 "2": {
278 "name": "entity.name.tag.inline.any.html"
279 }
280 },
281 "end": "((?: ?/)?>)",
282 "endCaptures": {
283 "1": {
284 "name": "punctuation.definition.tag.end.html"
285 }
286 },
287 "name": "meta.tag.inline.any.html",
288 "patterns": [
289 {
290 "include": "#tag-stuff"
291 }
292 ]
293 },
294 {
295 "begin": "(</?)([a-zA-Z0-9:\\-]+)",
296 "beginCaptures": {
297 "1": {
298 "name": "punctuation.definition.tag.begin.html"
299 },
300 "2": {
301 "name": "entity.name.tag.other.html"
302 }
303 },
304 "end": "(>)",
305 "endCaptures": {
306 "1": {
307 "name": "punctuation.definition.tag.end.html"
308 }
309 },
310 "name": "meta.tag.other.html",
311 "patterns": [
312 {
313 "include": "#tag-stuff"
314 }
315 ]
316 },
317 {
318 "include": "#entities"
319 },
320 {
321 "match": "<>",
322 "name": "invalid.illegal.incomplete.html"
323 }
324 ],
325 "repository": {
326 "embedded-code": {
327 "patterns": [
328 {
329 "include": "#smarty"
330 },
331 {
332 "include": "#python"
333 }
334 ]
335 },
336 "entities": {
337 "patterns": [
338 {
339 "captures": {
340 "1": {
341 "name": "punctuation.definition.entity.html"
342 },
343 "3": {
344 "name": "punctuation.definition.entity.html"
345 }
346 },
347 "match": "(&)([a-zA-Z0-9]+|#[0-9]+|#[xX][0-9a-fA-F]+)(;)",
348 "name": "constant.character.entity.html"
349 },
350 {
351 "match": "&",
352 "name": "invalid.illegal.bad-ampersand.html"
353 }
354 ]
355 },
356 "python": {
357 "begin": "(?:^\\s*)<\\?python(?!.*\\?>)",
358 "end": "\\?>(?:\\s*$\\n)?",
359 "contentName": "source.python.embedded.html",
360 "patterns": [
361 {
362 "include": "source.python"
363 }
364 ]
365 },
366 "smarty": {
367 "patterns": [
368 {
369 "begin": "(\\{(literal)\\})",
370 "captures": {
371 "1": {
372 "name": "source.smarty.embedded.html"
373 },
374 "2": {
375 "name": "support.function.built-in.smarty"
376 }
377 },
378 "end": "(\\{/(literal)\\})"
379 },
380 {
381 "begin": "{{|{",
382 "disabled": 1,
383 "end": "}}|}",
384 "contentName": "source.smarty.embedded.html",
385 "patterns": [
386 {
387 "include": "source.smarty"
388 }
389 ]
390 }
391 ]
392 },
393 "string-double-quoted": {
394 "begin": "\"",
395 "beginCaptures": {
396 "0": {
397 "name": "punctuation.definition.string.begin.html"
398 }
399 },
400 "end": "\"",
401 "endCaptures": {
402 "0": {
403 "name": "punctuation.definition.string.end.html"
404 }
405 },
406 "name": "string.quoted.double.html",
407 "patterns": [
408 {
409 "include": "#embedded-code"
410 },
411 {
412 "include": "#entities"
413 }
414 ]
415 },
416 "string-single-quoted": {
417 "begin": "'",
418 "beginCaptures": {
419 "0": {
420 "name": "punctuation.definition.string.begin.html"
421 }
422 },
423 "end": "'",
424 "endCaptures": {
425 "0": {
426 "name": "punctuation.definition.string.end.html"
427 }
428 },
429 "name": "string.quoted.single.html",
430 "patterns": [
431 {
432 "include": "#embedded-code"
433 },
434 {
435 "include": "#entities"
436 }
437 ]
438 },
439 "tag-generic-attribute": {
440 "match": "(?<=[^=])\\b([a-zA-Z0-9:-]+)",
441 "name": "entity.other.attribute-name.html"
442 },
443 "tag-id-attribute": {
444 "begin": "\\b(id)\\b\\s*(=)",
445 "captures": {
446 "1": {
447 "name": "entity.other.attribute-name.id.html"
448 },
449 "2": {
450 "name": "punctuation.separator.key-value.html"
451 }
452 },
453 "end": "(?!\\G)(?<='|\"|[^\\s<>/])",
454 "name": "meta.attribute-with-value.id.html",
455 "patterns": [
456 {
457 "begin": "\"",
458 "beginCaptures": {
459 "0": {
460 "name": "punctuation.definition.string.begin.html"
461 }
462 },
463 "contentName": "meta.toc-list.id.html",
464 "end": "\"",
465 "endCaptures": {
466 "0": {
467 "name": "punctuation.definition.string.end.html"
468 }
469 },
470 "name": "string.quoted.double.html",
471 "patterns": [
472 {
473 "include": "#embedded-code"
474 },
475 {
476 "include": "#entities"
477 }
478 ]
479 },
480 {
481 "begin": "'",
482 "beginCaptures": {
483 "0": {
484 "name": "punctuation.definition.string.begin.html"
485 }
486 },
487 "contentName": "meta.toc-list.id.html",
488 "end": "'",
489 "endCaptures": {
490 "0": {
491 "name": "punctuation.definition.string.end.html"
492 }
493 },
494 "name": "string.quoted.single.html",
495 "patterns": [
496 {
497 "include": "#embedded-code"
498 },
499 {
500 "include": "#entities"
501 }
502 ]
503 },
504 {
505 "captures": {
506 "0": {
507 "name": "meta.toc-list.id.html"
508 }
509 },
510 "match": "(?<==)(?:[^\\s<>/'\"]|/(?!>))+",
511 "name": "string.unquoted.html"
512 }
513 ]
514 },
515 "tag-stuff": {
516 "patterns": [
517 {
518 "include": "#tag-id-attribute"
519 },
520 {
521 "include": "#tag-generic-attribute"
522 },
523 {
524 "include": "#string-double-quoted"
525 },
526 {
527 "include": "#string-single-quoted"
528 },
529 {
530 "include": "#embedded-code"
531 },
532 {
533 "include": "#unquoted-attribute"
534 }
535 ]
536 },
537 "unquoted-attribute": {
538 "match": "(?<==)(?:[^\\s<>/'\"]|/(?!>))+",
539 "name": "string.unquoted.html"
540 }
541 },
542 "scopeName": "text.html.basic",
543 "uuid": "17994EC8-6B1D-11D9-AC3A-000D93589AF6",
544 "version": "https://github.com/textmate/html.tmbundle/commit/9f812c89f4990a98391701caa77824c94860538f"
545}