diff options
| author | 2025-06-08 19:30:56 +0200 | |
|---|---|---|
| committer | 2025-06-08 19:30:56 +0200 | |
| commit | cbf3867be0f8d7d373cbfb90b5c5354734544ecc (patch) | |
| tree | 97e19c9827e5dba2a86236336c85827abe5ce9fb | |
| parent | fix 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.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
