Skip to main content

quoted_reference_end

Function quoted_reference_end 

Source
pub fn quoted_reference_end(document: &str, start: usize) -> Option<usize>
Expand description

The offset just past the delimited reference that starts at start, or None when nothing that far into document opens one.

Comment stripping needs to know how far a delimited reference reaches so that a # written inside one stays content, and it has to agree with the parser about it, which is why it asks the parser rather than scanning again.