* @param anchorToUpdate the optional anchor that this method will update
*/
private boolean parseImplCm2(Line line, int lineNumber, int numLinesToProcess,
@Nullable Anchor anchorToUpdate, ParsedTokensRecipient tokensRecipient) {
State parserState = loadParserStateForBeginningOfLine(line);
if (parserState == null) {
return false;
}
Line previousLine = line.getPreviousLine();
for (int numLinesProcessed = 0; line != null && numLinesProcessed < numLinesToProcess;) {
State stateToSave = parserState;
if (line.getText().length() > LINE_LENGTH_LIMIT) {
// Save the initial state instead of state at the end of line.
stateToSave = parserState.copy(codeMirrorParser);
}