aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2021-03-20 12:37:12 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2021-03-20 12:37:12 +0100
commit31d6d3ab854fa5191c49dda0db6ccfae7c4133fb (patch)
tree657941f60c9e7a5557acbe508302ffe00a95f2a6
parentc668b0905cc80daf11b85bb28f4573a3dd653703 (diff)
downloadvis-spellcheck-31d6d3ab854fa5191c49dda0db6ccfae7c4133fb.tar.gz
ignore two luacheck shadowing warnings
-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