site/node_modules/shiki/dist/langs/astro.mjs

28 lines
25 KiB
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import json from './json.mjs';
import javascript from './javascript.mjs';
import typescript from './typescript.mjs';
import stylus from './stylus.mjs';
import sass from './sass.mjs';
import css from './css.mjs';
import scss from './scss.mjs';
import less from './less.mjs';
import postcss from './postcss.mjs';
import tsx from './tsx.mjs';
const lang = Object.freeze({ "displayName": "Astro", "fileTypes": ["astro"], "injections": { "L:(meta.script.astro) (meta.lang.js | meta.lang.javascript | meta.lang.partytown | meta.lang.node) - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.js", "end": "(?=</)", "name": "meta.embedded.block.astro", "patterns": [{ "include": "source.js" }] }] }, "L:(meta.script.astro) (meta.lang.json) - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.json", "end": "(?=</)", "name": "meta.embedded.block.astro", "patterns": [{ "include": "source.json" }] }] }, "L:(meta.script.astro) (meta.lang.ts | meta.lang.typescript) - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.ts", "end": "(?=</)", "name": "meta.embedded.block.astro", "patterns": [{ "include": "source.ts" }] }] }, "L:meta.script.astro - meta.lang - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.js", "end": "(?=</)", "name": "meta.embedded.block.astro", "patterns": [{ "include": "source.js" }] }] }, "L:meta.style.astro - meta.lang - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.css", "end": "(?=</)", "name": "meta.embedded.block.astro", "patterns": [{ "include": "source.css" }] }] }, "L:meta.style.astro meta.lang.css - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.css", "end": "(?=</)", "name": "meta.embedded.block.astro", "patterns": [{ "include": "source.css" }] }] }, "L:meta.style.astro meta.lang.less - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.css.less", "end": "(?=</)", "name": "meta.embedded.block.astro", "patterns": [{ "include": "source.css.less" }] }] }, "L:meta.style.astro meta.lang.postcss - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.css.postcss", "end": "(?=</)", "name": "meta.embedded.block.astro", "patterns": [{ "include": "source.css.postcss" }] }] }, "L:meta.style.astro meta.lang.sass - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.sass", "end": "(?=</)", "name": "meta.embedded.block.astro", "patterns": [{ "include": "source.sass" }] }] }, "L:meta.style.astro meta.lang.scss - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.css.scss", "end": "(?=</)", "name": "meta.embedded.block.astro", "patterns": [{ "include": "source.css.scss" }] }] }, "L:meta.style.astro meta.lang.stylus - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.stylus", "end": "(?=</)", "name": "meta.embedded.block.astro", "patterns": [{ "include": "source.stylus" }] }] } }, "name": "astro", "patterns": [{ "include": "#scope" }, { "include": "#frontmatter" }, { "include": "#text" }], "repository": { "attribute-literal": { "begin": "(`)", "end": "\\1", "name": "string.template.astro", "patterns": [{ "include": "source.tsx#template-substitution-element" }, { "include": "source.tsx#string-character-escape" }] }, "attributes": { "patterns": [{ "include": "#attributes-events" }, { "include": "#attributes-keyvalue" }, { "include": "#attributes-interpolated" }] }, "attributes-events": { "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:-])", "beginCaptures": { "0": { "patterns": [{ "match": ".*", "name": "entity.other.attribute-name.astro" }] } }, "end": "(?=\\s*+[^=\\s])", "name": "meta.attribute.$1.astro", "patterns": [{ "begin": "
var astro = [
...json,
...javascript,
...typescript,
...stylus,
...sass,
...css,
...scss,
...less,
...postcss,
...tsx,
lang
];
export { astro as default };