mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 11:54:11 +00:00
fix of recently introduced parsing bug
This commit is contained in:
@@ -96,7 +96,7 @@ proc optInd(p: var TParser, n: PNode) =
|
||||
skipInd(p)
|
||||
|
||||
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))
|
||||
|
||||
proc expectIdentOrKeyw(p: TParser) =
|
||||
|
||||
Reference in New Issue
Block a user