mirror of
https://github.com/sharkdp/bat
synced 2024-11-27 14:20:45 +00:00
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.
This commit is contained in:
parent
6eb2cc9cac
commit
dde770aa21
2 changed files with 8 additions and 0 deletions
|
@ -26,6 +26,10 @@
|
|||
[38;2;248;248;242m [0m[38;2;248;248;242monMount[0m[38;2;255;255;255m([0m[38;2;255;255;255mhashchange[0m[38;2;255;255;255m)[0m[38;2;248;248;242m;[0m
|
||||
[38;2;255;255;255m</[0m[3;38;2;249;38;114mscript[0m[38;2;255;255;255m>[0m
|
||||
|
||||
[38;2;255;255;255m<[0m[3;38;2;249;38;114mscript[0m[38;2;248;248;242m [0m[38;2;166;226;46mtype[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mtext/livescript[0m[38;2;255;255;255m"[0m[38;2;255;255;255m>[0m
|
||||
[38;2;248;248;242m [0m[38;2;246;170;17m// This block is a regression test for a bat panic when a LiveScript syntax definition is missing[0m
|
||||
[38;2;255;255;255m</[0m[3;38;2;249;38;114mscript[0m[38;2;255;255;255m>[0m
|
||||
|
||||
[38;2;255;255;255m<[0m[38;2;249;38;114mstyle[0m[38;2;255;255;255m>[0m
|
||||
[38;2;248;248;242m [0m[38;2;249;38;114mmain[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
|
||||
[38;2;248;248;242m [0m[3;38;2;102;217;239mposition[0m[38;2;255;255;255m:[0m[38;2;248;248;242m [0m[38;2;102;217;239mrelative[0m[38;2;255;255;255m;[0m
|
||||
|
|
4
tests/syntax-tests/source/Svelte/App.svelte
vendored
4
tests/syntax-tests/source/Svelte/App.svelte
vendored
|
@ -26,6 +26,10 @@
|
|||
onMount(hashchange);
|
||||
</script>
|
||||
|
||||
<script type="text/livescript">
|
||||
// This block is a regression test for a bat panic when a LiveScript syntax definition is missing
|
||||
</script>
|
||||
|
||||
<style>
|
||||
main {
|
||||
position: relative;
|
||||
|
|
Loading…
Reference in a new issue