nimsuggest: make tests green again

This commit is contained in:
Araq 2017-03-10 00:18:24 +01:00
commit 556b564c7d
3 changed files with 5 additions and 5 deletions

View file

@ -2002,12 +2002,12 @@ proc parseStmt(p: var TParser): PNode =
break
p.hasProgress = false
var a = complexOrSimpleStmt(p)
if not p.hasProgress and p.tok.tokType == tkEof: break
if a.kind != nkEmpty and p.hasProgress:
if a.kind != nkEmpty:
addSon(result, a)
else:
parMessage(p, errExprExpected, p.tok)
getTok(p)
if not p.hasProgress and p.tok.tokType == tkEof: break
else:
# the case statement is only needed for better error messages:
case p.tok.tokType