From a308cf9fd8d116e1235bc5933b9a759f2224ebc9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 17 Mar 2019 11:22:29 -0700 Subject: Use hand-rolled scanner for thematic break. Keep track of the last position where a thematic break failed to match on a line, to avoid rescanning unnecessarily. See commonmark/cmark#284. --- src/parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index 0c5033b..7f8ac9d 100644 --- a/src/parser.h +++ b/src/parser.h @@ -22,6 +22,7 @@ struct cmark_parser { 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; -- cgit v1.2.3