Skip to main content

collect_comments

Function collect_comments 

Source
fn collect_comments(text: &str, out: &mut Vec<RawSpan>)
Expand description

Pre-scan raw text for -- line comments and /* */ block comments. String bodies and quoted-identifier bodies are skipped so that comment markers inside them are not misidentified.