nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.66k stars 623 forks source link

Parsing error with raw strings inside tuples #1583

Closed marcelofabri closed 7 months ago

marcelofabri commented 8 months ago
let tuple = ("string", #""""#)

This snippet is valid Swift code, but running SwiftFormat 0.52.10 on it throws an error:

./artifacts/cache/swiftformat/current/swiftformat file.swift                                                               
Running SwiftFormat...
Reading config file at <path>/.swiftformat
Reading swift-version file at <path>/.swift-version (version 5.4)
error: Unexpected end of file at 2:1 in <path>/file.swift.
nicklockwood commented 7 months ago

@marcelofabri fixed in 0.52.11

marcelofabri commented 7 months ago

@marcelofabri fixed in 0.52.11

Awesome, thanks! 🥳