evanleck / vim-svelte

Vim syntax highlighting and indentation for Svelte 3 components.
BSD 3-Clause "New" or "Revised" License
319 stars 11 forks source link

Parsing error: Unexpected token < #23

Open edyu opened 2 years ago

edyu commented 2 years ago

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.

evanleck commented 2 years ago

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

niknah commented 1 year ago

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}}