Skip to main content

split_lines

Function split_lines 

Source
pub fn split_lines(code: &str) -> impl Iterator<Item = &str>
Expand description

Splits source exactly as the highlighter does, preserving an empty source line while omitting the synthetic line after a trailing newline.