Fix #127
This commit is contained in:
parent
3d4d4d05f9
commit
bcc4adb7cc
|
@ -474,6 +474,8 @@ private:
|
|||
{
|
||||
writeToken();
|
||||
linebreakHints = [];
|
||||
while (indents.topIs(tok!"enum"))
|
||||
indents.pop();
|
||||
newline();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
version (Windows)
|
||||
enum root = `C:\`;
|
||||
else
|
||||
enum root = "/";
|
|
@ -0,0 +1,4 @@
|
|||
version (Windows)
|
||||
enum root = `C:\`;
|
||||
else
|
||||
enum root = "/";
|
|
@ -0,0 +1,4 @@
|
|||
version (Windows)
|
||||
enum root = `C:\`;
|
||||
else
|
||||
enum root = "/";
|
|
@ -6,9 +6,11 @@ do
|
|||
for source in *.d
|
||||
do
|
||||
echo "${source}.ref" "${braceStyle}/${source}.out"
|
||||
argsFile=$(basename ${source}).args
|
||||
argsFile=$(basename ${source} .d).args
|
||||
if [ -e ${argsFile} ]; then
|
||||
args=$(cat ${argsFile})
|
||||
else
|
||||
args=
|
||||
fi
|
||||
../bin/dfmt --brace_style=${braceStyle} ${args} "${source}" > "${braceStyle}/${source}.out"
|
||||
diff -u "${braceStyle}/${source}.ref" "${braceStyle}/${source}.out"
|
||||
|
|
Loading…
Reference in New Issue