From 31d6d3ab854fa5191c49dda0db6ccfae7c4133fb Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 20 Mar 2021 12:37:12 +0100 Subject: ignore two luacheck shadowing warnings --- spellcheck.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spellcheck.lua') 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 -- cgit v1.2.3