Distinguish between conditional dec and stmnt
This commit is contained in:
parent
ee940f3d30
commit
083c3f5d41
|
|
@ -6105,7 +6105,15 @@ protected:
|
||||||
return !peekIs(tok!"switch");
|
return !peekIs(tok!"switch");
|
||||||
case tok!"debug":
|
case tok!"debug":
|
||||||
case tok!"version":
|
case tok!"version":
|
||||||
return !peekIs(tok!"=");
|
{
|
||||||
|
if (peekIs(tok!"="))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
auto b = setBookmark();
|
||||||
|
scope (exit) goToBookmark(b);
|
||||||
|
advance();
|
||||||
|
return isDeclaration();
|
||||||
|
}
|
||||||
case tok!"synchronized":
|
case tok!"synchronized":
|
||||||
if (peekIs(tok!"("))
|
if (peekIs(tok!"("))
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue