fix of recently introduced parsing bug
This commit is contained in:
parent
cacb200eff
commit
93be594eca
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ proc optInd(p: var TParser, n: PNode) =
|
||||||
skipInd(p)
|
skipInd(p)
|
||||||
|
|
||||||
proc ExpectNl(p: TParser) =
|
proc ExpectNl(p: TParser) =
|
||||||
if p.tok.tokType notin {tkEof, tkSad, tkInd, tkDed}:
|
if p.tok.tokType notin {tkEof, tkSad, tkInd, tkDed, tkComment}:
|
||||||
lexMessage(p.lex, errNewlineExpected, prettyTok(p.tok))
|
lexMessage(p.lex, errNewlineExpected, prettyTok(p.tok))
|
||||||
|
|
||||||
proc expectIdentOrKeyw(p: TParser) =
|
proc expectIdentOrKeyw(p: TParser) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue