From 93be594eca2cae49339425996bda90e093857c48 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 2 Nov 2011 19:04:40 +0100 Subject: fix of recently introduced parsing bug --- compiler/parser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/parser.nim') diff --git a/compiler/parser.nim b/compiler/parser.nim index 3e195b927..13c7a3edb 100755 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -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) = -- cgit 1.4.1-2-gfad0