-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Unexpected scopes when grammar is embedded in HTML grammar. #112189
Comments
@mjbvz this seems like vscode issue and not grammar issue. |
If I am not wrong, I think the correct syntax for an input is: The same happens even with the correct syntax. The https is in a different color too. Only that the = inside the onclick parameter is white in color. I use the default Visual Studio Dark theme with no extension that may affect JavaScript or HTML. |
The string seems to be getting split into two parts: Not sure why this is happening and I haven't been able to repo it in a normal JS file yet |
@alexr00 I believe this line may be to blame:
Specifically, the match rule: |
Thanks @mjbvz for looking! Marking issue as upstream: textmate/html.tmbundle#113 |
TS and JS Grammar Extension version: 0.0.55 / latest
When embedding the grammar in another grammar (HTML) there is unexpected behavior. The scope of the
:
is odd. The sameonclick
handler in a js file does not have this problem.Code
Originally from @vismodo in #111394
The text was updated successfully, but these errors were encountered: