-
Notifications
You must be signed in to change notification settings - Fork 128
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
TypeScript wrong highlighting when using if
within for
#17
Comments
From @igabesz on November 26, 2015 11:34 This can get really ugly for more complex cases. (Logic mostly omitted.) |
From @igabesz on November 26, 2015 11:56 OK, messing with this a little more I came across that highlighting breaks if there is a
Also the consequences are not affecting only to the |
From @egamma on November 26, 2015 14:52 The TypeScript Sublime plugin renders this correctly. |
I verified that we are using the latest version from https://github.com/Microsoft/TypeScript-TmLanguage. |
@aeschli should we close this as fixed? |
To me it looks like a bug in the grammar. Do you disagree? |
Sorry, I misread that last comment; I thought VSCode was not up-to-date. I guess there's been a regression, but I think this is due to the way in which we handle |
Yes, with a space in front of the < things look fine. |
@aeschli What if you have a space before your |
@zhengbli Space in front of the < solves the issue. You can also see this in the 3rd screenshot |
Duplicate #11 |
From @igabesz on November 26, 2015 11:26
TypeScript highlighter interprets
if
calls within afor
loop as function definitions if theif
has middle parameter and brackets. The interpretation starts failing in thefor
loop for the last parameter.Not the consequence of installed extensions.
Highlighting fails for other color themes as well, not only Monokai.
Copied from original issue: microsoft/vscode#704
The text was updated successfully, but these errors were encountered: