This commit is contained in:
Hackerpilot 2015-04-20 00:30:13 -07:00
parent 3d4d4d05f9
commit bcc4adb7cc
5 changed files with 17 additions and 1 deletions

View File

@ -474,6 +474,8 @@ private:
{
writeToken();
linebreakHints = [];
while (indents.topIs(tok!"enum"))
indents.pop();
newline();
}
}

View File

@ -0,0 +1,4 @@
version (Windows)
enum root = `C:\`;
else
enum root = "/";

4
tests/issue0127.d Normal file
View File

@ -0,0 +1,4 @@
version (Windows)
enum root = `C:\`;
else
enum root = "/";

View File

@ -0,0 +1,4 @@
version (Windows)
enum root = `C:\`;
else
enum root = "/";

View File

@ -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"