From 1f96cf5745ada49b88f60de3f4448018f2d9dfe3 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 20 Nov 2025 00:01:34 +0800 Subject: [PATCH] Add Svelte syntax highlighting support (#1809) --- .../Syntax/Dark/Svelte.xshd | 113 ++++++++++++++++++ .../Syntax/Light/Svelte.xshd | 113 ++++++++++++++++++ 2 files changed, 226 insertions(+) create mode 100644 QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Dark/Svelte.xshd create mode 100644 QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Light/Svelte.xshd diff --git a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Dark/Svelte.xshd b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Dark/Svelte.xshd new file mode 100644 index 0000000..217c078 --- /dev/null +++ b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Dark/Svelte.xshd @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + script + style + div + span + input + button + section + article + header + footer + main + nav + aside + p + h1 + h2 + h3 + ul + li + a + img + + + bind: + on: + use: + transition: + in: + out: + animate: + class: + style: + + + export + let + const + + + + + + + + + + + + import + export + default + return + const + let + var + if + else + for + while + function + async + await + new + this + true + false + null + undefined + each + if + else + await + then + catch + + + + + + + + + + + + + + + + + + + diff --git a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Light/Svelte.xshd b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Light/Svelte.xshd new file mode 100644 index 0000000..8e08aff --- /dev/null +++ b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/Syntax/Light/Svelte.xshd @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + script + style + div + span + input + button + section + article + header + footer + main + nav + aside + p + h1 + h2 + h3 + ul + li + a + img + + + bind: + on: + use: + transition: + in: + out: + animate: + class: + style: + + + export + let + const + + + + + + + + + + + + import + export + default + return + const + let + var + if + else + for + while + function + async + await + new + this + true + false + null + undefined + each + if + else + await + then + catch + + + + + + + + + + + + + + + + + + +