summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorMathieu Duponchelle <MathieuDuponchelle@users.noreply.github.com>2016-12-20 22:00:17 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2016-12-20 16:00:17 -0500
commit9e643720ec903f3b448bd2589a0c02c2514805ae (patch)
tree5ee8793c56f141821b0039920c2f7cd0b8b544f9 /src/parser.h
parent29c46c5aeda66e9c454ac8d802e65692d0bab566 (diff)
More sourcepos! (#169)
* open_new_blocks: always create child before advancing offset * Source map * Extent's typology * In-depth python bindings
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h
index 0c5033b..b28a8a7 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -5,6 +5,7 @@
#include "node.h"
#include "buffer.h"
#include "memory.h"
+#include "source_map.h"
#ifdef __cplusplus
extern "C" {
@@ -27,9 +28,12 @@ struct cmark_parser {
bool partially_consumed_tab;
cmark_strbuf curline;
bufsize_t last_line_length;
+ bufsize_t line_offset;
cmark_strbuf linebuf;
int options;
bool last_buffer_ended_with_cr;
+ cmark_source_map *source_map;
+ cmark_source_extent *last_paragraph_extent;
};
#ifdef __cplusplus