made some tests green

This commit is contained in:
Araq
2013-04-22 21:18:48 +02:00
parent 3c27d1a179
commit 61e9bd0c48
5 changed files with 8 additions and 3 deletions

View File

@@ -1687,6 +1687,10 @@ proc parseStmt(p: var TParser): PNode =
if p.tok.indent > p.currInd:
parMessage(p, errInvalidIndentation)
break
if p.tok.toktype in {tkCurlyRi, tkParRi, tkCurlyDotRi, tkBracketRi}:
# XXX this ensures tnamedparamanonproc still compiles;
# deprecate this syntax later
break
var a = complexOrSimpleStmt(p)
if a.kind != nkEmpty:
addSon(result, a)

View File

@@ -6,3 +6,4 @@ path = "dependencies/enet"
path = "dependencies/genpacket"
path = "enet_server"
debugger = off
warning[SmallLshouldNotBeUsed] = off

View File

@@ -1,6 +1,6 @@
discard """
line: 11
errormsg: "identifier expected, but found '[same indentation]'"
errormsg: "identifier expected, but found 'keyword of'"
"""
type

View File

@@ -1,6 +1,6 @@
discard """
line: 24
errormsg: "invalid indentation"
errormsg: "expression expected, but found 'keyword else'"
"""
import macros

View File

@@ -1,7 +1,7 @@
discard """
file: "tmissingnl.nim"
line: 7
errormsg: "newline expected, but found 'keyword var'"
errormsg: "invalid indentation"
"""
import strutils var s: seq[int] = @[0, 1, 2, 3, 4, 5, 6]