Skip to content

Commit 470818b

Browse files
committed
Parse interactive statements to the end
1 parent fc9cf11 commit 470818b

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/antlr

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/antlr/Python3.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ locals
386386
NEWLINE
387387
| simple_stmt
388388
| compound_stmt
389-
)
389+
) NEWLINE* EOF
390390
{ $result = new BlockSSTNode(getArray(start, SSTNode[].class), getStartIndex($ctx), getLastIndex($ctx)); }
391391
{
392392
if ($interactive || $curInlineLocals != null) {

0 commit comments

Comments
 (0)