diff options
author | David Robillard <d@drobilla.net> | 2019-03-10 12:16:54 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | 233dc12e44eea2ebd967b5fc9fbfe8f1b153adf6 (patch) | |
tree | 802cabc8e6088d65787e06087b2c0d43c1090036 /src | |
parent | e03e9fb1cf398aacb38e2364f43512a71e885138 (diff) | |
download | serd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |