summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-09-26 18:06:13 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-09-26 19:26:39 +0200
commit084ed53baa0fc439766f7c666ef856785ef6ef1f (patch)
tree12cbd2c5b0f1a6ea3278e18fcae39b91c243bfe2 /tools
parentc7b9883ad07a943fe372f7f9f2c5f4c550a790a1 (diff)
downloadNim-084ed53baa0fc439766f7c666ef856785ef6ef1f.tar.gz
make nimgrep compile without warnings
Diffstat (limited to 'tools')
-rw-r--r--tools/nimgrep.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/nimgrep.nim b/tools/nimgrep.nim
index a1f564fbc..8dff722ec 100644
--- a/tools/nimgrep.nim
+++ b/tools/nimgrep.nim
@@ -135,7 +135,7 @@ proc processFile(filename: string) =
   if optVerbose in options:
     stdout.writeLine(filename)
     stdout.flushFile()
-  var pegp: TPeg
+  var pegp: Peg
   var rep: Regex
   var result: string
 
@@ -213,7 +213,7 @@ proc hasRightExt(filename: string, exts: seq[string]): bool =
     if os.cmpPaths(x, y) == 0: return true
 
 proc styleInsensitive(s: string): string =
-  template addx: stmt =
+  template addx =
     result.add(s[i])
     inc(i)
   result = ""