diff options
author | 2024-08-08 05:12:50 -0500 | |
---|---|---|
committer | 2024-08-08 12:12:50 +0200 | |
commit | 72c7ae9901de927ae8d9d5be63cbaef4f976422c (patch) | |
tree | 6e41a6b07ad8830375ba7b0e4d924fd9449dc7ef /packages/astro-prism/src | |
parent | 85de47cd982fd13c6286bcc0be384a220996ccbd (diff) | |
download | astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.tar.gz astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.tar.zst astro-72c7ae9901de927ae8d9d5be63cbaef4f976422c.zip |
update formatter config (#11640)
* update formatter config
* format
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Diffstat (limited to 'packages/astro-prism/src')
-rw-r--r-- | packages/astro-prism/src/plugin.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/astro-prism/src/plugin.ts b/packages/astro-prism/src/plugin.ts index a50b9d7ef..057433f40 100644 --- a/packages/astro-prism/src/plugin.ts +++ b/packages/astro-prism/src/plugin.ts @@ -10,7 +10,7 @@ export function addAstro(Prism: typeof import('prismjs')) { scriptLang = 'javascript'; // eslint-disable-next-line no-console console.warn( - 'Prism TypeScript language not loaded, Astro scripts will be treated as JavaScript.' + 'Prism TypeScript language not loaded, Astro scripts will be treated as JavaScript.', ); } @@ -41,7 +41,7 @@ export function addAstro(Prism: typeof import('prismjs')) { (Prism.languages.astro as any).tag.pattern = re( /<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/ - .source + .source, ); (Prism.languages.astro as any).tag.inside['tag'].pattern = /^<\/?[^\s>/]*/; @@ -60,7 +60,7 @@ export function addAstro(Prism: typeof import('prismjs')) { inside: Prism.languages.astro, }, }, - (Prism.languages.astro as any).tag + (Prism.languages.astro as any).tag, ); Prism.languages.insertBefore( @@ -80,7 +80,7 @@ export function addAstro(Prism: typeof import('prismjs')) { alias: `language-${scriptLang}`, }, }, - (Prism.languages.astro as any).tag + (Prism.languages.astro as any).tag, ); // The following will handle plain text inside tags |