Elffuss BraidHub

kikocis/continue public

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