mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Comments in objects use their substrings as their keys.
This commit is contained in:
parent
68ca3f8e36
commit
69cb807c98
@ -68,7 +68,7 @@ func termWithInput(string: String) -> Term? {
|
||||
return try ($0.namedChildren[0].substring(string), ($0, "pair"))
|
||||
default:
|
||||
// We might have a comment inside an object literal. It should still be assigned a key, however.
|
||||
return try (String($0.range), ($0, $0.category(document)))
|
||||
return try (substring, ($0, $0.category(document)))
|
||||
}
|
||||
}))
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user