bugfixes: tests are green again

This commit is contained in:
Araq 2012-01-13 23:28:08 +01:00
commit 4cfc0462a4
2 changed files with 3 additions and 2 deletions

View file

@ -1372,7 +1372,8 @@ proc parseStmt(p: var TParser): PNode =
else:
var a = complexOrSimpleStmt(p)
if a.kind == nkEmpty:
parMessage(p, errInvalidIndentation)
# XXX this needs a proper analysis;
if isKeyword(p.tok.tokType): parMessage(p, errInvalidIndentation)
break
addSon(result, a)
popInd(p.lex)