branch: elpa/lua-mode
commit a1dc8503c963eaf4104e61c6b2b9f37380399b87
Author: immerrr <[email protected]>
Commit: immerrr <[email protected]>
Post-refactoring fix: evaluate string variables in font-lock-defaults value
Should fix issue #53.
---
lua-mode.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lua-mode.el b/lua-mode.el
index 7917790..c48dd67 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -653,7 +653,7 @@ Groups 6-9 can be used in any of argument regexps."
(setq comint-prompt-regexp lua-prompt-regexp)
(make-local-variable 'lua-default-command-switches)
(set (make-local-variable 'font-lock-defaults)
- '(lua-font-lock-keywords ;; keywords
+ `(lua-font-lock-keywords ;; keywords
nil ;; keywords-only
nil ;; case-fold
;; Not sure, why '_' is a word constituent only when font-locking.
@@ -668,9 +668,9 @@ Groups 6-9 can be used in any of argument regexps."
(beginning-of-defun-function . lua-beginning-of-proc)
(end-of-defun-function . lua-end-of-proc)
(indent-line-function . lua-indent-line)
- (comment-start . lua-comment-start)
- (comment-start-skip . lua-comment-start-skip)
- (imenu-generic-expression . lua-imenu-generic-expression)))
+ (comment-start . ,lua-comment-start)
+ (comment-start-skip . ,lua-comment-start-skip)
+ (imenu-generic-expression . ,lua-imenu-generic-expression)))
;; setup menu bar entry (XEmacs style)
(if (and (featurep 'menubar)