aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-10 12:16:54 +0100
committerDavid Robillard <d@drobilla.net>2021-03-08 23:23:05 -0500
commitab0403066f8bf49754f0afa94f5910ca690bc5aa (patch)
tree2b9be4eb44fccc03ffa1faf4072b68b8a7319a65 /src
parent2ef60a2d3718a6d4f82bc03345e5c4a31aa7f1c4 (diff)
downloadserd-ab0403066f8bf49754f0afa94f5910ca690bc5aa.tar.gz
serd-ab0403066f8bf49754f0afa94f5910ca690bc5aa.tar.bz2
serd-ab0403066f8bf49754f0afa94f5910ca690bc5aa.zip
Support reading lone lists in lax mode
This allows parsing documents like "(42) ."
Diffstat (limited to 'src')
-rw-r--r--src/n3.c2
1 files changed, 1 insertions, 1 deletions
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");
}