Revert "Leak-fix: clean up lexer state after parsing."

This reverts commit 921e1d8b5f42137c5f80643e4e11f2921e0e3c22.