aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloƩ Vulquin <code@toast.bunkerlabs.net>2025-06-08 19:30:56 +0200
committerChloƩ Vulquin <code@toast.bunkerlabs.net>2025-06-08 19:30:56 +0200
commitcbf3867be0f8d7d373cbfb90b5c5354734544ecc (patch)
tree97e19c9827e5dba2a86236336c85827abe5ce9fb
parentfix obvious syntax errors (diff)
patok: use `self:next()` over `self.next()` when dropping tokens
Fixes: #1 Reported-By: https://github.com/AnotherSubatomo
-rw-r--r--patok.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/patok.lua b/patok.lua
index 7e25046..d43efdd 100644
--- a/patok.lua
+++ b/patok.lua
@@ -46,7 +46,7 @@ function new (p)
stop = out[2],
value = string.sub(self.input, out[1], out[2])
}
- if v.drop(match.value) then return self.next() end -- skip this one
+ if v.drop(match.value) then return self:next() end -- skip this one
return match
end
end