Skip to content

Commit

Permalink
Fix indent bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zizi4n5 committed May 27, 2020
1 parent 39dd263 commit 7f6eeaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ParsingHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ extension Formatter {
guard let braceIndex = lastIndex(of: .endOfScope("}"), in: index + 1 ..< i) else {
return false
}
return self.index(of: .linebreak, in: braceIndex + 1 ..< i) != nil
return self.index(of: .nonSpaceOrCommentOrLinebreak, in: braceIndex + 1 ..< i) != nil
}

switch tokens[index].string {
Expand Down

0 comments on commit 7f6eeaf

Please sign in to comment.