Skip to content

Syntax "if/else if" highlighting lost #645

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

Closed
isuda opened this issue Oct 7, 2015 · 5 comments
Closed

Syntax "if/else if" highlighting lost #645

isuda opened this issue Oct 7, 2015 · 5 comments

Comments

@isuda
Copy link

isuda commented Oct 7, 2015

when I write:

if(...) {
  //...
} else if(...) {
  //...
}

The syntax highlighting is broken on the "if" and "else if" if there is no space between the if and the opening bracket. This used to work correctly a few weeks or a month ago.

image

@isuda
Copy link
Author

isuda commented Oct 7, 2015

Also, FWIW, it highlights properly in language-javascript.

@basarat
Copy link
Member

basarat commented Oct 8, 2015

The following works, and is the recommended formatting if <space> ( as well:

if(...) {
  //...
} else if(...) {

Marking as up for grabs though as it would be nice to have it all 🌹

@basarat
Copy link
Member

basarat commented Nov 10, 2015

any effort in grammar should go to #675 🌹

@mjohnsonengr
Copy link
Contributor

Note the same issue occurs in for loops:
image

@basarat
Copy link
Member

basarat commented Jan 12, 2016

@basarat basarat closed this as completed Jan 12, 2016
@TypeStrong TypeStrong locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants