Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor refactoring of omnicomplete.lua

  • Loading branch information...
commit 5bb59a235899361caf2a8d083b63e6bed885d007 1 parent 865c32f
@xolox authored
Showing with 9 additions and 11 deletions.
  1. +7 −9 misc/lua-ftplugin/omnicomplete.lua
  2. +2 −2 plugin/lua-ftplugin.vim
View
16 misc/lua-ftplugin/omnicomplete.lua
@@ -3,7 +3,7 @@
--[[
Author: Peter Odding <peter@peterodding.com>
-Last Change: June 18, 2011
+Last Change: July 29, 2011
URL: http://peterodding.com/code/vim/lua-ftplugin
This Lua script is executed by the Lua file type plug-in for Vim to provide
@@ -54,14 +54,12 @@ local function dump(table, path, cache)
else
addmatch(path, 'v', nil)
end
- else
- if vtype == 'table' and not cache[value] then
- cache[value] = true
- if dump(value, path, cache) then
- printed = true
- else
- addmatch(path, 'm', path .. '[]')
- end
+ elseif not cache[value] then
+ cache[value] = true
+ if dump(value, path, cache) then
+ printed = true
+ else
+ addmatch(path, 't', path .. '[]')
end
end
end
View
4 plugin/lua-ftplugin.vim
@@ -1,7 +1,7 @@
" Vim file type plug-in
" Language: Lua 5.1
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: June 18, 2011
+" Last Change: August 27, 2011
" URL: http://peterodding.com/code/vim/lua-ftplugin
" Support for automatic update using the GLVS plug-in.
@@ -12,7 +12,7 @@ if &cp || exists('g:loaded_lua_ftplugin')
finish
endif
-let g:lua_ftplugin_version = '0.6.17'
+let g:lua_ftplugin_version = '0.6.18'
" Commands to manually check for syntax errors and undefined globals.
command! -bar LuaCheckSyntax call xolox#lua#checksyntax()

0 comments on commit 5bb59a2

Please sign in to comment.
Something went wrong with that request. Please try again.