Тернарный оператор
This commit is contained in:
parent
0cd764fc18
commit
959608f6b5
@ -1318,7 +1318,7 @@ indent_using_block = true # true/false
|
||||
# 0: Off (default)
|
||||
# 1: When the `if_false` is a continuation, indent it under `if_false`
|
||||
# 2: When the `:` is a continuation, indent it under `?`
|
||||
indent_ternary_operator = 0 # unsigned number
|
||||
indent_ternary_operator = 2 # unsigned number
|
||||
|
||||
# Whether to indent the statments inside ternary operator.
|
||||
indent_inside_ternary_operator = false # true/false
|
||||
@ -2189,7 +2189,7 @@ pos_compare = ignore # ignore/break/force/lead/trail/join/
|
||||
|
||||
# The position of conditional operators, as in the '?' and ':' of
|
||||
# 'expr ? stmt : stmt', in wrapped expressions.
|
||||
pos_conditional = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
|
||||
pos_conditional = break # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
|
||||
|
||||
# The position of the comma in wrapped expressions.
|
||||
pos_comma = trail # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
|
||||
|
Loading…
Reference in New Issue
Block a user