branch: elpa/lua-mode
commit a0490fc1ee1cd37f6f15afdb5b40203d5c938ba1
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>

    lua-font-lock-keywords: highlight hash-bang line as comment (#17)
---
 lua-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lua-mode.el b/lua-mode.el
index a572af8..bc9c716 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -267,6 +267,8 @@ traceback location."
 (defvar lua-font-lock-keywords
   (eval-when-compile
     (list
+     ;; highlight the hash-bang line "#!/foo/bar/lua" as comment
+     '("^#!.*$" . font-lock-comment-face)
      ;; Handle variable names
      ;;  local blalba =
      ;;        ^^^^^^

Reply via email to