diff --git a/src/dfmt/formatter.d b/src/dfmt/formatter.d index 932955a..f2e45fa 100644 --- a/src/dfmt/formatter.d +++ b/src/dfmt/formatter.d @@ -281,7 +281,7 @@ private: { writeToken(); if (index < tokens.length && (currentIs(tok!"identifier") - || ( index < 1 && ( isBasicType(peekBack(2).type) || peekBack2Is(tok!"identifier") ) && + || ( index > 1 && ( isBasicType(peekBack(2).type) || peekBack2Is(tok!"identifier") ) && currentIs(tok!("(")) && config.dfmt_space_before_function_parameters ) || isBasicType(current.type) || currentIs(tok!"@") || currentIs(tok!"if") || isNumberLiteral(tokens[index].type) || (inAsm