Skip to main content

skip_comment

Function skip_comment 

Source
pub fn skip_comment(input: &[u8], pos: usize) -> CommentSkip
Expand description

The Cypher comment starting at input[pos..] — the one spelling of the comment rule, shared by the lexer and by callers that re-read a literal token’s text through the same grammar.

A // line comment runs through (and includes) its terminating newline; a /* */ block comment does not nest and ends at the first */.