pub fn is_doc_whitespace(ch: char) -> bool
Whitespace as a comment sees it. Not char::is_whitespace: that includes the newline, which the lexer has to keep separate because it ends a line-oriented construct.
char::is_whitespace