Merge pull request #306 from stefan-koch-sociomantic/fix_sbfp
fix space_before_function_parameters merged-on-behalf-of: stefan-koch-sociomantic <stefan-koch-sociomantic@users.noreply.github.com>
This commit is contained in:
commit
82ec339251
|
@ -281,7 +281,7 @@ private:
|
||||||
{
|
{
|
||||||
writeToken();
|
writeToken();
|
||||||
if (index < tokens.length && (currentIs(tok!"identifier")
|
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 )
|
currentIs(tok!("(")) && config.dfmt_space_before_function_parameters )
|
||||||
|| isBasicType(current.type) || currentIs(tok!"@") || currentIs(tok!"if")
|
|| isBasicType(current.type) || currentIs(tok!"@") || currentIs(tok!"if")
|
||||||
|| isNumberLiteral(tokens[index].type) || (inAsm
|
|| isNumberLiteral(tokens[index].type) || (inAsm
|
||||||
|
|
Loading…
Reference in New Issue