1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00

Add parseError to value Assignment in the JSON parser

This commit is contained in:
joshvera 2017-07-20 11:12:08 -04:00
parent 0b497fb8a2
commit f7a7a2c180

View File

@ -44,7 +44,7 @@ assignment :: Assignment
assignment = object <|> array <|> parseError
value :: Assignment
value = object <|> array <|> number <|> string <|> boolean <|> none
value = object <|> array <|> number <|> string <|> boolean <|> none <|> parseError
object :: Assignment
object = makeTerm <$> symbol Object <*> children (Literal.Hash <$> many pairs)