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>2023-12-02 18:49:07 -0500
commit233dc12e44eea2ebd967b5fc9fbfe8f1b153adf6 (patch)
tree802cabc8e6088d65787e06087b2c0d43c1090036 /src
parente03e9fb1cf398aacb38e2364f43512a71e885138 (diff)
downloadserd-233dc12e44eea2ebd967b5fc9fbfe8f1b153adf6.tar.gz
serd-233dc12e44eea2ebd967b5fc9fbfe8f1b153adf6.tar.bz2
serd-233dc12e44eea2ebd967b5fc9fbfe8f1b153adf6.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 dab83b12..006d28ba 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1649,7 +1649,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_BAD_SYNTAX, "unexpected end of statement\n");
}