mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 15:44:14 +00:00
made some tests green
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -6,3 +6,4 @@ path = "dependencies/enet"
|
||||
path = "dependencies/genpacket"
|
||||
path = "enet_server"
|
||||
debugger = off
|
||||
warning[SmallLshouldNotBeUsed] = off
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
discard """
|
||||
line: 11
|
||||
errormsg: "identifier expected, but found '[same indentation]'"
|
||||
errormsg: "identifier expected, but found 'keyword of'"
|
||||
"""
|
||||
|
||||
type
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
discard """
|
||||
line: 24
|
||||
errormsg: "invalid indentation"
|
||||
errormsg: "expression expected, but found 'keyword else'"
|
||||
"""
|
||||
|
||||
import macros
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user