diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-03-17 11:22:29 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-03-17 13:01:29 -0700 |
commit | a308cf9fd8d116e1235bc5933b9a759f2224ebc9 (patch) | |
tree | 41c0316000fb96c64623887db8a521585758ce85 /src/parser.h | |
parent | fbb5d9ad8d288a1d3b1abfde7c8660facb3b9b04 (diff) |
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.
Diffstat (limited to 'src/parser.h')
-rw-r--r-- | src/parser.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |