amehat / atom-language-d

plugins and themes for Atom
Other
16 stars 6 forks source link

Function call or parantheses inside for(each) causes the rest of highlighting to go wrong. #7

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hello

It seems that whenever parantheses are used inside a for or foreach loop, things go wrong from that point on:

foreach (method;  foo()) // Code from this point on is no longer highlighted, save for a few keywords.
{

}

I don't usually call functions this way inside a loop, but this also happens when calling __traits to perform compile time loops.

Thanks in advance