on master help sign in
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.

commitdde770aa210ab9eeb5469e152cec6fcaab374d84 authorMartin Nordholts <enselic@gmail.com> dateSat 23 Oct 2021, 11:32 (5 years ago) parent6eb2cc9
2 files changed+8
tests/syntax-tests/highlighted/Svelte/App.svelte+4 tests/syntax-tests/source/Svelte/App.svelte+4
tests/syntax-tests/highlighted/Svelte/App.svelte+4
@@ -26,6 +26,10 @@
2626 onMount(hashchange);
2727</script>
2828
29+<script type="text/livescript">
30+ // This block is a regression test for a bat panic when a LiveScript syntax definition is missing
31+</script>
32+
2933<style>
3034 main {
3135 position: relative;
tests/syntax-tests/source/Svelte/App.svelte+4
@@ -26,6 +26,10 @@
2626 onMount(hashchange);
2727</script>
2828
29+<script type="text/livescript">
30+ // This block is a regression test for a bat panic when a LiveScript syntax definition is missing
31+</script>
32+
2933<style>
3034 main {
3135 position: relative;