[pypy-svn] r50408 - pypy/dist/pypy/rlib/parsing

cfbolz at codespeak.net cfbolz at codespeak.net
Sun Jan 6 19:12:31 CET 2008


Author: cfbolz
Date: Sun Jan  6 19:12:29 2008
New Revision: 50408

Modified:
   pypy/dist/pypy/rlib/parsing/lexer.py
Log:
"typo" of sorts


Modified: pypy/dist/pypy/rlib/parsing/lexer.py
==============================================================================
--- pypy/dist/pypy/rlib/parsing/lexer.py	(original)
+++ pypy/dist/pypy/rlib/parsing/lexer.py	Sun Jan  6 19:12:29 2008
@@ -184,7 +184,7 @@
         self.ignore = ignore
 
     def ignore_token(self, state):
-        return self.automaton.names[self.last_matched_state] in self.ignore
+        return self.automaton.names[state] in self.ignore
 
     def make_token(self, index, state, text, eof=False):
         source_pos = SourcePos(index, self.lineno, self.columnno)



More information about the Pypy-commit mailing list