diff options
author | Araq <rumpf_a@web.de> | 2011-11-02 19:04:40 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-02 19:04:40 +0100 |
commit | 93be594eca2cae49339425996bda90e093857c48 (patch) | |
tree | 6a47a13e8d99164c75c8edf77b7a7a04fa14b30d /compiler/parser.nim | |
parent | cacb200eff810483aba9ae055bdefe751e124a53 (diff) | |
download | Nim-93be594eca2cae49339425996bda90e093857c48.tar.gz |
fix of recently introduced parsing bug
Diffstat (limited to 'compiler/parser.nim')
-rwxr-xr-x | compiler/parser.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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) = |