aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-10 12:16:54 +0100
committerDavid Robillard <d@drobilla.net>2022-01-13 23:05:19 -0500
commit4dc7f00c2a312937073c63960307910da739c27b (patch)
tree4ea6653407268ca5d3621380f6896e7eee6cd744 /src/n3.c
parenta414bf5a02a9894219d7945416916a3ce8ab903b (diff)
downloadserd-4dc7f00c2a312937073c63960307910da739c27b.tar.gz
serd-4dc7f00c2a312937073c63960307910da739c27b.tar.bz2
serd-4dc7f00c2a312937073c63960307910da739c27b.zip
Support reading lone lists in lax mode
This allows parsing documents like "(42) ."
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/n3.c b/src/n3.c
index 373edbe2..46fe281b 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1652,7 +1652,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");
}