From 3d919d191da0333027ef810007da4d1c6ff84dc2 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Sat, 7 Mar 2015 22:57:09 -0800 Subject: [PATCH] Fix #61 --- src/dfmt.d | 2 +- tests/issue0061.d | 1 + tests/issue0061.d.ref | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 tests/issue0061.d create mode 100644 tests/issue0061.d.ref diff --git a/src/dfmt.d b/src/dfmt.d index 5601e0d..d60a7a5 100644 --- a/src/dfmt.d +++ b/src/dfmt.d @@ -370,7 +370,7 @@ private: .equalRange(current.index).empty) { writeToken(); - if (current.type != tok!"*" && current.type != tok!")") + if (current.type != tok!"*" && current.type != tok!")" && current.type != tok!"[") write(" "); break; } diff --git a/tests/issue0061.d b/tests/issue0061.d new file mode 100644 index 0000000..1fe772d --- /dev/null +++ b/tests/issue0061.d @@ -0,0 +1 @@ +const(char)* [VC_SAVED_IDENT_CNT] saved_idents; diff --git a/tests/issue0061.d.ref b/tests/issue0061.d.ref new file mode 100644 index 0000000..8d3c642 --- /dev/null +++ b/tests/issue0061.d.ref @@ -0,0 +1 @@ +const(char)*[VC_SAVED_IDENT_CNT] saved_idents;