Skip to main content

has_preceding_comment

Function has_preceding_comment 

Source
pub(crate) fn has_preceding_comment(
    lines: &[&str],
    line: usize,
    keywords: &[&str],
) -> bool
Expand description

Check whether any keyword appears in the comment block immediately preceding line.