summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-07-10 23:55:56 +0200
committerAraq <rumpf_a@web.de>2019-07-10 23:55:56 +0200
commit38bdf1cd7f4d5c6e22a70ee32438beccc7e36690 (patch)
tree7661bad127a6c489e2047dbcd54e2268d5000ec0 /compiler
parentb2f944789630250cb4cc38f9f6b0a063d6e8a703 (diff)
downloadNim-38bdf1cd7f4d5c6e22a70ee32438beccc7e36690.tar.gz
minor style changes
Diffstat (limited to 'compiler')
-rw-r--r--compiler/linter.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/linter.nim b/compiler/linter.nim
index 2d2baeff5..9aa2272f2 100644
--- a/compiler/linter.nim
+++ b/compiler/linter.nim
@@ -110,7 +110,7 @@ proc differs(conf: ConfigRef; info: TLineInfo; newName: string): string =
   #inc first, skipIgnoreCase(line, "proc ", first)
   while first > 0 and line[first-1] in Letters: dec first
   if first < 0: return
-  if line[first] == '`': inc first
+  if first+1 < line.len and line[first] == '`': inc first
 
   let last = first+identLen(line, first)-1
   result = differ(line, first, last, newName)