Skip to content

Commit 850ba83

Browse files
committed
Fix incomplete source exceptions in repl
1 parent 8ae5351 commit 850ba83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/PythonErrorStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private static String getTokeLineText(Parser recognizer, Token token) {
8181
int index = token.getTokenIndex();
8282
// search for line start
8383
int tokenIndex = index;
84-
int start = -1;
84+
int start = 0;
8585
while (tokenIndex >= 0) {
8686
Token t = tokenStream.get(tokenIndex);
8787
if (t.getText().equals("\n")) {

0 commit comments

Comments
 (0)