From db77d47d570ae999d0647cb25ea56445d433f532 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Tue, 23 Nov 2021 16:50:01 +0100 Subject: [PATCH] Support svelte files (treat as HTML) (#243, #299) --- CHANGELOG.md | 4 ++++ core/Parsing.Documents.fs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c172c5..2d4cfcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ See also [https://github.com/stkb/vscode-rewrap/releases](https://github.com/stkb/vscode-rewrap/releases) (for working links to issues) +### 1.15.4 +- Support svelte files (HTML) (#243, #299). + + ### 1.15.3 - VSCode: support untrusted workspaces (#292). - VSCode: Fix crash when a language extension provides a line- but no block comment marker. diff --git a/core/Parsing.Documents.fs b/core/Parsing.Documents.fs index 04a43a0..1ca58ba 100644 --- a/core/Parsing.Documents.fs +++ b/core/Parsing.Documents.fs @@ -154,7 +154,7 @@ let mutable languages = [ line "#" ] ) - lang "HTML" "htmlx|vue|erb" ".htm|.html|.vue" + lang "HTML" "erb|htmlx|svelte|vue" ".htm|.html|.svelte|.vue" html lang "INI" "" ".ini" ( sourceCode [ line "[#;]" ] )