aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c
index 32535ceb..5d87216d 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -357,7 +357,9 @@ serd_reader_read_chunk(SerdReader* const reader)
st = skip_byte(reader, 0);
}
- return st ? st : read_n3_statement(reader);
+ return st ? st
+ : (reader->syntax == SERD_NQUADS) ? read_nquads_statement(reader)
+ : read_n3_statement(reader);
}
SerdStatus