Skip to content
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 syntax highlighting breaks on for loops if no spaces around operator in condition #2906

Closed
bryceg opened this issue Feb 10, 2016 · 3 comments
Assignees

Comments

@bryceg
Copy link

bryceg commented Feb 10, 2016

image

Everything in the scope of the for loop breaks for syntax highlighting. Easy to fix by adding a space around the operator in the condition.

@westy92
Copy link

westy92 commented Feb 10, 2016

I'm seeing the same error on Linux. It breaks for i<5 and i< 5 but not i <5. Notice how the method name test2 is also the wrong color.

Also, I'm using ES6 and not TypeScript.

image

@bgse
Copy link
Contributor

bgse commented Feb 10, 2016

Probably microsoft/TypeScript-TmLanguage#17 ?

@aeschli
Copy link
Contributor

aeschli commented Feb 11, 2016

This issue was moved to microsoft/TypeScript-TmLanguage#83

@aeschli aeschli closed this as completed Feb 11, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants