aboutsummaryrefslogtreecommitdiff
path: root/lib/cmark/src/parser.h
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-09 18:27:38 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-09 18:27:38 +0200
commitde8fd9328e9deb0d1ec596d7486686ea3cb688c2 (patch)
tree9c25d7568dee522c1d2ed7b6d238d1dad54163f6 /lib/cmark/src/parser.h
parent661ddc244793102ee0720871c4edcd64f80bc744 (diff)
downloadkristall-de8fd9328e9deb0d1ec596d7486686ea3cb688c2.tar.gz
Includes cmark markdown parser library.
Diffstat (limited to 'lib/cmark/src/parser.h')
-rw-r--r--lib/cmark/src/parser.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/cmark/src/parser.h b/lib/cmark/src/parser.h
new file mode 100644
index 0000000..8f6c694
--- /dev/null
+++ b/lib/cmark/src/parser.h
@@ -0,0 +1,41 @@
+#ifndef CMARK_AST_H
+#define CMARK_AST_H
+
+#include <stdio.h>
+#include "references.h"
+#include "node.h"
+#include "buffer.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define MAX_LINK_LABEL_LENGTH 1000
+
+struct cmark_parser {
+ struct cmark_mem *mem;
+ struct cmark_reference_map *refmap;
+ struct cmark_node *root;
+ struct cmark_node *current;
+ int line_number;
+ bufsize_t offset;
+ bufsize_t column;
+ bufsize_t first_nonspace;
+ bufsize_t first_nonspace_column;
+ bufsize_t thematic_break_kill_pos;
+ int indent;
+ bool blank;
+ bool partially_consumed_tab;
+ cmark_strbuf curline;
+ bufsize_t last_line_length;
+ cmark_strbuf linebuf;
+ cmark_strbuf content;
+ int options;
+ bool last_buffer_ended_with_cr;
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif