diff --git a/stdx/d/parser.d b/stdx/d/parser.d index 0b274ba..a27fa52 100644 --- a/stdx/d/parser.d +++ b/stdx/d/parser.d @@ -6105,7 +6105,15 @@ protected: return !peekIs(tok!"switch"); case tok!"debug": case tok!"version": - return !peekIs(tok!"="); + { + if (peekIs(tok!"=")) + return false; + + auto b = setBookmark(); + scope (exit) goToBookmark(b); + advance(); + return isDeclaration(); + } case tok!"synchronized": if (peekIs(tok!"(")) return false;