Skip to content

Commit

Permalink
Add support for Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
jbernard authored and tpope committed Dec 19, 2010
1 parent 780fa56 commit b674cb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/endwise.vim
Expand Up @@ -32,6 +32,11 @@ augroup endwise " {{{1
\ let b:endwise_addition = 'end&' |
\ let b:endwise_words = 'fu\%[nction],wh\%[ile],if,for,try' |
\ let b:endwise_syngroups = 'vimFuncKey,vimNotFunc,vimCommand'
autocmd FileType lua
\ let b:endwise_addition = '\=submatch(0)=="{" ? "}" : "end"' |
\ let b:endwise_words = 'function,do,then' |
\ let b:endwise_pattern = '^\s*\zs\%(function\|do\|then\)\>\%(.*[^.:@$]\<end\>\)\@!\|\<then\|do\ze\%(\s*|.*|\)\=\s*$' |
\ let b:endwise_syngroups = 'luaFunction,luaStatement,luaCond'
augroup END " }}}1

" Maps {{{1
Expand Down

0 comments on commit b674cb5

Please sign in to comment.