| Index: tools/lexer_generator/dfa.py
|
| diff --git a/tools/lexer_generator/dfa.py b/tools/lexer_generator/dfa.py
|
| index 3f0c50aacb6094017f4c5c41a46a719431cb347a..8bfbeea76f68fa58daa193b5f4e5e593f1a309d2 100644
|
| --- a/tools/lexer_generator/dfa.py
|
| +++ b/tools/lexer_generator/dfa.py
|
| @@ -133,7 +133,7 @@ class Dfa(Automaton):
|
|
|
| def matches(self, string):
|
| actions = list(self.collect_actions(string))
|
| - return actions and actions[-1].type() == 'TERMINATE'
|
| + return actions and actions[-1].entry_action() == 'TERMINATE'
|
|
|
| def lex(self, string):
|
| state = self.__start
|
|
|