summaryrefslogtreecommitdiff
path: root/src/scanners.h
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-03-17 11:22:29 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-03-17 13:01:29 -0700
commita308cf9fd8d116e1235bc5933b9a759f2224ebc9 (patch)
tree41c0316000fb96c64623887db8a521585758ce85 /src/scanners.h
parentfbb5d9ad8d288a1d3b1abfde7c8660facb3b9b04 (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/scanners.h')
-rw-r--r--src/scanners.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/scanners.h b/src/scanners.h
index 207f91a..bcb5fe8 100644
--- a/src/scanners.h
+++ b/src/scanners.h
@@ -22,7 +22,6 @@ bufsize_t _scan_link_title(const unsigned char *p);
bufsize_t _scan_spacechars(const unsigned char *p);
bufsize_t _scan_atx_heading_start(const unsigned char *p);
bufsize_t _scan_setext_heading_line(const unsigned char *p);
-bufsize_t _scan_thematic_break(const unsigned char *p);
bufsize_t _scan_open_code_fence(const unsigned char *p);
bufsize_t _scan_close_code_fence(const unsigned char *p);
bufsize_t _scan_entity(const unsigned char *p);
@@ -44,7 +43,6 @@ bufsize_t _scan_dangerous_url(const unsigned char *p);
#define scan_atx_heading_start(c, n) _scan_at(&_scan_atx_heading_start, c, n)
#define scan_setext_heading_line(c, n) \
_scan_at(&_scan_setext_heading_line, c, n)
-#define scan_thematic_break(c, n) _scan_at(&_scan_thematic_break, c, n)
#define scan_open_code_fence(c, n) _scan_at(&_scan_open_code_fence, c, n)
#define scan_close_code_fence(c, n) _scan_at(&_scan_close_code_fence, c, n)
#define scan_entity(c, n) _scan_at(&_scan_entity, c, n)