aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/ansi_c/init.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2015-03-16 16:55:12 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2015-03-16 16:55:12 -0400
commit39b5f8728fdd215217d2749c20a2668ecbb5f080 (patch)
tree603e845b6683f6725593c8f12e69183156b6c5c2 /modules/ansi_c/init.lua
parentcb3e886bba78a040d486af518d491cc191cebfd8 (diff)
Code cleanup based on the output of luacheck, a Lua linter.
Diffstat (limited to 'modules/ansi_c/init.lua')
-rw-r--r--modules/ansi_c/init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/ansi_c/init.lua b/modules/ansi_c/init.lua
index 47d39022..45df001f 100644
--- a/modules/ansi_c/init.lua
+++ b/modules/ansi_c/init.lua
@@ -27,7 +27,7 @@ local xpms = setmetatable({
c = XPM.CLASS, d = XPM.SLOT, e = XPM.VARIABLE, f = XPM.METHOD,
g = XPM.TYPEDEF, m = XPM.VARIABLE, s = XPM.STRUCT, t = XPM.TYPEDEF,
v = XPM.VARIABLE
-}, {__index = function(t, k) return 0 end})
+}, {__index = function() return 0 end})
textadept.editing.autocompleters.ansi_c = function()
local list = {}
@@ -54,10 +54,10 @@ textadept.editing.autocompleters.ansi_c = function()
local sep = string.char(buffer.auto_c_type_separator)
for i = 1, #tags_files do
if lfs.attributes(tags_files[i]) then
- for line in io.lines(tags_files[i]) do
- local name = line:match('^%S+')
+ for tag_line in io.lines(tags_files[i]) do
+ local name = tag_line:match('^%S+')
if name:find(name_patt) and not name:find('^!') and not list[name] then
- local fields = line:match(';"\t(.*)$')
+ local fields = tag_line:match(';"\t(.*)$')
if (fields:match('class:(%S+)') or fields:match('enum:(%S+)') or
fields:match('struct:(%S+)') or fields:match('typedef:(%S+)') or
'') == symbol then