Skip to main content

code_ignore_ranges

Function code_ignore_ranges 

Source
pub fn code_ignore_ranges(source: &str, regexes: &[Regex]) -> Vec<[usize; 2]>
Expand description

Compute byte ranges of all regex matches against source text. Used to populate ignore_ranges from ignorePattern regexes before tokenization, matching v4 semantics where regex patterns match against source text regions (not individual token values).