Skip to content

else if breaks highlighting #8

Description

@FireSBurnsmuP

In if...else if...else blocks, the else if lines never highlight properly
for example:

if(Input.GetKeyUp(KeyCode.Down))
{
    // do some stuff
}
else if(Input.GetKey(KeyCode.Up))
{
    // do some other stuff
}
else
{
    // do some more stuff
}

In this case, the if(...) line is highlighted properly, and the else stays red (in my color scheme), but the else if(...) line lacks almost all highlighting, except the improperly highlighted "else" and "if". Here's a screenshot using Monokai:

sshot_unity-highlighting

It's more of an annoyance than anything, but it really makes the code less readable.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions