Skip to content

Commit 461fe85

Browse files
author
hauntsaninja
committed
grammar: add ENDMARKER to del_target_end
1 parent 850ba88 commit 461fe85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Grammar/python.gram

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ del_t_atom[expr_ty]:
595595
| '(' a=[del_targets] ')' { _Py_Tuple(a, Del, EXTRA) }
596596
| '[' a=[del_targets] ']' { _Py_List(a, Del, EXTRA) }
597597
| invalid_del_target
598-
del_target_end: ')' | ']' | ',' | ';' | NEWLINE
598+
del_target_end: ')' | ']' | ',' | ';' | NEWLINE | ENDMARKER
599599

600600
targets[asdl_seq*]: a=','.target+ [','] { a }
601601
target[expr_ty] (memo):

0 commit comments

Comments
 (0)