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

Match against the predicate.

This commit is contained in:
Rob Rix 2015-10-29 15:10:37 -04:00
parent 49efa1e952
commit 0fe57c4ccf

View File

@ -49,7 +49,7 @@ func termWithInput(string: String) -> Term? {
return try .Fixed(node.namedChildren.map {
($0, try $0.category(document))
})
case "object":
case keyedProductions.contains:
return try .Keyed(Dictionary(elements: node.namedChildren.map {
switch try $0.category(document) {
case "pair":