make nimgrep compile without warnings
This commit is contained in:
parent
c7b9883ad0
commit
084ed53baa
1 changed files with 2 additions and 2 deletions
|
|
@ -135,7 +135,7 @@ proc processFile(filename: string) =
|
||||||
if optVerbose in options:
|
if optVerbose in options:
|
||||||
stdout.writeLine(filename)
|
stdout.writeLine(filename)
|
||||||
stdout.flushFile()
|
stdout.flushFile()
|
||||||
var pegp: TPeg
|
var pegp: Peg
|
||||||
var rep: Regex
|
var rep: Regex
|
||||||
var result: string
|
var result: string
|
||||||
|
|
||||||
|
|
@ -213,7 +213,7 @@ proc hasRightExt(filename: string, exts: seq[string]): bool =
|
||||||
if os.cmpPaths(x, y) == 0: return true
|
if os.cmpPaths(x, y) == 0: return true
|
||||||
|
|
||||||
proc styleInsensitive(s: string): string =
|
proc styleInsensitive(s: string): string =
|
||||||
template addx: stmt =
|
template addx =
|
||||||
result.add(s[i])
|
result.add(s[i])
|
||||||
inc(i)
|
inc(i)
|
||||||
result = ""
|
result = ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue