Skip to main content

blank_full_line_comments

Function blank_full_line_comments 

Source
pub fn blank_full_line_comments(text: &str) -> String
Expand description

Blanks full-line # comments in rule-body TEXT, byte-preservingly: every byte of a comment line except its newline becomes a space, so all spans and offsets downstream still point at the original source. Raw-string (""") interiors are untouched – a markdown heading inside a prompt is content, not a comment. The compile path runs this once per rule body before action/then expansion, so the kernel and every line-based analysis see comment-free text, while whip fmt (which re-emits the raw body text) preserves the comments.