branch: elpa/lua-mode commit 89dbb806903732b0d2cc81abd36cfeee457a8656 Author: juergen <juergen> Commit: juergen <juergen>
imenu fix for local functions --- lua-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua-mode.el b/lua-mode.el index 93e966a..76f7251 100755 --- a/lua-mode.el +++ b/lua-mode.el @@ -36,6 +36,8 @@ ;;; Commentary: +;; Thanks to Fabien <fleutot<at>gmail.com> for imenu patches. + ;; Special Thanks to Simon Marshall <sim...@mail.esrin.esa.it> for ;; font-lock patches. @@ -231,7 +233,7 @@ traceback location." "Default expressions to highlight in Lua mode."))) (defvar lua-imenu-generic-expression - '((nil "^[ \t]*function[ \t]+\\(\\(\\sw:\\|\\sw_\\|\\sw\\.\\|\\sw\\)+\\)" 1)) + '((nil "^[ \t]*\\(?:local[ \t]+\\)?function[ \t]+\\(\\(\\sw:\\|\\sw_\\|\\sw\\.\\|\\sw\\)+\\)" 1)) "Imenu generic expression for lua-mode. See `imenu-generic-expression'.") (defvar lua-mode-abbrev-table nil