rustla/parser/state_machine/common.rs
1/*!
2A submodule for transition functions common to all states, such as blank line detection.
3
4Copyright © 2020 Santtu Söderholm
5*/
6
7use super::*;
8
9/// Simply adds an empty line to the children of the curren node.
10pub fn empty_line(
11 src_lines: &Vec<String>,
12 base_indent: usize,
13 section_level: &mut usize,
14 line_cursor: &mut LineCursor,
15 doctree: DocTree,
16 captures: ®ex::Captures,
17 pattern_name: &Pattern,
18) -> TransitionResult {
19
20 TransitionResult::Success {
21 doctree: doctree,
22 push_or_pop: PushOrPop::Neither,
23 line_advance: LineAdvance::Some(1),
24 }
25}