pub const MAX_OPERATOR_RUN: usize = 256;Expand description
Operator characters (~!@#^&|?+-/%<>=) in a row outside comments and quoted text, and inside a block comment from a nested /on. The lexer reads a run again from each point where it puts text back: the operator rule after a trailing+or-, and the comment rule after each nested /, each time to the run's end. So such a run costs up to its length squared; with the cap each byte is read a few hundred times at most. A run inside a comment with no nested /` in it is read once.