fix nimsuggest warning (#13699)

This commit is contained in:
Jasper Jenkins
2020-03-20 01:24:04 -07:00
committed by GitHub
parent 28b6b1c3fb
commit 1037318e68
3 changed files with 4 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ proc callNimsuggest() =
if a == DummyEof: break
var line = 0
for i in 0..< contents.len:
for i in 0 ..< contents.len:
let slic = contents[0..i]
writeFile("temp000.nim", slic)
let (line, col) = getPosition(slic)

View File

@@ -97,9 +97,6 @@ const
"type 'debug' to toggle debug mode on/off\n" &
"type 'terse' to toggle terse mode on/off"
type
EUnexpectedCommand = object of Exception
proc parseQuoted(cmd: string; outp: var string; start: int): int =
var i = start
i += skipWhitespace(cmd, i)

View File

@@ -206,13 +206,13 @@ proc sexpToAnswer(s: SexpNode): string =
result.add '\t'
result.add file
result.add '\t'
result.add line
result.addInt line
result.add '\t'
result.add col
result.addInt col
result.add '\t'
result.add doc
result.add '\t'
result.add a[8].getNum
result.addInt a[8].getNum
if a.len >= 10:
result.add '\t'
result.add a[9].getStr