-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
vscode: Syntax highlighting for inline method components #566
Comments
PR opened: templ-go/templ-vscode#38 |
@alehechka thanks for the PR. I'm not sure if this is a regression but it looks like now non-function components are not rendered properly:
|
@joerdav checking this on v0.0.21, it appears to have the same lack of syntax highlighting. So I don't believe this to be a regression. The syntax regex for import-expressions currently relies on If you want, I can add syntax highlighting support for non-function components to this PR or open a new one for just that addition? |
Let's do a separate PR, don't want to block your good work any longer! |
Sounds good to me. I'll have time after work to take a look at it. |
@joerdav, I opened a PR for this: templ-go/templ-vscode#39. It has one open question about the syntax highlighting. |
Overview
@Ra0k had opened #561 asking about support for inline method components which has been added in the
main
branch but not released. I wanted to try this out myself and noticed that the VSCode extension does not support syntax highlighting for this type of expression. I can take a look at this and get a PR opened for it.Example from #56
The text was updated successfully, but these errors were encountered: