Skip to content

Commit 8724ab1

Browse files
committed
[GR-27135] Neverending imcomplete prompt when pasting snipet into graalpython repl.
PullRequest: graalpython/1366
2 parents 3b14977 + 76d494b commit 8724ab1

File tree

3 files changed

+1441
-1440
lines changed

3 files changed

+1441
-1440
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
@@ -435,7 +435,7 @@ locals
435435
NEWLINE
436436
| simple_stmt
437437
| compound_stmt
438-
) NEWLINE* EOF
438+
)* EOF
439439
{ $result = new BlockSSTNode(getArray(start, SSTNode[].class), getStartIndex($ctx), getLastIndex($ctx)); }
440440
{
441441
if ($interactive || $curInlineLocals != null) {

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

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)