vim-svelte icon indicating copy to clipboard operation
vim-svelte copied to clipboard

Parsing error: Unexpected token <

Open edyu opened this issue 3 years ago • 2 comments

Not sure whether it's a configuration error or something else but I kept on getting Parsing error: Unexpected token < when I open up any svelte file that starts with <script>. This is on neovim 0.6 and I do see the filetype is set to svelte already.

edyu avatar Jan 07 '22 19:01 edyu

Do you have an example file you'd be comfortable sharing?

evanleck avatar Jan 11 '22 18:01 evanleck

I got that error with every html tag. If you have ALE, it treats svelte files as javascript. It went away when I disabled ALE with...

let g:ale_pattern_options = {'\.svelte$': {'ale_enabled': 0}}

niknah avatar Jul 24 '23 06:07 niknah