diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2014-11-12 17:29:57 -0500 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2014-11-12 17:29:57 -0500 |
commit | fcd60e26dec14abd3b9f65f9f8d2b95eba6db104 (patch) | |
tree | 3d344dcfcee1aba8ce6719178f5f597560a83d0c /modules/ansi_c | |
parent | f4cc2ff3bdac044f30bc08cdd3ca283db825b4b8 (diff) |
Code and documentation cleanup.
Diffstat (limited to 'modules/ansi_c')
-rw-r--r-- | modules/ansi_c/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ansi_c/init.lua b/modules/ansi_c/init.lua index f9661ee7..bb1af31f 100644 --- a/modules/ansi_c/init.lua +++ b/modules/ansi_c/init.lua @@ -55,8 +55,8 @@ textadept.editing.autocompleters.ansi_c = function() local name = line:match('^%S+') if name:find(name_patt) and not name:find('^!') and not list[name] then local fields = line:match(';"\t(.*)$') - if (fields:match('class:(%S+)') or fields:match('enum:(%S+)') or - fields:match('struct:(%S+)') or fields:match('typedef:(%S+)') or + if (fields:find('class:%S+') or fields:find('enum:%S+') or + fields:find('struct:%S+') or fields:find('typedef:%S+') or '') == symbol then local k = xpms[fields:sub(1, 1)] list[#list + 1] = ("%s%s%d"):format(name, sep, xpms[k]) |