# Blockquotes parser
class MdBlockQuoteParser
super MdBlockParser
redef type BLOCK: MdBlockQuote
redef var block = new MdBlockQuote(location) is lazy
redef fun try_continue(state) do
var next_non_space = state.next_non_space_index
var indent = state.indent
var line = state.line_string
if indent >= 4 then return null
if next_non_space >= line.length then return null
if line.chars[next_non_space] != '>' then return null
var new_column = state.column + state.indent + 1
# optional following space or tab
if state.line_string.is_space_or_tab(next_non_space + 1) then
new_column += 1
end
return new MdBlockContinue.at_column(new_column)
end
redef fun parse_inlines(inline_parser) do
var last_child = block.last_child
if last_child != null then
location.line_end = last_child.location.line_end
location.column_end = last_child.location.column_end
end
end
end
lib/markdown2/markdown_block_parsing.nit:720,1--751,3