Bug #3509317. Properly mask state when re-lexing. Remove dead code.
Bug #3509317. Properly mask state when re-lexing. Remove dead code.

R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone