diff options
author | Petri Lehtinen <petri@digip.org> | 2009-07-13 23:34:31 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2009-07-14 00:24:39 +0300 |
commit | df307f1bc39104a50919d8aeabb6ea1f42d911e5 (patch) | |
tree | 1875d70a66d5e4d5d3a7c2d5804f59fc70594820 /test/testdata | |
parent | 1f65a3cae74ac4d022db398d2f2c3df13143219a (diff) | |
download | jansson-df307f1bc39104a50919d8aeabb6ea1f42d911e5.zip jansson-df307f1bc39104a50919d8aeabb6ea1f42d911e5.tar.gz jansson-df307f1bc39104a50919d8aeabb6ea1f42d911e5.tar.bz2 |
Report errors from lexical and stream level in parser
Before, only the syntax level (parse_*) was able to set the error
string. This patch fixes the situation so that lexical (lex_*) and
stream (stream_*) levels can report detailed error messages.
Also, instead of 0, EOF is now returned by stream on error.
Diffstat (limited to 'test/testdata')
-rw-r--r-- | test/testdata/invalid | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/testdata/invalid b/test/testdata/invalid index 221548c..df167ae 100644 --- a/test/testdata/invalid +++ b/test/testdata/invalid @@ -30,7 +30,7 @@ unexpected token near ',' ["a ==== 1 -invalid token near '"a' +unexpected newline near '"a' ======== ["a" ==== @@ -50,12 +50,12 @@ string or '}' expected near ',' {" ==== 1 -string or '}' expected near '"' +unexpected newline near '"' ======== {"a ==== 1 -string or '}' expected near '"a' +unexpected newline near '"a' ======== {"a" ==== @@ -75,7 +75,7 @@ unexpected token near end of file {"a":"a ==== 1 -invalid token near '"a' +unexpected newline near '"a' ======== {[ ==== @@ -135,4 +135,4 @@ invalid token near '-0' [" <-- tab character"] ==== 1 -invalid token near '"' +control character 0x9 near '"' |