juliensf/mercury-json

Misleading error message

juliensf opened this issue · 1 comments

The following JSON, containing an unterminated string literal,

{ "compatible_crews": [ "37003 ] }

results in the following misleading error message from the parser:

bug.json:4:0: error: unescaped control character: U+000A
(It's technically correct but quite confusing.)

Fixed in commit b54379326ee25cc31588f024927564275d4bb4a