tpope/vim-endwise — pull request #52 by telemachus (2014-02-21 17:13:00+00:00)
Title: Add support for local functions in Lua

With this change both `function foo()...` and `local function foo()` will
trigger the addition of an `end`.

(This also should close #49. Thanks for notes there.)