branch: elpa/lua-mode commit 0ae7e3e9937628335539b3a8991b35d6cff9ad19 Author: juergen <juergen> Commit: juergen <juergen>
Handle function names in assignments --- lua-mode.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua-mode.el b/lua-mode.el index 7553d2d..eae5f9f 100755 --- a/lua-mode.el +++ b/lua-mode.el @@ -199,6 +199,10 @@ traceback location." ;; Function name declarations. '("^[ \t]*\\<\\(\\(local[ \t]+\\)?function\\)\\>[ \t]+\\(\\(\\sw:\\|\\sw\\.\\|\\sw_\\|\\sw\\)+\\)" (1 font-lock-keyword-face) (3 font-lock-function-name-face nil t)) + + ;; Handle function names in assignments + '("\\(\\(\\sw:\\|\\sw\\.\\|\\sw_\\|\\sw\\)+\\)[ \t]*=[ \t]*\\(function\\)\\>" + (1 font-lock-function-name-face nil t) (3 font-lock-keyword-face)) ; Highlight multi-line comment blocks; since font-lock-mode doesn't ; claim to handle the highlighting of multi-line expressions elegantly