Skip to main content

comment_folds

Function comment_folds 

Source
fn comment_folds(source: &str) -> Vec<FoldingRange>
Expand description

Multi-line runs of consecutive -- line comments → Comment folds. Spans come from the lexer’s Comment tokens (the trivia table keeps only bodies), grouped while each comment sits on the line immediately after the previous.