language-tools: Unexpected token. Did you mean `{'>'}` or `>`?
Describe the bug
On a perfectly good app.svelte
file I’m getting the above.
System (please complete the following information):
- OS: Windows
- IDE: VSCode
- Plugin/Package: Svelte Beta
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 50 (30 by maintainers)
Commits related to this issue
- (fix) fix quote addition End of attr and attrVal are the same even if they have quotes surrounding it -> needs an extra check for "last character is a quote" Fixes #143 — committed to dummdidumm/language-tools by deleted user 4 years ago
- (fix) fix quote addition (#181) End of attr and attrVal are the same even if they have quotes surrounding it -> needs an extra check for "last character is a quote" Fixes #143 — committed to sveltejs/language-tools by dummdidumm 4 years ago
- (fix) deal with multiple script tags All script tags, no matter at what level, are listed within the root children. To get the top level scripts, filter out all those that are part of children's chil... — committed to dummdidumm/language-tools by deleted user 4 years ago
- (fix) deal with multiple script tags (#193) All script tags, no matter at what level, are listed within the root children. To get the top level scripts, filter out all those that are part of childre... — committed to sveltejs/language-tools by dummdidumm 4 years ago
- (fix) add tag name Else script is not identified as such later #143 — committed to sveltejs/language-tools by dummdidumm 4 years ago
- (fix) ignore script/styles inside comments #143 — committed to dummdidumm/language-tools by deleted user 4 years ago
- (fix) ignore script/styles inside comments (#460) #143 — committed to sveltejs/language-tools by dummdidumm 4 years ago
I’ve opened another request regarding the optimization of the vs code extension size on disk (currently 150mb). Can you comment on this? [I have deleted the
typescript
andprettier
folders from thesvelte-language-server\node_modules
and all seems well, but you could “build” everything and not rely on thenode_modules
right?]Woo Hoo! Thanks!
svelte2tsx
already relies heavily on the svelte parser, and inlanguage-server
we need it inSveltePlugin
, and apart from that we only need HTML parsing to get the script/style tags. So relying on the parser would be a good choice I think.