diff options
author | David Robillard <d@drobilla.net> | 2019-03-10 12:16:54 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-08 23:23:05 -0500 |
commit | ab0403066f8bf49754f0afa94f5910ca690bc5aa (patch) | |
tree | 2b9be4eb44fccc03ffa1faf4072b68b8a7319a65 /src | |
parent | 2ef60a2d3718a6d4f82bc03345e5c4a31aa7f1c4 (diff) | |
download | serd-ab0403066f8bf49754f0afa94f5910ca690bc5aa.tar.gz serd-ab0403066f8bf49754f0afa94f5910ca690bc5aa.tar.bz2 serd-ab0403066f8bf49754f0afa94f5910ca690bc5aa.zip |
Support reading lone lists in lax mode
This allows parsing documents like "(42) ."
Diffstat (limited to 'src')
-rw-r--r-- | src/n3.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1599,7 +1599,7 @@ read_n3_statement(SerdReader* reader) return SERD_SUCCESS; } - if (ate_dot) { + if (ate_dot && (reader->strict || (s_type != '('))) { return r_err( reader, SERD_ERR_BAD_SYNTAX, "unexpected end of statement\n"); } |