nimsuggest: make tests green again

This commit is contained in:
Araq 2017-03-10 00:18:24 +01:00
commit 556b564c7d
3 changed files with 5 additions and 5 deletions

View file

@ -736,7 +736,7 @@ type
TLibKind* = enum
libHeader, libDynamic
TLib* = object # also misused for headers!
kind*: TLibKind
generated*: bool # needed for the backends:
@ -744,7 +744,7 @@ type
name*: Rope
path*: PNode # can be a string literal!
CompilesId* = int ## id that is used for the caching logic within
## ``system.compiles``. See the seminst module.
TInstantiation* = object

View file

@ -2002,12 +2002,12 @@ proc parseStmt(p: var TParser): PNode =
break
p.hasProgress = false
var a = complexOrSimpleStmt(p)
if not p.hasProgress and p.tok.tokType == tkEof: break
if a.kind != nkEmpty and p.hasProgress:
if a.kind != nkEmpty:
addSon(result, a)
else:
parMessage(p, errExprExpected, p.tok)
getTok(p)
if not p.hasProgress and p.tok.tokType == tkEof: break
else:
# the case statement is only needed for better error messages:
case p.tok.tokType

View file

@ -424,7 +424,7 @@ proc execCmd(cmd: string; graph: ModuleGraph; cache: IdentCache; cachedMsgs: Cac
else:
if gIdeCmd == ideChk:
for cm in cachedMsgs: errorHook(cm.info, cm.msg, cm.sev)
execute(gIdeCmd, orig, dirtyfile, line, col-1, graph, cache)
execute(gIdeCmd, orig, dirtyfile, line, col, graph, cache)
sentinel()
proc recompileFullProject(graph: ModuleGraph; cache: IdentCache) =