-
Notifications
You must be signed in to change notification settings - Fork 20
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
Cannot break generic parameter declarations into multiple lines #177
Comments
My understanding is that this is a limitation/issue in the htmljs parser. There is no native representation of import/export in the parser, they are parsed as concise mode tags. One solution would be to give the htmljs-parser the ability to parse import and export statements natively. There may be an easier fix, but I don't have a good enough understanding of the htmljs-parser to know! |
@AngusMorton @svallory the When the parser is scanning for the end of an expression it will skip over strings, matched bracket pairs, regexps and some javascript operators and keywords. The problem is that this logic does not currently account for generics and since the We need to think of a good way to make the parser aware of generics, while still allowing it to do as little processing as possible. |
@DylanPiercey I don't see many options other balancing |
Marko Version: 5.32.7
VS Code Extension Version: 1.1.18
Details
When declaring an Input type with generic parameters, breaking the generic parameters into multiple lines breaks the compiler
Expected Behavior
Actual Behavior
One generic param
Two generic params of one with trailing comma
or
Additional Info
Your Environment
VS Code on Mac
Steps to Reproduce
Create an Input type with at least one generic parameter declaring each parameter in its own line
Stack Trace
The text was updated successfully, but these errors were encountered: