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:
parent
0b497fb8a2
commit
f7a7a2c180
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user