Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing error: Unexpected token < #23

Open
edyu opened this issue Jan 7, 2022 · 2 comments
Open

Parsing error: Unexpected token < #23

edyu opened this issue Jan 7, 2022 · 2 comments

Comments

@edyu
Copy link

edyu commented Jan 7, 2022

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
Copy link
Owner

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

@niknah
Copy link

niknah commented Jul 24, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants