1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Terms are annotated with their categories in the JSON too.

This commit is contained in:
Rob Rix 2015-11-03 13:20:38 -05:00
parent edcb850f93
commit ad3462b135

View File

@ -160,7 +160,7 @@ case .Split:
let JSON: Doubt.JSON = [
"before": .String(aSource.contents),
"after": .String(bSource.contents),
"diff": diff.JSON(pure: { $0.JSON { $0.JSON(annotation: { $0.range.JSON }, leaf: Doubt.JSON.String) } }, leaf: Doubt.JSON.String, annotation: {
"diff": diff.JSON(pure: { $0.JSON { $0.JSON(annotation: { $0.JSON }, leaf: Doubt.JSON.String) } }, leaf: Doubt.JSON.String, annotation: {
[
"before": $0.JSON,
"after": $1.JSON,