aboutsummaryrefslogtreecommitdiffstats
path: root/src/read_turtle.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-22 15:26:22 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit5e4538756d601e6a941c5290777af95ea8848e1a (patch)
tree9868e188a48a528e9908fcf695147f75790c3a56 /src/read_turtle.c
parent64024d0fa6a6dc048b2b846738846da597025f56 (diff)
downloadserd-5e4538756d601e6a941c5290777af95ea8848e1a.tar.gz
serd-5e4538756d601e6a941c5290777af95ea8848e1a.tar.bz2
serd-5e4538756d601e6a941c5290777af95ea8848e1a.zip
[WIP] Preserve long or short quoting from input documents
Diffstat (limited to 'src/read_turtle.c')
-rw-r--r--src/read_turtle.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/read_turtle.c b/src/read_turtle.c
index c3970a1e..22269741 100644
--- a/src/read_turtle.c
+++ b/src/read_turtle.c
@@ -115,7 +115,6 @@ read_STRING_LITERAL_LONG(SerdReader* const reader,
push_byte(reader, ref, c);
st = read_string_escape(reader, ref);
} else {
- ref->flags |= SERD_HAS_QUOTE;
if (!(st = push_byte(reader, ref, c))) {
st = read_character(reader, ref, (uint8_t)q2);
}
@@ -151,7 +150,10 @@ read_String(SerdReader* const reader, SerdNode* const node)
return SERD_SUCCESS;
}
+ // Long string
skip_byte(reader, q3);
+ node->flags |= SERD_IS_LONG;
+
return read_STRING_LITERAL_LONG(reader, node, (uint8_t)q1);
}