aboutsummaryrefslogtreecommitdiffstats
path: root/src/read_turtle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/read_turtle.c')
-rw-r--r--src/read_turtle.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/read_turtle.c b/src/read_turtle.c
index 027f0918..c3970a1e 100644
--- a/src/read_turtle.c
+++ b/src/read_turtle.c
@@ -13,6 +13,7 @@
#include "try.h"
#include "turtle.h"
+#include "serd/caret.h"
#include "serd/node.h"
#include "serd/reader.h"
#include "serd/sink.h"
@@ -610,6 +611,7 @@ read_object(SerdReader* const reader,
bool* const ate_dot)
{
const size_t orig_stack_size = reader->stack.size;
+ SerdCaret orig_caret = reader->source->caret;
assert(ctx->subject);
@@ -660,6 +662,7 @@ read_object(SerdReader* const reader,
break;
case '\"':
case '\'':
+ ++orig_caret.col;
st = read_literal(reader, &o, ate_dot);
break;
default:
@@ -668,7 +671,7 @@ read_object(SerdReader* const reader,
}
if (!st && simple && o) {
- st = emit_statement(reader, *ctx, o);
+ st = emit_statement_at(reader, *ctx, o, &orig_caret);
}
serd_stack_pop_to(&reader->stack, orig_stack_size);