diff options
author | John MacFarlane <[email protected]> | 2015-03-29 22:13:24 -0700 |
---|---|---|
committer | John MacFarlane <[email protected]> | 2015-03-29 22:13:55 -0700 |
commit | f99a680b089eee01797e085a6d9f5c5398907a57 (patch) | |
tree | 741f80660b6c11946d7abab5541f8e453d2f6406 /src/scanners.h | |
parent | 7fdb93306d64607d40953bbbd53d961944819c73 (diff) |
Scanners: added _scan_scheme, scan_scheme.
This is used in the commonmark renderer.
Diffstat (limited to 'src/scanners.h')
-rw-r--r-- | src/scanners.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scanners.h b/src/scanners.h index f360505..1353f3b 100644 --- a/src/scanners.h +++ b/src/scanners.h @@ -6,6 +6,7 @@ extern "C" { #endif int _scan_at(int (*scanner)(const unsigned char *), cmark_chunk *c, int offset); +int _scan_scheme(const unsigned char *p); int _scan_autolink_uri(const unsigned char *p); int _scan_autolink_email(const unsigned char *p); int _scan_html_tag(const unsigned char *p); @@ -20,6 +21,7 @@ int _scan_open_code_fence(const unsigned char *p); int _scan_close_code_fence(const unsigned char *p); int _scan_entity(const unsigned char *p); +#define scan_scheme(c, n) _scan_at(&_scan_scheme, c, n) #define scan_autolink_uri(c, n) _scan_at(&_scan_autolink_uri, c, n) #define scan_autolink_email(c, n) _scan_at(&_scan_autolink_email, c, n) #define scan_html_tag(c, n) _scan_at(&_scan_html_tag, c, n) |