mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
fix #244 - Wrong indentation for bool enums
This commit is contained in:
parent
5e6dd58502
commit
dca9e15483
4 changed files with 12 additions and 0 deletions
|
@ -1759,6 +1759,8 @@ const pure @safe @nogc:
|
|||
case tok!"stringLiteral":
|
||||
case tok!"wstringLiteral":
|
||||
case tok!"dstringLiteral":
|
||||
case tok!"true":
|
||||
case tok!"false":
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
|
5
tests/allman/issue0244.d.ref
Normal file
5
tests/allman/issue0244.d.ref
Normal file
|
@ -0,0 +1,5 @@
|
|||
enum Status : bool
|
||||
{
|
||||
abort = true,
|
||||
ignore = false
|
||||
}
|
1
tests/issue0244.d
Normal file
1
tests/issue0244.d
Normal file
|
@ -0,0 +1 @@
|
|||
enum Status : bool { abort = true, ignore = false }
|
4
tests/otbs/issue0244.d.ref
Normal file
4
tests/otbs/issue0244.d.ref
Normal file
|
@ -0,0 +1,4 @@
|
|||
enum Status : bool {
|
||||
abort = true,
|
||||
ignore = false
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue