[SR-7846] [SourceKit] bracket indentation is incorrect for literals with trailing comma #50382
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
Additional Detail from JIRA
md5: 035fb769d2eb81825401ee97cfdcf69c
Issue Description:
When formatting array/dictionary literals that have a trailing comma after their final element,
SourceKit
indents closing brackets to the same level as the elements instead of the opening line.Steps to reproduce:
Minimal
example.swift
file:Run:
sourcekitten format --file example.swift
Expected behaviour: The above format is already correct, contents should be unchanged.
Actual behaviour: The closing "
]
" is indented to the same level as the "2,
".The text was updated successfully, but these errors were encountered: