summaryrefslogtreecommitdiff
path: root/src/scanners.h
blob: 3269112429515e68f901cf9b14cbf58f88241954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "cmark.h"

#ifdef __cplusplus
extern "C" {
#endif

int _scan_at(int (*scanner)(const unsigned char *), chunk *c, int offset);
int _scan_autolink_uri(const unsigned char *p);
int _scan_autolink_email(const unsigned char *p);
int _scan_html_tag(const unsigned char *p);
int _scan_html_block_tag(const unsigned char *p);
int _scan_link_url(const unsigned char *p);
int _scan_link_title(const unsigned char *p);
int _scan_spacechars(const unsigned char *p);
int _scan_atx_header_start(const unsigned char *p);
int _scan_setext_header_line(const unsigned char *p);
int _scan_hrule(const unsigned char *p);
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_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)
#define scan_html_block_tag(c, n) _scan_at(&_scan_html_block_tag, c, n)
#define scan_link_url(c, n) _scan_at(&_scan_link_url, c, n)
#define scan_link_title(c, n) _scan_at(&_scan_link_title, c, n)
#define scan_spacechars(c, n) _scan_at(&_scan_spacechars, c, n)
#define scan_atx_header_start(c, n) _scan_at(&_scan_atx_header_start, c, n)
#define scan_setext_header_line(c, n) _scan_at(&_scan_setext_header_line, c, n)
#define scan_hrule(c, n) _scan_at(&_scan_hrule, 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)

#ifdef __cplusplus
}
#endif