Permalink
Browse files

Post-refactoring fix: evaluate string variables in font-lock-defaults…

… value

Should fix issue #53.
  • Loading branch information...
1 parent cee511c commit a1dc8503c963eaf4104e61c6b2b9f37380399b87 @immerrr committed Mar 21, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 lua-mode.el
View
@@ -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)

0 comments on commit a1dc850

Please sign in to comment.