diff --git a/packages/svelte-vscode/package.json b/packages/svelte-vscode/package.json index 1acb657dc..c04417bdc 100644 --- a/packages/svelte-vscode/package.json +++ b/packages/svelte-vscode/package.json @@ -474,6 +474,20 @@ "meta.embedded.block.svelte": "svelte" } }, + { + "scopeName": "markdown.svelte.codeblock.script", + "path": "./syntaxes/markdown-svelte-js.json", + "injectTo": [ + "text.html.markdown" + ] + }, + { + "scopeName": "markdown.svelte.codeblock.style", + "path": "./syntaxes/markdown-svelte-css.json", + "injectTo": [ + "text.html.markdown" + ] + }, { "scopeName": "source.css.postcss", "path": "./syntaxes/postcss.json", diff --git a/packages/svelte-vscode/syntaxes/markdown-svelte-css.json b/packages/svelte-vscode/syntaxes/markdown-svelte-css.json new file mode 100644 index 000000000..4ec9b340a --- /dev/null +++ b/packages/svelte-vscode/syntaxes/markdown-svelte-css.json @@ -0,0 +1,23 @@ +{ + "scopeName": "markdown.svelte.codeblock.style", + "fileTypes": [], + "injectionSelector": "L:meta.style.svelte", + "patterns": [ + { + "include": "#svelte-script-css" + } + ], + "repository": { + "svelte-script-css": { + "begin": "(?<=style.*>)(?!)(?!