swiftlang / swiftlang/swift-syntax

`BasicFormat` indents closing `}` of closure passed as a function parameter

Open
#2,082 10 comments 0 reactions 0 assignees View on GitHub
BasicFormat
Dominant language
Swift
Stars
3.7k
Forks
553
Avg merge
5d 13h
Merged PRs (30d)
16

Description

The following new test case fails.

```swift
func testClosureParameter() {
let source = """
myFunc({
return true
})
"""
assertFormatted(source: source, expected: source)
}
```

The actual formatted source is

```swift
myFunc({
return true
})
```

rdar://114044607

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.