From 0c4915da62a96bf6db20377ce11fa887b6271ad9 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 2 Apr 2016 23:35:15 -0400 Subject: Code cleanup. Do not use `ipairs()` and use more consistent variable names among other things. --- modules/ansi_c/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/ansi_c') diff --git a/modules/ansi_c/init.lua b/modules/ansi_c/init.lua index 6314fea2..950479d3 100644 --- a/modules/ansi_c/init.lua +++ b/modules/ansi_c/init.lua @@ -65,8 +65,8 @@ textadept.editing.autocompleters.ansi_c = function() local fields = tag_line:match(';"\t(.*)$') if (fields:match('class:(%S+)') or fields:match('enum:(%S+)') or fields:match('struct:(%S+)') or '') == symbol then - list[#list + 1] = ("%s%s%d"):format(name, sep, - xpms[fields:sub(1, 1)]) + list[#list + 1] = string.format('%s%s%d', name, sep, + xpms[fields:sub(1, 1)]) list[name] = true elseif name == symbol and fields:match('typeref:') then -- For typeref, change the lookup symbol to the referenced name and -- cgit v1.2.3