c2nim: bugfix: less picky about newlines in preprocessor defines
This commit is contained in:
parent
66cfc851a1
commit
408eb6bbe7
4 changed files with 16 additions and 3 deletions
|
|
@ -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) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue