Skip to content

Commit 42ef30a

Browse files
committed
Fix the column of a parse error.
For this particular test, the invalid syntax is flagged at the first open brace instead of previously at the beginning of the line.
1 parent f30e81e commit 42ef30a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SwiftFormatTests/SyntaxValidatingVisitorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class SyntaxValidatingVisitorTests: XCTestCase {
2828
var bar = 0
2929
}
3030
"""
31-
assertInvalidSyntax(in: input, atLine: 1, column: 1)
31+
assertInvalidSyntax(in: input, atLine: 1, column: 7)
3232

3333
input =
3434
"""

0 commit comments

Comments
 (0)