Skip to main content

skip_protected

Function skip_protected 

Source
pub fn skip_protected(bytes: &[u8], i: usize) -> Option<usize>
Expand description

If bytes[i] begins a comment, string literal, or backtick identifier, returns Some(next_offset) skipping the protected region. Otherwise None.