From ab0403066f8bf49754f0afa94f5910ca690bc5aa Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 10 Mar 2019 12:16:54 +0100 Subject: Support reading lone lists in lax mode This allows parsing documents like "(42) ." --- src/n3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/n3.c b/src/n3.c index aac4489d..a08dd9c0 100644 --- a/src/n3.c +++ b/src/n3.c @@ -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"); } -- cgit v1.2.1