diff options
author | David Robillard <d@drobilla.net> | 2019-03-10 12:16:54 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-27 13:13:58 +0100 |
commit | df54e2c8de9be51cd16bdce927b0a03ca9ae3a31 (patch) | |
tree | 7978187c3a0f26dacf249f134846a4398c5fd369 | |
parent | 1419387e8becd183273337a746086d4b6b339280 (diff) | |
download | serd-df54e2c8de9be51cd16bdce927b0a03ca9ae3a31.tar.gz serd-df54e2c8de9be51cd16bdce927b0a03ca9ae3a31.tar.bz2 serd-df54e2c8de9be51cd16bdce927b0a03ca9ae3a31.zip |
Support reading lone lists in lax mode
This allows parsing documents like "(42) ."
-rw-r--r-- | src/n3.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1496,7 +1496,7 @@ read_n3_statement(SerdReader* reader) } else if ((st = read_triples(reader, ctx, &ate_dot))) { if (st == SERD_FAILURE && s_type == '[') { return SERD_SUCCESS; - } else if (ate_dot) { + } else if (ate_dot && (reader->strict || (s_type != '('))) { return r_err(reader, SERD_ERR_BAD_SYNTAX, "unexpected end of statement\n"); } else { |