mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #150
This commit is contained in:
parent
cdfb21ab77
commit
6639b00eef
4 changed files with 18 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
6
tests/allman/issue0150.d.ref
Normal file
6
tests/allman/issue0150.d.ref
Normal file
|
@ -0,0 +1,6 @@
|
|||
void main()
|
||||
{
|
||||
scope (success)
|
||||
{
|
||||
}
|
||||
}
|
6
tests/issue0150.d
Normal file
6
tests/issue0150.d
Normal file
|
@ -0,0 +1,6 @@
|
|||
void main()
|
||||
{
|
||||
scope (success)
|
||||
{
|
||||
}
|
||||
}
|
4
tests/otbs/issue0150.d.ref
Normal file
4
tests/otbs/issue0150.d.ref
Normal file
|
@ -0,0 +1,4 @@
|
|||
void main() {
|
||||
scope (success) {
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue