mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
Fixed ugly bug in Matcher
This commit is contained in:
parent
ac853957ae
commit
cc9f3d0ed9
2 changed files with 3 additions and 3 deletions
|
|
@ -34,8 +34,8 @@ fun createMatcher (buf, pos, line, col) {
|
|||
-- Moves the position pointer on given number of characters.
|
||||
fun shift (n) {
|
||||
local i, l = line, c = col;
|
||||
|
||||
for i := pos, i < n, i := i+1 do
|
||||
|
||||
for i := pos, i < pos+n, i := i+1 do
|
||||
case buf [i] of
|
||||
'\n' -> l := l + 1; c := 1
|
||||
| '\t' -> c := c + 8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue