1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00

Use the new context printing function for fixed syntax.

This commit is contained in:
Rob Rix 2015-11-02 16:15:13 -05:00
parent 7ac4c9ee03
commit d015f972ae

View File

@ -37,7 +37,7 @@ func unified(diff: Diff, before: String, after: String) -> String {
} }
return (out + String(after.utf16[previous..<info.1.range.endIndex]), info.1.range) return (out + String(after.utf16[previous..<info.1.range.endIndex]), info.1.range)
case let .Fixed(f): case let .Fixed(f):
return (f.map { $0.0 }.joinWithSeparator(""), info.1.range) return (unified(info.1.range, children: f, source: after), info.1.range)
case let .Keyed(k): case let .Keyed(k):
return (k.values.map { $0.0 }.joinWithSeparator(""), info.1.range) return (k.values.map { $0.0 }.joinWithSeparator(""), info.1.range)
} }