summaryrefslogtreecommitdiffstats
path: root/runtime/indent/lua.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-10 15:59:26 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-10 15:59:26 +0100
commitacb4f221c715a333f4c49a2235a8006c6ac6e4d5 (patch)
treed4e2086fb071dbc64520d3c4d99b4d757bc7b651 /runtime/indent/lua.vim
parentd08a8d4a31ed10225aca6be7565220fa541c32ac (diff)
Updated runtime files.
Diffstat (limited to 'runtime/indent/lua.vim')
-rw-r--r--runtime/indent/lua.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/indent/lua.vim b/runtime/indent/lua.vim
index 5f049d4585..d1d2c0d600 100644
--- a/runtime/indent/lua.vim
+++ b/runtime/indent/lua.vim
@@ -2,7 +2,7 @@
" Language: Lua script
" Maintainer: Marcus Aurelius Farias <marcus.cf 'at' bol.com.br>
" First Author: Max Ischenko <mfi 'at' ukr.net>
-" Last Change: 2014 Nov 12
+" Last Change: 2016 Jan 10
" Only load this indent file when no other was loaded.
if exists("b:did_indent")
@@ -52,9 +52,9 @@ function! GetLuaIndent()
endif
endif
- " Subtract a 'shiftwidth' on end, else (and elseif), until and '}'
+ " Subtract a 'shiftwidth' on end, else, elseif, until and '}'
" This is the part that requires 'indentkeys'.
- let midx = match(getline(v:lnum), '^\s*\%(end\>\|else\>\|until\>\|}\)')
+ let midx = match(getline(v:lnum), '^\s*\%(end\>\|else\>\|elseif\>\|until\>\|}\)')
if midx != -1 && synIDattr(synID(v:lnum, midx + 1, 1), "name") != "luaComment"
let ind = ind - &shiftwidth
endif