-
Notifications
You must be signed in to change notification settings - Fork 29
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
Passing backtick string var as prop breaks syntax #41
Comments
Hello, I have switched my react typescript syntax highlighting plugin to:
I have not had any problems with it at all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I have dealt with this syntax bug for a while, but it is really getting annoying.
I have this code:
and it appears like this in my vim, the syntax is saying that the string continues into the tag so it fails to highlight the text inside and the other props that appear after this string.
Notice how the component with 'to' prop ending with
![image](https://user-images.githubusercontent.com/38140593/121947586-2fd5f580-cd24-11eb-9243-1ebc66cf5d90.png)
/edit
displays totally fine:( the
@ts-ignore
does not change anything, just to hide typescript errors for extra given props )It's rather small, but it always happens when I pass a backtick string prop with the
${}
at the end of it.e.g.:
The text was updated successfully, but these errors were encountered: