aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-03-29 06:48:16 -0400
committerDavid Robillard <d@drobilla.net>2024-03-29 06:49:14 -0400
commitdc3aeed6ce84736100d713cac8f40e46d16d1289 (patch)
treec266ecb76b16c5c9131469bc82a054f501e89010 /src
parent6aed064084c8c1af02adb46b0066aaee1f436edf (diff)
downloadserd-dc3aeed6ce84736100d713cac8f40e46d16d1289.tar.gz
serd-dc3aeed6ce84736100d713cac8f40e46d16d1289.tar.bz2
serd-dc3aeed6ce84736100d713cac8f40e46d16d1289.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 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");
}