nimsuggest: make tests green again
This commit is contained in:
parent
57ea01309e
commit
556b564c7d
3 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue