PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.27.2
Code Block Pro – Beautiful Syntax Highlighting v1.27.2
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / build / shiki / languages / astro.tmLanguage.json

astro.tmLanguage.json in Code Block Pro – Beautiful Syntax Highlighting 1.27.2, at build/shiki/languages/astro.tmLanguage.json

774 lines 19.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "name": "astro",
3 "scopeName": "source.astro",
4 "fileTypes": ["astro"],
5 "injections": {
6 "L:(meta.script.astro) (meta.lang.json) - (meta source)": {
7 "patterns": [
8 {
9 "begin": "(?<=>)(?!</)",
10 "end": "(?=</)",
11 "name": "meta.embedded.block.astro",
12 "contentName": "source.json",
13 "patterns": [
14 {
15 "include": "source.json"
16 }
17 ]
18 }
19 ]
20 },
21 "L:(meta.script.astro) (meta.lang.js | meta.lang.javascript | meta.lang.partytown | meta.lang.node) - (meta source)": {
22 "patterns": [
23 {
24 "begin": "(?<=>)(?!</)",
25 "end": "(?=</)",
26 "name": "meta.embedded.block.astro",
27 "contentName": "source.js",
28 "patterns": [
29 {
30 "include": "source.js"
31 }
32 ]
33 }
34 ]
35 },
36 "L:(meta.script.astro) (meta.lang.ts | meta.lang.typescript) - (meta source)": {
37 "patterns": [
38 {
39 "begin": "(?<=>)(?!</)",
40 "end": "(?=</)",
41 "name": "meta.embedded.block.astro",
42 "contentName": "source.ts",
43 "patterns": [
44 {
45 "include": "source.ts"
46 }
47 ]
48 }
49 ]
50 },
51 "L:meta.script.astro - meta.lang - (meta source)": {
52 "patterns": [
53 {
54 "begin": "(?<=>)(?!</)",
55 "end": "(?=</)",
56 "name": "meta.embedded.block.astro",
57 "contentName": "source.js",
58 "patterns": [
59 {
60 "include": "source.js"
61 }
62 ]
63 }
64 ]
65 },
66 "L:meta.style.astro meta.lang.stylus - (meta source)": {
67 "patterns": [
68 {
69 "begin": "(?<=>)(?!</)",
70 "end": "(?=</)",
71 "name": "meta.embedded.block.astro",
72 "contentName": "source.stylus",
73 "patterns": [
74 {
75 "include": "source.stylus"
76 }
77 ]
78 }
79 ]
80 },
81 "L:meta.style.astro meta.lang.sass - (meta source)": {
82 "patterns": [
83 {
84 "begin": "(?<=>)(?!</)",
85 "end": "(?=</)",
86 "name": "meta.embedded.block.astro",
87 "contentName": "source.sass",
88 "patterns": [
89 {
90 "include": "source.sass"
91 }
92 ]
93 }
94 ]
95 },
96 "L:meta.style.astro meta.lang.css - (meta source)": {
97 "patterns": [
98 {
99 "begin": "(?<=>)(?!</)",
100 "end": "(?=</)",
101 "name": "meta.embedded.block.astro",
102 "contentName": "source.css",
103 "patterns": [
104 {
105 "include": "source.css"
106 }
107 ]
108 }
109 ]
110 },
111 "L:meta.style.astro meta.lang.scss - (meta source)": {
112 "patterns": [
113 {
114 "begin": "(?<=>)(?!</)",
115 "end": "(?=</)",
116 "name": "meta.embedded.block.astro",
117 "contentName": "source.css.scss",
118 "patterns": [
119 {
120 "include": "source.css.scss"
121 }
122 ]
123 }
124 ]
125 },
126 "L:meta.style.astro meta.lang.less - (meta source)": {
127 "patterns": [
128 {
129 "begin": "(?<=>)(?!</)",
130 "end": "(?=</)",
131 "name": "meta.embedded.block.astro",
132 "contentName": "source.css.less",
133 "patterns": [
134 {
135 "include": "source.css.less"
136 }
137 ]
138 }
139 ]
140 },
141 "L:meta.style.astro meta.lang.postcss - (meta source)": {
142 "patterns": [
143 {
144 "begin": "(?<=>)(?!</)",
145 "end": "(?=</)",
146 "name": "meta.embedded.block.astro",
147 "contentName": "source.css.postcss",
148 "patterns": [
149 {
150 "include": "source.css.postcss"
151 }
152 ]
153 }
154 ]
155 },
156 "L:meta.style.astro - meta.lang - (meta source)": {
157 "patterns": [
158 {
159 "begin": "(?<=>)(?!</)",
160 "end": "(?=</)",
161 "name": "meta.embedded.block.astro",
162 "contentName": "source.css",
163 "patterns": [
164 {
165 "include": "source.css"
166 }
167 ]
168 }
169 ]
170 }
171 },
172 "patterns": [
173 {
174 "include": "#scope"
175 },
176 {
177 "include": "#frontmatter"
178 }
179 ],
180 "repository": {
181 "frontmatter": {
182 "begin": "\\A(-{3})\\s*$",
183 "end": "(^|\\G)(-{3})|\\.{3}\\s*$",
184 "beginCaptures": {
185 "1": {
186 "name": "comment"
187 }
188 },
189 "endCaptures": {
190 "2": {
191 "name": "comment"
192 }
193 },
194 "contentName": "source.ts",
195 "patterns": [
196 {
197 "include": "source.ts"
198 }
199 ]
200 },
201 "scope": {
202 "patterns": [
203 {
204 "include": "#comments"
205 },
206 {
207 "include": "#tags"
208 },
209 {
210 "include": "#interpolation"
211 },
212 {
213 "begin": "(?<=>|})",
214 "end": "(?=<|{)",
215 "name": "text.astro"
216 }
217 ]
218 },
219 "comments": {
220 "begin": "<!--",
221 "end": "-->",
222 "captures": {
223 "0": {
224 "name": "punctuation.definition.comment.astro"
225 }
226 },
227 "name": "comment.block.astro",
228 "patterns": [
229 {
230 "match": "\\G-?>|<!--(?!>)|<!-(?=-->)|--!>",
231 "name": "invalid.illegal.characters-not-allowed-here.astro"
232 }
233 ]
234 },
235 "interpolation": {
236 "patterns": [
237 {
238 "begin": "\\{",
239 "end": "\\}",
240 "beginCaptures": {
241 "0": {
242 "name": "punctuation.section.embedded.begin.astro"
243 }
244 },
245 "endCaptures": {
246 "0": {
247 "name": "punctuation.section.embedded.end.astro"
248 }
249 },
250 "contentName": "meta.embedded.expression.astro source.tsx",
251 "patterns": [
252 {
253 "begin": "\\G\\s*(?={)",
254 "end": "(?<=})",
255 "patterns": [
256 {
257 "include": "source.tsx#object-literal"
258 }
259 ]
260 },
261 {
262 "include": "source.tsx"
263 }
264 ]
265 }
266 ]
267 },
268 "attributes": {
269 "patterns": [
270 {
271 "include": "#attributes-events"
272 },
273 {
274 "include": "#attributes-keyvalue"
275 },
276 {
277 "include": "#attributes-interpolated"
278 }
279 ]
280 },
281 "attributes-events": {
282 "begin": "(on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o(nline|ffline)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d(data|metadata)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur)))(?![\\\\w:-])",
283 "beginCaptures": {
284 "0": {
285 "patterns": [
286 {
287 "match": ".*",
288 "name": "entity.other.attribute-name.astro"
289 }
290 ]
291 }
292 },
293 "end": "(?=\\s*+[^=\\s])",
294 "name": "meta.attribute.$1.astro",
295 "patterns": [
296 {
297 "begin": "=",
298 "beginCaptures": {
299 "0": {
300 "name": "punctuation.separator.key-value.astro"
301 }
302 },
303 "end": "(?<=[^\\s=])(?!\\s*=)|(?=/?>)",
304 "patterns": [
305 {
306 "begin": "(?=[^\\s=<>`/]|/(?!>))",
307 "end": "(?!\\G)",
308 "name": "meta.embedded.line.js",
309 "patterns": [
310 {
311 "match": "(([^\\s\\\"'=<>`/]|/(?!>))+)",
312 "name": "string.unquoted.astro",
313 "captures": {
314 "0": {
315 "name": "source.js"
316 },
317 "1": {
318 "patterns": [
319 {
320 "include": "source.js"
321 }
322 ]
323 }
324 }
325 },
326 {
327 "begin": "([\"])",
328 "end": "\\1",
329 "beginCaptures": {
330 "0": {
331 "name": "punctuation.definition.string.begin.astro"
332 }
333 },
334 "endCaptures": {
335 "0": {
336 "name": "punctuation.definition.string.end.astro"
337 }
338 },
339 "name": "string.quoted.astro",
340 "patterns": [
341 {
342 "match": "([^\\n\\\"/]|/(?![/*]))+",
343 "captures": {
344 "0": {
345 "patterns": [
346 {
347 "include": "source.js"
348 }
349 ]
350 }
351 }
352 },
353 {
354 "begin": "//",
355 "beginCaptures": {
356 "0": {
357 "name": "punctuation.definition.comment.js"
358 }
359 },
360 "end": "(?=\\\")|\\n",
361 "name": "comment.line.double-slash.js"
362 },
363 {
364 "begin": "/\\*",
365 "beginCaptures": {
366 "0": {
367 "name": "punctuation.definition.comment.begin.js"
368 }
369 },
370 "end": "(?=\\\")|\\*/",
371 "endCaptures": {
372 "0": {
373 "name": "punctuation.definition.comment.end.js"
374 }
375 },
376 "name": "comment.block.js"
377 }
378 ]
379 },
380 {
381 "begin": "(['])",
382 "end": "\\1",
383 "beginCaptures": {
384 "0": {
385 "name": "punctuation.definition.string.begin.astro"
386 }
387 },
388 "endCaptures": {
389 "0": {
390 "name": "punctuation.definition.string.end.astro"
391 }
392 },
393 "name": "string.quoted.astro",
394 "patterns": [
395 {
396 "match": "([^\\n\\'/]|/(?![/*]))+",
397 "captures": {
398 "0": {
399 "patterns": [
400 {
401 "include": "source.js"
402 }
403 ]
404 }
405 }
406 },
407 {
408 "begin": "//",
409 "beginCaptures": {
410 "0": {
411 "name": "punctuation.definition.comment.js"
412 }
413 },
414 "end": "(?=\\')|\\n",
415 "name": "comment.line.double-slash.js"
416 },
417 {
418 "begin": "/\\*",
419 "beginCaptures": {
420 "0": {
421 "name": "punctuation.definition.comment.begin.js"
422 }
423 },
424 "end": "(?=\\')|\\*/",
425 "endCaptures": {
426 "0": {
427 "name": "punctuation.definition.comment.end.js"
428 }
429 },
430 "name": "comment.block.js"
431 }
432 ]
433 }
434 ]
435 }
436 ]
437 }
438 ]
439 },
440 "attributes-interpolated": {
441 "begin": "(?<!:|=)\\s*({)",
442 "end": "(\\})",
443 "contentName": "meta.embedded.expression.astro source.tsx",
444 "patterns": [
445 {
446 "include": "source.tsx"
447 }
448 ]
449 },
450 "attributes-keyvalue": {
451 "begin": "([_@$[:alpha:]][:._\\-$[:alnum:]]*)",
452 "beginCaptures": {
453 "0": {
454 "patterns": [
455 {
456 "match": ".*",
457 "name": "entity.other.attribute-name.astro"
458 }
459 ]
460 }
461 },
462 "end": "(?=\\s*+[^=\\s])",
463 "name": "meta.attribute.$1.astro",
464 "patterns": [
465 {
466 "begin": "=",
467 "beginCaptures": {
468 "0": {
469 "name": "punctuation.separator.key-value.astro"
470 }
471 },
472 "end": "(?<=[^\\s=])(?!\\s*=)|(?=/?>)",
473 "patterns": [
474 {
475 "include": "#attributes-value"
476 }
477 ]
478 }
479 ]
480 },
481 "attributes-value": {
482 "patterns": [
483 {
484 "include": "#interpolation"
485 },
486 {
487 "match": "([^\\s\"'=<>`/]|/(?!>))+",
488 "name": "string.unquoted.astro"
489 },
490 {
491 "begin": "(['\"])",
492 "end": "\\1",
493 "beginCaptures": {
494 "0": {
495 "name": "punctuation.definition.string.begin.astro"
496 }
497 },
498 "endCaptures": {
499 "0": {
500 "name": "punctuation.definition.string.end.astro"
501 }
502 },
503 "name": "string.quoted.astro"
504 },
505 {
506 "begin": "(`)",
507 "end": "\\1",
508 "name": "string.template.astro",
509 "patterns": [
510 {
511 "include": "source.tsx#template-substitution-element"
512 }
513 ]
514 }
515 ]
516 },
517 "tags": {
518 "patterns": [
519 {
520 "include": "#tags-raw"
521 },
522 {
523 "include": "#tags-lang"
524 },
525 {
526 "include": "#tags-void"
527 },
528 {
529 "include": "#tags-general-end"
530 },
531 {
532 "include": "#tags-general-start"
533 }
534 ]
535 },
536 "tags-name": {
537 "patterns": [
538 {
539 "match": "[A-Z][a-zA-Z0-9_]*",
540 "name": "support.class.component.astro"
541 },
542 {
543 "match": "[a-z][\\w0-9:]*-[\\w0-9:-]*",
544 "name": "meta.tag.custom.astro entity.name.tag.astro"
545 },
546 {
547 "match": "[a-z][\\w0-9:-]*",
548 "name": "entity.name.tag.astro"
549 }
550 ]
551 },
552 "tags-start-attributes": {
553 "begin": "\\G",
554 "end": "(?=/?>)",
555 "name": "meta.tag.start.astro",
556 "patterns": [
557 {
558 "include": "#attributes"
559 }
560 ]
561 },
562 "tags-lang-start-attributes": {
563 "begin": "\\G",
564 "end": "(?=/>)|>",
565 "endCaptures": {
566 "0": {
567 "name": "punctuation.definition.tag.end.astro"
568 }
569 },
570 "name": "meta.tag.start.astro",
571 "patterns": [
572 {
573 "include": "#attributes"
574 }
575 ]
576 },
577 "tags-start-node": {
578 "match": "(<)([^/\\s>/]*)",
579 "captures": {
580 "1": {
581 "name": "punctuation.definition.tag.begin.astro"
582 },
583 "2": {
584 "patterns": [
585 {
586 "include": "#tags-name"
587 }
588 ]
589 }
590 },
591 "name": "meta.tag.start.astro"
592 },
593 "tags-end-node": {
594 "match": "(</)(.*?)\\s*(>)|(/>)",
595 "captures": {
596 "1": {
597 "name": "meta.tag.end.astro punctuation.definition.tag.begin.astro"
598 },
599 "2": {
600 "name": "meta.tag.end.astro",
601 "patterns": [
602 {
603 "include": "#tags-name"
604 }
605 ]
606 },
607 "3": {
608 "name": "meta.tag.end.astro punctuation.definition.tag.end.astro"
609 },
610 "4": {
611 "name": "meta.tag.start.astro punctuation.definition.tag.end.astro"
612 }
613 }
614 },
615 "tags-raw": {
616 "begin": "<([^/?!\\s<>]+)(?=[^>]+is:raw).*?",
617 "beginCaptures": {
618 "0": {
619 "patterns": [
620 {
621 "include": "#tags-start-node"
622 }
623 ]
624 }
625 },
626 "end": "</\\1\\s*>|/>",
627 "endCaptures": {
628 "0": {
629 "patterns": [
630 {
631 "include": "#tags-end-node"
632 }
633 ]
634 }
635 },
636 "name": "meta.scope.tag.$1.astro meta.raw.astro",
637 "contentName": "source.unknown",
638 "patterns": [
639 {
640 "include": "#tags-lang-start-attributes"
641 }
642 ]
643 },
644 "tags-lang": {
645 "begin": "<(script|style)",
646 "end": "</\\1\\s*>|/>",
647 "beginCaptures": {
648 "0": {
649 "patterns": [
650 {
651 "include": "#tags-start-node"
652 }
653 ]
654 }
655 },
656 "endCaptures": {
657 "0": {
658 "patterns": [
659 {
660 "include": "#tags-end-node"
661 }
662 ]
663 }
664 },
665 "name": "meta.scope.tag.$1.astro meta.$1.astro",
666 "patterns": [
667 {
668 "begin": "\\G(?=\\s*[^>]*?(type|lang)\\s*=\\s*(['\"]|)(?:text\\/)?(application\\/ld\\+json)\\2)",
669 "end": "(?=</|/>)",
670 "name": "meta.lang.json.astro",
671 "patterns": [
672 {
673 "include": "#tags-lang-start-attributes"
674 }
675 ]
676 },
677 {
678 "begin": "\\G(?=\\s*[^>]*?(type|lang)\\s*=\\s*(['\"]|)(module)\\2)",
679 "end": "(?=</|/>)",
680 "name": "meta.lang.javascript.astro",
681 "patterns": [
682 {
683 "include": "#tags-lang-start-attributes"
684 }
685 ]
686 },
687 {
688 "begin": "\\G(?=\\s*[^>]*?(type|lang)\\s*=\\s*(['\"]|)(?:text/|application/)?([\\w\\/+]+)\\2)",
689 "end": "(?=</|/>)",
690 "name": "meta.lang.$3.astro",
691 "patterns": [
692 {
693 "include": "#tags-lang-start-attributes"
694 }
695 ]
696 },
697 {
698 "include": "#tags-lang-start-attributes"
699 }
700 ]
701 },
702 "tags-void": {
703 "begin": "(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\s|/?>)",
704 "beginCaptures": {
705 "1": {
706 "name": "punctuation.definition.tag.begin.astro"
707 },
708 "2": {
709 "name": "entity.name.tag.astro"
710 }
711 },
712 "end": "/?>",
713 "endCaptures": {
714 "0": {
715 "name": "punctuation.definition.tag.begin.astro"
716 }
717 },
718 "name": "meta.tag.void.astro",
719 "patterns": [
720 {
721 "include": "#attributes"
722 }
723 ]
724 },
725 "tags-general-start": {
726 "begin": "(<)([^/\\s>/]*)",
727 "end": "(/?>)",
728 "beginCaptures": {
729 "0": {
730 "patterns": [
731 {
732 "include": "#tags-start-node"
733 }
734 ]
735 }
736 },
737 "endCaptures": {
738 "1": {
739 "name": "meta.tag.start.astro punctuation.definition.tag.end.astro"
740 }
741 },
742 "name": "meta.scope.tag.$2.astro",
743 "patterns": [
744 {
745 "include": "#tags-start-attributes"
746 }
747 ]
748 },
749 "tags-general-end": {
750 "begin": "(</)([^/\\s>]*)",
751 "end": "(>)",
752 "beginCaptures": {
753 "1": {
754 "name": "meta.tag.end.astro punctuation.definition.tag.begin.astro"
755 },
756 "2": {
757 "name": "meta.tag.end.astro",
758 "patterns": [
759 {
760 "include": "#tags-name"
761 }
762 ]
763 }
764 },
765 "endCaptures": {
766 "1": {
767 "name": "meta.tag.end.astro punctuation.definition.tag.end.astro"
768 }
769 },
770 "name": "meta.scope.tag.$2.astro"
771 }
772 }
773 }
774