Rename lua--function-name-rx, use it in font-lock keywords init
lua-calculate-indentation-override: unindent to the last block-close token

This should help in situations like

    add_callback(function()
        ....
    end)
    ^
    `- to unindent properly we must analyze ')', 'end' is not enough
Rewrite lua-beginning-of-proc