aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/n3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/n3.c b/src/n3.c
index ac217c18..356e139b 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1446,7 +1446,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 {