Skip to content

Commit 824d34e

Browse files
detect decorators as incomplete input
1 parent 02ab8b0 commit 824d34e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/lpython.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ int interactive_python_repl(
821821
(input.rfind("else", 0) == 0) ||
822822
(input.rfind("elif", 0) == 0) ||
823823
(input.rfind("class", 0) == 0) ||
824+
(input.rfind('@', 0) == 0) ||
824825
(input.rfind(' ', 0) == 0) ||
825826
(input.rfind('\t', 0) == 0)) {
826827
// start of a block

0 commit comments

Comments
 (0)