-
Notifications
You must be signed in to change notification settings - Fork 130
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
Generic type parameters do not highlight when multiline #479
Comments
Whoops, looks like this is a duplicate of #475 |
Actually, after reading the full comment chain of #475, I'm reopening this since my code is actually valid. |
As mentioned in #475 (comment) this is by design. |
Ok, that comment chain was a bit confusing. Are there future plans to fix the grammar so it works over multiple lines? It's kind of annoying having syntax highlighting break for multiline expressions. |
It cant be fixed to lookup over multiple lines as that's the limitation of tmLanguage syntax. |
Gotcha. Sorry for the confusion. |
TS and JS Grammar Extension version: 0.0.22 / latest
Code
In vscode, we get the following highlighting:
It drops the yellow of the function name, as well as the teal of the type params that we would expect when it is all on one line.
Expected highlight colors
The text was updated successfully, but these errors were encountered: