This commit is contained in:
Hackerpilot 2015-05-07 23:56:50 -07:00
parent cdfb21ab77
commit 6639b00eef
4 changed files with 18 additions and 1 deletions

View file

@ -1433,7 +1433,8 @@ const pure @safe @nogc:
auto t = tokens[i + index].type;
return t == tok!"for" || t == tok!"foreach" || t == tok!"foreach_reverse"
|| t == tok!"while" || t == tok!"if" || t == tok!"out"
|| t == tok!"catch" || t == tok!"with" || t == tok!"synchronized";
|| t == tok!"catch" || t == tok!"with" || t == tok!"synchronized"
|| t == tok!"scope";
}
}

View file

@ -0,0 +1,6 @@
void main()
{
scope (success)
{
}
}

6
tests/issue0150.d Normal file
View file

@ -0,0 +1,6 @@
void main()
{
scope (success)
{
}
}

View file

@ -0,0 +1,4 @@
void main() {
scope (success) {
}
}