Skip to main content

code_mask

Function code_mask 

Source
pub fn code_mask(source: &str, syntax: &LanguageSyntax) -> Vec<bool>
Expand description

Marks which bytes of source are code rather than string or comment text.

The returned vector has one entry per byte of source; true means the byte is part of code.