diff options
author | David Robillard <d@drobilla.net> | 2019-03-10 12:16:54 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 23:05:19 -0500 |
commit | 4dc7f00c2a312937073c63960307910da739c27b (patch) | |
tree | 4ea6653407268ca5d3621380f6896e7eee6cd744 /src | |
parent | a414bf5a02a9894219d7945416916a3ce8ab903b (diff) | |
download | serd-4dc7f00c2a312937073c63960307910da739c27b.tar.gz serd-4dc7f00c2a312937073c63960307910da739c27b.tar.bz2 serd-4dc7f00c2a312937073c63960307910da739c27b.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
@@ -1652,7 +1652,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"); } |