{"name":"Astro","scopeName":"source.astro","patterns":[{"include":"#scope"},{"include":"#frontmatter"}],"repository":{"attributes":{"patterns":[{"include":"#attributes-events"},{"include":"#attributes-keyvalue"},{"include":"#attributes-interpolated"}]},"attributes-events":{"name":"meta.attribute.$1.astro","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:-])","end":"(?=\\s*+[^=\\s])","patterns":[{"begin":"=","end":"(?\u003c=[^\\s=])(?!\\s*=)|(?=/?\u003e)","patterns":[{"name":"meta.embedded.line.js","begin":"(?=[^\\s=\u003c\u003e`/]|/(?!\u003e))","end":"(?!\\G)","patterns":[{"name":"string.unquoted.astro","match":"(([^\\s\\\"'=\u003c\u003e`/]|/(?!\u003e))+)","captures":{"0":{"name":"source.js"},"1":{"patterns":[{"include":"source.js"}]}}},{"name":"string.quoted.astro","begin":"(['\"])","end":"\\1","patterns":[{"match":"([^\\n\\\"/]|/(?![/*]))+","captures":{"0":{"patterns":[{"include":"source.js"}]}}},{"name":"comment.line.double-slash.js","begin":"//","end":"(?=\\\")|\\n","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}}},{"name":"comment.block.js","begin":"/\\*","end":"(?=\\\")|\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.js"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.astro"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.astro"}}}]}],"beginCaptures":{"0":{"name":"punctuation.separator.key-value.astro"}}}],"beginCaptures":{"0":{"patterns":[{"name":"entity.other.attribute-name.astro","match":".*"}]}}},"attributes-interpolated":{"contentName":"meta.embedded.expression.astro source.tsx","begin":"(?\u003c!:|=)\\s*({)","end":"(\\})","patterns":[{"include":"source.tsx"}]},"attributes-keyvalue":{"name":"meta.attribute.$1.astro","begin":"([_@$[:alpha:]][:._\\-$[:alnum:]]*)","end":"(?=\\s*+[^=\\s])","patterns":[{"begin":"=","end":"(?\u003c=[^\\s=])(?!\\s*=)|(?=/?\u003e)","patterns":[{"include":"#attributes-value"}],"beginCaptures":{"0":{"name":"punctuation.separator.key-value.astro"}}}],"beginCaptures":{"0":{"patterns":[{"name":"entity.other.attribute-name.astro","match":".*"}]}}},"attributes-value":{"patterns":[{"include":"#interpolation"},{"name":"string.unquoted.astro","match":"([^\\s\"'=\u003c\u003e`/]|/(?!\u003e))+"},{"name":"string.quoted.astro","begin":"(['\"])","end":"\\1","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.astro"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.astro"}}},{"name":"string.template.astro","begin":"(`)","end":"\\1","patterns":[{"include":"source.tsx#template-substitution-element"}]}]},"comments":{"name":"comment.block.astro","begin":"\u003c!--","end":"--\u003e","patterns":[{"name":"invalid.illegal.characters-not-allowed-here.astro","match":"\\G-?\u003e|\u003c!--(?!\u003e)|\u003c!-(?=--\u003e)|--!\u003e"}],"captures":{"0":{"name":"punctuation.definition.comment.astro"}}},"frontmatter":{"contentName":"source.ts","begin":"\\A(-{3})\\s*$","end":"(^|\\G)(-{3})|\\.{3}\\s*$","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"comment"}},"endCaptures":{"2":{"name":"comment"}}},"interpolation":{"patterns":[{"contentName":"meta.embedded.expression.astro source.tsx","begin":"\\{","end":"\\}","patterns":[{"begin":"\\G\\s*(?={)","end":"(?\u003c=})","patterns":[{"include":"source.tsx#object-literal"}]},{"include":"source.tsx"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.astro"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.astro"}}}]},"scope":{"patterns":[{"include":"#comments"},{"include":"#tags"},{"include":"#interpolation"},{"name":"text.astro","begin":"(?\u003c=\u003e|})","end":"(?=\u003c|{)"}]},"tags":{"patterns":[{"include":"#tags-raw"},{"include":"#tags-lang"},{"include":"#tags-void"},{"include":"#tags-general-end"},{"include":"#tags-general-start"}]},"tags-end-node":{"match":"(\u003c/)(.*?)\\s*(\u003e)|(/\u003e)","captures":{"1":{"name":"meta.tag.end.astro punctuation.definition.tag.begin.astro"},"2":{"name":"meta.tag.end.astro","patterns":[{"include":"#tags-name"}]},"3":{"name":"meta.tag.end.astro punctuation.definition.tag.end.astro"},"4":{"name":"meta.tag.start.astro punctuation.definition.tag.end.astro"}}},"tags-general-end":{"name":"meta.scope.tag.$2.astro","begin":"(\u003c/)([^/\\s\u003e]*)","end":"(\u003e)","beginCaptures":{"1":{"name":"meta.tag.end.astro punctuation.definition.tag.begin.astro"},"2":{"name":"meta.tag.end.astro","patterns":[{"include":"#tags-name"}]}},"endCaptures":{"1":{"name":"meta.tag.end.astro punctuation.definition.tag.end.astro"}}},"tags-general-start":{"name":"meta.scope.tag.$2.astro","begin":"(\u003c)([^/\\s\u003e/]*)","end":"(/?\u003e)","patterns":[{"include":"#tags-start-attributes"}],"beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"endCaptures":{"1":{"name":"meta.tag.start.astro punctuation.definition.tag.end.astro"}}},"tags-lang":{"name":"meta.scope.tag.$1.astro meta.$1.astro","begin":"\u003c(script|style)","end":"\u003c/\\1\\s*\u003e|/\u003e","patterns":[{"name":"meta.lang.json.astro","begin":"\\G(?=\\s*[^\u003e]*?(type|lang)\\s*=\\s*(['\"]|)(?:text\\/)?(application\\/ld\\+json)\\2)","end":"(?=\u003c/|/\u003e)","patterns":[{"include":"#tags-lang-start-attributes"}]},{"name":"meta.lang.javascript.astro","begin":"\\G(?=\\s*[^\u003e]*?(type|lang)\\s*=\\s*(['\"]|)(module)\\2)","end":"(?=\u003c/|/\u003e)","patterns":[{"include":"#tags-lang-start-attributes"}]},{"name":"meta.lang.$3.astro","begin":"\\G(?=\\s*[^\u003e]*?(type|lang)\\s*=\\s*(['\"]|)(?:text/|application/)?([\\w\\/+]+)\\2)","end":"(?=\u003c/|/\u003e)","patterns":[{"include":"#tags-lang-start-attributes"}]},{"include":"#tags-lang-start-attributes"}],"beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}}},"tags-lang-start-attributes":{"name":"meta.tag.start.astro","begin":"\\G","end":"(?=/\u003e)|\u003e","patterns":[{"include":"#attributes"}],"endCaptures":{"0":{"name":"punctuation.definition.tag.end.astro"}}},"tags-name":{"patterns":[{"name":"support.class.component.astro","match":"[A-Z][a-zA-Z0-9_]*"},{"name":"meta.tag.custom.astro entity.name.tag.astro","match":"[a-z][\\w0-9:]*-[\\w0-9:-]*"},{"name":"entity.name.tag.astro","match":"[a-z][\\w0-9:-]*"}]},"tags-raw":{"name":"meta.scope.tag.$1.astro meta.raw.astro","contentName":"source.unknown","begin":"\u003c([^/?!\\s\u003c\u003e]+)(?=[^\u003e]+is:raw).*?","end":"\u003c/\\1\\s*\u003e|/\u003e","patterns":[{"include":"#tags-lang-start-attributes"}],"beginCaptures":{"0":{"patterns":[{"include":"#tags-start-node"}]}},"endCaptures":{"0":{"patterns":[{"include":"#tags-end-node"}]}}},"tags-start-attributes":{"name":"meta.tag.start.astro","begin":"\\G","end":"(?=/?\u003e)","patterns":[{"include":"#attributes"}]},"tags-start-node":{"name":"meta.tag.start.astro","match":"(\u003c)([^/\\s\u003e/]*)","captures":{"1":{"name":"punctuation.definition.tag.begin.astro"},"2":{"patterns":[{"include":"#tags-name"}]}}},"tags-void":{"name":"meta.tag.void.astro","begin":"(\u003c)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\s|/?\u003e)","end":"/?\u003e","patterns":[{"include":"#attributes"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.astro"},"2":{"name":"entity.name.tag.astro"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.begin.astro"}}}},"injections":{"L:(meta.script.astro) (meta.lang.js | meta.lang.javascript | meta.lang.partytown | meta.lang.node) - (meta source)":{"patterns":[{"name":"meta.embedded.block.astro","contentName":"source.js","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.js"}]}]},"L:(meta.script.astro) (meta.lang.json) - (meta source)":{"patterns":[{"name":"meta.embedded.block.astro","contentName":"source.json","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.json"}]}]},"L:(meta.script.astro) (meta.lang.ts | meta.lang.typescript) - (meta source)":{"patterns":[{"name":"meta.embedded.block.astro","contentName":"source.ts","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.ts"}]}]},"L:meta.script.astro - meta.lang - (meta source)":{"patterns":[{"name":"meta.embedded.block.astro","contentName":"source.js","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.js"}]}]},"L:meta.style.astro - meta.lang - (meta source)":{"patterns":[{"name":"meta.embedded.block.astro","contentName":"source.css","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.css"}]}]},"L:meta.style.astro meta.lang.css - (meta source)":{"patterns":[{"name":"meta.embedded.block.astro","contentName":"source.css","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.css"}]}]},"L:meta.style.astro meta.lang.less - (meta source)":{"patterns":[{"name":"meta.embedded.block.astro","contentName":"source.css.less","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.css.less"}]}]},"L:meta.style.astro meta.lang.postcss - (meta source)":{"patterns":[{"name":"meta.embedded.block.astro","contentName":"source.css.postcss","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{}]}]},"L:meta.style.astro meta.lang.sass - (meta source)":{"patterns":[{"name":"meta.embedded.block.astro","contentName":"source.sass","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.sass"}]}]},"L:meta.style.astro meta.lang.scss - (meta source)":{"patterns":[{"name":"meta.embedded.block.astro","contentName":"source.css.scss","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.css.scss"}]}]},"L:meta.style.astro meta.lang.stylus - (meta source)":{"patterns":[{"name":"meta.embedded.block.astro","contentName":"source.stylus","begin":"(?\u003c=\u003e)(?!\u003c/)","end":"(?=\u003c/)","patterns":[{"include":"source.stylus"}]}]}}}