aboutsummaryrefslogtreecommitdiff
path: root/packages/astro-prism/src/plugin.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro-prism/src/plugin.ts')
-rw-r--r--packages/astro-prism/src/plugin.ts8
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