We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a9913c commit d4f8c00Copy full SHA for d4f8c00
src/syntactes/generator.py
@@ -190,7 +190,11 @@ def _extend_states_and_shift_entries(
190
EOF = Token.eof()
191
for state in states:
192
for item in state.items:
193
- if item.dot_is_last() or item.after_dot == EOF:
+ if item.dot_is_last():
194
+ continue
195
+
196
+ if item.after_dot == EOF:
197
+ state.set_final()
198
continue
199
200
new_items = self.goto(state.items, item.after_dot)
0 commit comments