-
Notifications
You must be signed in to change notification settings - Fork 129
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
Highlighting fails when generic type declaration spans many lines #475
Comments
This is by design as the grammar lookup doesn't allow multiple lines at a time. Hence at location connect < cannot be determined as type parameter. |
JSX doesn't allow any [a-z] character before the |
But the < could be less than operator. |
That's true but I don't really understand why it's an issue here. In this case, |
@vjeux yes that can be done, but please open another issue with valid code that is broken. Thanks |
TS and JS Grammar Extension version: 0.0.22 / latest
From microsoft/vscode#29135
Code
Using the typescript react gammar:
Elements after
Dispatch<
are marked as a tsx component and not highlighted properly:The text was updated successfully, but these errors were encountered: