Format spaces before enum arguments
Fixes #KT-12714
This commit is contained in:
committed by
Nikolay Krasko
parent
a520be5509
commit
b560aab06d
@@ -222,6 +222,8 @@ fun createSpacingBuilder(settings: CodeStyleSettings, builderUtil: KotlinSpacing
|
||||
before(SEMICOLON).spaces(0)
|
||||
after(SEMICOLON).spaces(1)
|
||||
|
||||
beforeInside(INITIALIZER_LIST, ENUM_ENTRY).spaces(0)
|
||||
|
||||
val TYPE_COLON_ELEMENTS = TokenSet.create(PROPERTY, FUN, VALUE_PARAMETER, DESTRUCTURING_DECLARATION_ENTRY, FUNCTION_LITERAL)
|
||||
beforeInside(COLON, TYPE_COLON_ELEMENTS) { spaceIf(kotlinSettings.SPACE_BEFORE_TYPE_COLON) }
|
||||
afterInside(COLON, TYPE_COLON_ELEMENTS) { spaceIf(kotlinSettings.SPACE_AFTER_TYPE_COLON) }
|
||||
|
||||
Reference in New Issue
Block a user