aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spellcheck.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/spellcheck.lua b/spellcheck.lua
index 3236430..e322d20 100644
--- a/spellcheck.lua
+++ b/spellcheck.lua
@@ -81,7 +81,7 @@ local ignored = {}
-- Return an iterator over all not ignored typos and their positions in text.
-- The returned iterator is a self contained statefull iterator function closure.
-- Which will return the next typo and its start and finish in the text, starting by 1.
-local function typo_iter(text, typos, ignored)
+local function typo_iter(text, typos, ignored) -- luacheck: ignore ignored
local index = 1
local unfiltered_iterator, iter_state = typos:gmatch('(.-)\n')
@@ -255,7 +255,7 @@ local wrap_lex_func = function(old_lex_func)
end
-- add tokens left after we handled all typos
- for i = i, #tokens, 1 do
+ for i = i, #tokens, 1 do -- luacheck: ignore i
table.insert(new_tokens, tokens[i])
end