emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/lua-mode a0490fc 150/468: lua-font-lock-keywords: highligh


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode a0490fc 150/468: lua-font-lock-keywords: highlight hash-bang line as comment (#17)
Date: Thu, 5 Aug 2021 04:58:26 -0400 (EDT)

branch: elpa/lua-mode
commit a0490fc1ee1cd37f6f15afdb5b40203d5c938ba1
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>

    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

[Prev in Thread] Current Thread [Next in Thread]