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

31 lines
18 KiB
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import javascript from './javascript.mjs';
import typescript from './typescript.mjs';
import coffee from './coffee.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 pug from './pug.mjs';
import markdown from './markdown.mjs';
import './html.mjs';
const lang = Object.freeze({ "displayName": "Svelte", "fileTypes": ["svelte"], "injections": { "L:(meta.script.svelte | meta.style.svelte) (meta.lang.js | meta.lang.javascript) - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.js", "end": "(?=</)", "name": "meta.embedded.block.svelte", "patterns": [{ "include": "source.js" }] }] }, "L:(meta.script.svelte | meta.style.svelte) (meta.lang.ts | meta.lang.typescript) - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.ts", "end": "(?=</)", "name": "meta.embedded.block.svelte", "patterns": [{ "include": "source.ts" }] }] }, "L:(meta.script.svelte | meta.style.svelte) meta.lang.coffee - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.coffee", "end": "(?=</)", "name": "meta.embedded.block.svelte", "patterns": [{ "include": "source.coffee" }] }] }, "L:(source.ts, source.js, source.coffee)": { "patterns": [{ "match": `(?<![_$./'"[:alnum:]])\\$(?=[_[:alpha:]][_$[:alnum:]]*)`, "name": "punctuation.definition.variable.svelte" }, { "match": `(?<![_$./'"[:alnum:]])(\\$\\$)(?=props|restProps|slots)`, "name": "punctuation.definition.variable.svelte" }] }, "L:meta.script.svelte - meta.lang - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.js", "end": "(?=</)", "name": "meta.embedded.block.svelte", "patterns": [{ "include": "source.js" }] }] }, "L:meta.style.svelte - meta.lang - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.css", "end": "(?=</)", "name": "meta.embedded.block.svelte", "patterns": [{ "include": "source.css" }] }] }, "L:meta.style.svelte meta.lang.css - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.css", "end": "(?=</)", "name": "meta.embedded.block.svelte", "patterns": [{ "include": "source.css" }] }] }, "L:meta.style.svelte meta.lang.less - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.css.less", "end": "(?=</)", "name": "meta.embedded.block.svelte", "patterns": [{ "include": "source.css.less" }] }] }, "L:meta.style.svelte meta.lang.postcss - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.css.postcss", "end": "(?=</)", "name": "meta.embedded.block.svelte", "patterns": [{ "include": "source.css.postcss" }] }] }, "L:meta.style.svelte meta.lang.sass - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.sass", "end": "(?=</)", "name": "meta.embedded.block.svelte", "patterns": [{ "include": "source.sass" }] }] }, "L:meta.style.svelte meta.lang.scss - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.css.scss", "end": "(?=</)", "name": "meta.embedded.block.svelte", "patterns": [{ "include": "source.css.scss" }] }] }, "L:meta.style.svelte meta.lang.stylus - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "source.stylus", "end": "(?=</)", "name": "meta.embedded.block.svelte", "patterns": [{ "include": "source.stylus" }] }] }, "L:meta.template.svelte - meta.lang - (meta source)": { "patterns": [{ "begin": "(?<=>)\\s", "end": "(?=</template)", "patterns": [{ "include": "#scope" }] }] }, "L:meta.template.svelte meta.lang.pug - (meta source)": { "patterns": [{ "begin": "(?<=>)(?!</)", "contentName": "text.pug", "end": "(?=</)", "name": "meta.embedded.block.svelte", "patterns": [{ "include": "text.pug" }] }] } }, "name": "svelte", "patterns": [{ "include": "#scope" }], "repository": { "attributes": { "patterns": [{ "include": "#attributes-directives" }, { "include": "#attributes-keyvalue" }, { "include": "#attributes-interpolated" }] }, "attributes-directives": { "begin": "(?<!<)(on|use|bind|transition|in|out|animate|let|class|style)(:)(?:((?:--)?[_$[:alpha:]][_\\-$[:alnum:]]*(?=\\s*=))|((?:--)?[_$[:alpha:]][_\\-$[:alnum:]]*))((\\|\\w+)*)", "beginCaptures": { "1": { "patterns": [{ "include": "#attributes-directives-keywords" }] }, "2": { "name": "punctuation.definition.keyword.svelte" }, "3": { "patterns": [{ "include": "#attributes-direc
var svelte = [
...javascript,
...typescript,
...coffee,
...stylus,
...sass,
...css,
...scss,
...less,
...postcss,
...pug,
...markdown,
lang
];
export { svelte as default };