summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-06 23:30:02 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-06 23:30:02 +0200
commit6b240196296cd029771810b6f2c8fc5b61529c56 (patch)
tree9e33a7dc2b7c119d3ea0e7126d74280954c0470f /src/parser.h
parent13947ca611561e1771f14469696ee61a53cebbe9 (diff)
Factored out `S_find_first_nonspace` in `S_proces_line`.
Added fields `offset`, `first_nonspace`, `indent`, and `blank` to `cmark_parser` struct. This just removes some repetition in the code.
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 cbccae3..ccdf84b 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -16,6 +16,10 @@ struct cmark_parser {
struct cmark_node* root;
struct cmark_node* current;
int line_number;
+ int offset;
+ int first_nonspace;
+ int indent;
+ bool blank;
cmark_strbuf *curline;
int last_line_length;
cmark_strbuf *linebuf;