diff options
author | Araq <rumpf_a@web.de> | 2017-10-16 00:04:46 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-10-16 00:04:46 +0200 |
commit | c06f73b48456c194a2eb4692f0de63bea09449c4 (patch) | |
tree | 76ce0228af5b08054c5beb6b9effdd913964b156 /compiler | |
parent | ccf99fa5ce4fe992fb80dc89271faa51456c3fa5 (diff) | |
download | Nim-c06f73b48456c194a2eb4692f0de63bea09449c4.tar.gz |
fixes an off-by-one error for nimpretty
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/nimlexbase.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/nimlexbase.nim b/compiler/nimlexbase.nim index c395a3709..2e7416645 100644 --- a/compiler/nimlexbase.nim +++ b/compiler/nimlexbase.nim @@ -123,7 +123,7 @@ proc fillBaseLexer(L: var TBaseLexer, pos: int): int = result = pos + 1 # nothing to do else: fillBuffer(L) - L.offsetBase += pos + L.offsetBase += pos + 1 L.bufpos = 0 result = 0 L.lineStart = result |