PY-31442 As in lexers of other languages, reset the state in the skeleton

This way it's more self-contained, and we no longer require to use PythonLexer instead
everywhere. Thus I reverted previously made changes.
This commit is contained in:
Mikhail Golubev
2018-10-01 12:46:47 +03:00
parent c5f0bde323
commit 274ca1e19a
7 changed files with 265 additions and 27 deletions
@@ -870,6 +870,7 @@ return yylength()-s.length();
zzAtEOF = false;
zzAtBOL = true;
zzEndRead = end;
fStringHelper.reset();
yybegin(initialState);
}