From dc3aeed6ce84736100d713cac8f40e46d16d1289 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 29 Mar 2024 06:48:16 -0400 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(-) (limited to 'src/n3.c') diff --git a/src/n3.c b/src/n3.c index 662ea3f9..da3862db 100644 --- a/src/n3.c +++ b/src/n3.c @@ -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"); } -- cgit v1.2.1