strip_comments

Function strip_comments 

Source
pub fn strip_comments(input: &str) -> String
Expand description

Strip comments from CQL input, replacing block comments with a space and removing line comments (preserving newlines).

This is a zero-allocation single-pass scanner (no Vec<Token> intermediary). Used by the parser on every feed_line call, so performance matters.