From 401631b79d51843f4efd847d79359a57f91965d4 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Sun, 8 Mar 2015 18:38:52 -0700 Subject: [PATCH] Fix #67 --- src/dfmt.d | 2 +- tests/issue0067.d | 1 + tests/issue0067.d.ref | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 tests/issue0067.d create mode 100644 tests/issue0067.d.ref diff --git a/src/dfmt.d b/src/dfmt.d index c371d04..2009fc8 100644 --- a/src/dfmt.d +++ b/src/dfmt.d @@ -375,7 +375,7 @@ private: { writeToken(); if (!currentIs(tok!"*") && !currentIs(tok!")") && !currentIs(tok!"[") - && !currentIs(tok!",")) + && !currentIs(tok!",") && !currentIs(tok!";")) { write(" "); } diff --git a/tests/issue0067.d b/tests/issue0067.d new file mode 100644 index 0000000..c21b681 --- /dev/null +++ b/tests/issue0067.d @@ -0,0 +1 @@ +alias Key = void* ; diff --git a/tests/issue0067.d.ref b/tests/issue0067.d.ref new file mode 100644 index 0000000..597acf0 --- /dev/null +++ b/tests/issue0067.d.ref @@ -0,0 +1 @@ +alias Key = void*;