From 3b1252125ca66387f904ce107fb4c6130d5c582d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 25 Nov 2018 16:12:23 +0100 Subject: Add separate test suite for lax syntax tests --- src/n3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/n3.c b/src/n3.c index 857e4d1c..7c470c93 100644 --- a/src/n3.c +++ b/src/n3.c @@ -303,7 +303,7 @@ static SerdStatus read_STRING_LITERAL_LONG(SerdReader* reader, SerdNode* dest, uint8_t q) { SerdStatus st = SERD_SUCCESS; - while (!reader->status) { + while (!reader->status && !(st && reader->strict)) { const uint8_t c = peek_byte(reader); if (c == '\\') { eat_byte_safe(reader, c); @@ -341,7 +341,7 @@ static SerdStatus read_STRING_LITERAL(SerdReader* reader, SerdNode* dest, uint8_t q) { SerdStatus st = SERD_SUCCESS; - while (!reader->status) { + while (!reader->status && !(st && reader->strict)) { const uint8_t c = peek_byte(reader); uint32_t code = 0; switch (c) { -- cgit v1.2.1