-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
lsp: formatting malformed when CSS expressions are too long #733
Labels
bug
Something isn't working
lsp
NeedsInvestigation
Issue needs some investigation before being fixed
Comments
I got a similar issue here: Works:
Doesnt work
|
joerdav
changed the title
LSP formatting malformed when CSS expressions are too long
lsp: formatting malformed when CSS expressions are too long
May 10, 2024
joerdav
added
bug
Something isn't working
lsp
NeedsInvestigation
Issue needs some investigation before being fixed
labels
May 10, 2024
Did a bit more investigation on what would work and what not. Works
or Alternativly using comma to concatenate the strings works fine
Maybe allowing the first Token of the next not empty line to be one of the allowed concatinatino tokens would remove the issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
lsp
NeedsInvestigation
Issue needs some investigation before being fixed
templ version v0.2.680
The following example templates works fine:
Now, if there is one more
foo
added to the list of classes, the LSP formatter seems to malform the template, resulting in the following output:This results in an error:
string expression attribute: missing closing brace: line 3, col 27 []
The text was updated successfully, but these errors were encountered: