mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +03:00
Use the new context printing function for fixed syntax.
This commit is contained in:
parent
7ac4c9ee03
commit
d015f972ae
@ -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)
|
||||
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):
|
||||
return (k.values.map { $0.0 }.joinWithSeparator(""), info.1.range)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user