bugfix: 'import x var y' without newline doesn't parse anymore

This commit is contained in:
Araq 2013-04-21 22:04:56 +02:00
commit f7c7d95d89
2 changed files with 11 additions and 11 deletions

View file

@ -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)