diff options
author | Araq <rumpf_a@web.de> | 2019-07-10 23:55:56 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-07-10 23:55:56 +0200 |
commit | 38bdf1cd7f4d5c6e22a70ee32438beccc7e36690 (patch) | |
tree | 7661bad127a6c489e2047dbcd54e2268d5000ec0 /tools/nimgrep.nim | |
parent | b2f944789630250cb4cc38f9f6b0a063d6e8a703 (diff) | |
download | Nim-38bdf1cd7f4d5c6e22a70ee32438beccc7e36690.tar.gz |
minor style changes
Diffstat (limited to 'tools/nimgrep.nim')
-rw-r--r-- | tools/nimgrep.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/nimgrep.nim b/tools/nimgrep.nim index 0620fa357..a5d29f13f 100644 --- a/tools/nimgrep.nim +++ b/tools/nimgrep.nim @@ -89,14 +89,14 @@ proc countLines(s: string, first, last: int): int = proc beforePattern(s: string, first: int): int = result = first-1 while result >= 0: - if s[result] in NewLines: break + if s[result] in Newlines: break dec(result) inc(result) proc afterPattern(s: string, last: int): int = result = last+1 while result < s.len: - if s[result] in NewLines: break + if s[result] in Newlines: break inc(result) dec(result) @@ -280,7 +280,7 @@ for kind, key, val in getopt(): replacement = key else: filenames.add(key) - of cmdLongoption, cmdShortOption: + of cmdLongOption, cmdShortOption: case normalize(key) of "find", "f": incl(options, optFind) of "replace", "r": incl(options, optReplace) |