immerrr/lua-mode — Issue #26: Funny indenting for functions
Author: rrthomas
Created: 2012-01-19 20:59:13+00:00
State: open

Consider the following code:

local function f ()
return function g()
foo ()
end
end

Note that lua-mode indents the first "end" to line up with the second "function" keyword. But in that case, to be consistent, it should have indented lines 2 and 3 much more. My preferred solution would be for it to indent the first "end" by only two spaces, to line up with the "return". (I have lua-indent-level set to 2, but no other customization.)