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