1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00

Assign parse errors inside the value node.

This commit is contained in:
Rob Rix 2018-06-27 14:23:20 -04:00
parent 4fe23a6196
commit 1e82044bd1

View File

@ -35,7 +35,7 @@ assignment :: Assignment Term
assignment = Syntax.handleError (value <|> parseError)
value :: Assignment Term
value = branchNode Value (object <|> array)
value = branchNode Value (object <|> array <|> parseError)
jsonValue :: Assignment Term
jsonValue = object <|> array <|> number <|> string <|> boolean <|> none <|> parseError