Skip to main content

parse_line_block

Function parse_line_block 

Source
pub fn parse_line_block(
    lines: &[&str],
    start_pos: usize,
    builder: &mut GreenNodeBuilder<'static>,
    config: &ParserOptions,
    bq_depth: usize,
    list_content_col: usize,
    list_marker_consumed_on_line_0: bool,
    bq_outer: bool,
    content_indent: usize,
) -> usize
Expand description

Parse a complete line block starting at current position. Returns the new position after the line block.

Container-prefix parameters mirror the fenced-code threading pattern (parse_fenced_code_block in code_blocks.rs). On the dispatch line (pos == start_pos), list_marker_consumed_on_line_0 selects between a silent column-advance through the upstream-emitted list marker (advance_columns) and a whitespace-only strip with WHITESPACE emission (strip_list_indent). On subsequent lines, the list-content-indent is always whitespace and is stripped via strip_list_indent so that blank lines aren’t eaten by the column-advance.