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:
parent
49efa1e952
commit
0fe57c4ccf
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user