c2nim: bugfix: less picky about newlines in preprocessor defines

This commit is contained in:
Araq 2011-01-19 00:27:38 +01:00
commit 408eb6bbe7
4 changed files with 16 additions and 3 deletions

View file

@ -16,7 +16,7 @@ proc eatNewLine(p: var TParser, n: PNode) =
if p.tok.xkind == pxLineComment:
skipCom(p, n)
if p.tok.xkind == pxNewLine: getTok(p)
else:
elif p.tok.xkind == pxNewLine:
eat(p, pxNewLine)
proc skipLine(p: var TParser) =