diff options
author | David Robillard <d@drobilla.net> | 2024-03-29 06:48:16 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-03-29 06:49:14 -0400 |
commit | dc3aeed6ce84736100d713cac8f40e46d16d1289 (patch) | |
tree | c266ecb76b16c5c9131469bc82a054f501e89010 /src | |
parent | 6aed064084c8c1af02adb46b0066aaee1f436edf (diff) | |
download | serd-dc3aeed6ce84736100d713cac8f40e46d16d1289.tar.gz serd-dc3aeed6ce84736100d713cac8f40e46d16d1289.tar.bz2 serd-dc3aeed6ce84736100d713cac8f40e46d16d1289.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
@@ -1670,7 +1670,7 @@ read_n3_statement(SerdReader* const 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"); } |