| Index: tools/lexer_generator/nfa.py
|
| diff --git a/tools/lexer_generator/nfa.py b/tools/lexer_generator/nfa.py
|
| index fbd94ee2eef5e306dcafdcce9b23e970fab1d231..16eb5a280d6db47b76f7f65da37cf7f833ffe53c 100644
|
| --- a/tools/lexer_generator/nfa.py
|
| +++ b/tools/lexer_generator/nfa.py
|
| @@ -399,6 +399,11 @@ class Nfa(Automaton):
|
| for e_trans in state.transitions()[e]:
|
| if e_trans[1]:
|
| actions.append(e_trans[1])
|
| + for s in state.epsilon_closure():
|
| + if e in s.transitions():
|
| + for e_trans in s.transitions()[e]:
|
| + if e_trans[1]:
|
| + actions.append(e_trans[1])
|
|
|
| assert len(match_states) == len(transitions)
|
|
|
|
|