Skip to main content

lines_after_ignoring_trivia

Function lines_after_ignoring_trivia 

Source
pub fn lines_after_ignoring_trivia(offset: TextSize, code: &str) -> u32
Expand description

Counts the empty lines after offset, ignoring any trailing trivia: end-of-line comments, own-line comments, and any intermediary newlines.