Also, fix scribble lexer line counting. Closes PR 12225 original commit: fca5ceecc97dfff28ae52bb404a8761426f64145