bugfix: 'import x var y' without newline doesn't parse anymore
This commit is contained in:
parent
8a595b631b
commit
f7c7d95d89
2 changed files with 11 additions and 11 deletions
|
|
@ -1720,7 +1720,7 @@ proc parseAll(p: var TParser): PNode =
|
|||
|
||||
proc parseTopLevelStmt(p: var TParser): PNode =
|
||||
result = ast.emptyNode
|
||||
while true:
|
||||
while true:
|
||||
if p.tok.indent != 0:
|
||||
if p.firstTok and p.tok.indent < 0: nil
|
||||
else: parMessage(p, errInvalidIndentation)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue