aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-02-07 18:51:15 -0500
committerDavid Robillard <d@drobilla.net>2024-03-08 17:13:28 -0500
commit37723be4c8b49b785c40fe5ccd34edbc7c018e1b (patch)
tree4c784a3384c2574b5eb89f2b3efc90132b202aa5 /src
parent9caf3ec7c867795c475a42c72c6a4aa3f41104b7 (diff)
downloadserd-37723be4c8b49b785c40fe5ccd34edbc7c018e1b.tar.gz
serd-37723be4c8b49b785c40fe5ccd34edbc7c018e1b.tar.bz2
serd-37723be4c8b49b785c40fe5ccd34edbc7c018e1b.zip
Fix parsing NQuads lines with no space before the final dot
Diffstat (limited to 'src')
-rw-r--r--src/n3.c2
-rw-r--r--src/serd_config.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/n3.c b/src/n3.c
index e713a828..4f7ddd47 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1763,7 +1763,7 @@ read_nquads_statement(SerdReader* const reader)
// Terminating '.'
read_ws_star(reader);
- if (!eat_byte_check(reader, '.')) {
+ if (!ate_dot && !eat_byte_check(reader, '.')) {
return SERD_ERR_BAD_SYNTAX;
}
}
diff --git a/src/serd_config.h b/src/serd_config.h
index 745232b8..150ffb81 100644
--- a/src/serd_config.h
+++ b/src/serd_config.h
@@ -36,7 +36,7 @@
#define SERD_SRC_SERD_CONFIG_H
// Define version unconditionally so a warning will catch a mismatch
-#define SERD_VERSION "0.32.2"
+#define SERD_VERSION "0.32.3"
#if !defined(SERD_NO_DEFAULT_CONFIG)