| Index: tools/lexer_generator/dfa.py
|
| diff --git a/tools/lexer_generator/dfa.py b/tools/lexer_generator/dfa.py
|
| index f135b8e1e9d133298be386664c186365bb89a585..a8f29cdbd6a2389fe79e49e68dadd8330beae9b0 100644
|
| --- a/tools/lexer_generator/dfa.py
|
| +++ b/tools/lexer_generator/dfa.py
|
| @@ -189,7 +189,9 @@ class DfaMinimizer:
|
| all_keys.append(state.key_iter())
|
| if action:
|
| if state not in terminal_set:
|
| - assert action.entry_action()
|
| + # Match actions are valid only if we have matched the whole token, not
|
| + # just some sub-part of it.
|
| + assert not action.match_action()
|
| key = ("nonterminal action", action)
|
| else:
|
| key = ("terminal action", action)
|
|
|