diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-22 21:22:26 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-22 21:22:26 -0800 |
commit | acac9428faa1c3193fb44b3fb0e2dd3cbdaa4ac9 (patch) | |
tree | 16bab9f8f34dd6fc22a1b7f27b02b7f92b2939d6 /src/blocks.c | |
parent | a3be6dc81c971fa1b3c656d82f7e96794d510212 (diff) |
Renamed NODE_BQUOTE -> NODE_BLOCK_QUOTE.
Diffstat (limited to 'src/blocks.c')
-rw-r--r-- | src/blocks.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/blocks.c b/src/blocks.c index 7def4c8..2a6cdd8 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -89,7 +89,7 @@ static bool is_blank(strbuf *s, int offset) static inline bool can_contain(cmark_node_type parent_type, cmark_node_type child_type) { return ( parent_type == NODE_DOCUMENT || - parent_type == NODE_BQUOTE || + parent_type == NODE_BLOCK_QUOTE || parent_type == NODE_LIST_ITEM || (parent_type == NODE_LIST && child_type == NODE_LIST_ITEM) ); } @@ -516,7 +516,7 @@ void cmark_process_line(cmark_doc_parser *parser, const char *buffer, indent = first_nonspace - offset; blank = peek_at(&input, first_nonspace) == '\n'; - if (container->type == NODE_BQUOTE) { + if (container->type == NODE_BLOCK_QUOTE) { matched = indent <= 3 && peek_at(&input, first_nonspace) == '>'; if (matched) { offset = first_nonspace + 1; @@ -620,7 +620,7 @@ void cmark_process_line(cmark_doc_parser *parser, const char *buffer, // optional following character if (peek_at(&input, offset) == ' ') offset++; - container = add_child(parser, container, NODE_BQUOTE, parser->line_number, offset + 1); + container = add_child(parser, container, NODE_BLOCK_QUOTE, parser->line_number, offset + 1); } else if ((matched = scan_atx_header_start(&input, first_nonspace))) { @@ -731,7 +731,7 @@ void cmark_process_line(cmark_doc_parser *parser, const char *buffer, // lists or breaking out of lists. we also don't set last_line_blank // on an empty list item. container->last_line_blank = (blank && - container->type != NODE_BQUOTE && + container->type != NODE_BLOCK_QUOTE && container->type != NODE_SETEXT_HEADER && container->type != NODE_FENCED_CODE && !(container->type == NODE_LIST_ITEM && |