From dde770aa210ab9eeb5469e152cec6fcaab374d84 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Sat, 23 Oct 2021 11:32:27 +0200 Subject: [PATCH] Add bat panic regression test for Svelte files with embedded LiveScript Without a LiveScript syntax present, the Svelte test will now fail with a panic. --- tests/syntax-tests/highlighted/Svelte/App.svelte | 4 ++++ tests/syntax-tests/source/Svelte/App.svelte | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tests/syntax-tests/highlighted/Svelte/App.svelte b/tests/syntax-tests/highlighted/Svelte/App.svelte index aff961d5..7a09649a 100644 --- a/tests/syntax-tests/highlighted/Svelte/App.svelte +++ b/tests/syntax-tests/highlighted/Svelte/App.svelte @@ -26,6 +26,10 @@  onMount(hashchange);  +<script type="text/livescript"> + // This block is a regression test for a bat panic when a LiveScript syntax definition is missing + + <style>  main {  position: relative; diff --git a/tests/syntax-tests/source/Svelte/App.svelte b/tests/syntax-tests/source/Svelte/App.svelte index 0ede0a00..089172c4 100644 --- a/tests/syntax-tests/source/Svelte/App.svelte +++ b/tests/syntax-tests/source/Svelte/App.svelte @@ -26,6 +26,10 @@ onMount(hashchange); + +