Skip to content

Commit 70067e9

Browse files
committed
Remove space between keyword group used as function name and parameter group
1 parent 2325ddf commit 70067e9

File tree

1 file changed

+9
-1
lines changed
  • src/main/kotlin/org/domaframework/doma/intellij/formatter/block

1 file changed

+9
-1
lines changed

src/main/kotlin/org/domaframework/doma/intellij/formatter/block/SqlFileBlock.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,15 @@ open class SqlFileBlock(
587587
}
588588
}
589589

590-
is SqlDataTypeParamBlock, is SqlFunctionParamBlock -> return SqlCustomSpacingBuilder.nonSpacing
590+
is SqlFunctionParamBlock -> {
591+
return if (childBlock1?.node?.elementType in listOf(SqlTypes.FUNCTION_NAME, SqlTypes.WORD)) {
592+
SqlCustomSpacingBuilder.nonSpacing
593+
} else {
594+
SqlCustomSpacingBuilder.normalSpacing
595+
}
596+
}
597+
598+
is SqlDataTypeParamBlock -> return SqlCustomSpacingBuilder.nonSpacing
591599
}
592600
}
593601

0 commit comments

Comments
 (0)