Fix #150
This commit is contained in:
parent
cdfb21ab77
commit
6639b00eef
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
void main()
|
||||
{
|
||||
scope (success)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
void main()
|
||||
{
|
||||
scope (success)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
void main() {
|
||||
scope (success) {
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue