Permalink
Browse files

Fix two compiler warnings

This patch corrects the compiler warnings related to
`font-lock-syntactic-keywords' and `c-vsemi-status-unknown-p'.
  • Loading branch information...
1 parent 25c57ff commit 78cb2fc0d12dbc46c20465a9f9a9fcc2e8b40afd Emanuele Tomasi committed with Eric James Michael Ritz Sep 21, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 php-mode.el
View
@@ -71,7 +71,8 @@
(require 'custom)
(require 'etags)
(eval-when-compile
- (require 'regexp-opt))
+ (require 'regexp-opt)
+ (defvar c-vsemi-status-unknown-p))
(require 'flymake)
;; Local variables
@@ -474,7 +475,7 @@ This is was done due to the problem reported here:
(modify-syntax-entry ?` "\"" php-mode-syntax-table)
(modify-syntax-entry ?\" "\"" php-mode-syntax-table)
- (set (make-local-variable 'font-lock-syntactic-keywords)
+ (set (make-local-variable 'syntax-propertize-function)
'(("\\(\"\\)\\(\\\\.\\|[^\"\n\\]\\)*\\(\"\\)" (1 "\"") (3 "\""))
("\\(\'\\)\\(\\\\.\\|[^\'\n\\]\\)*\\(\'\\)" (1 "\"") (3 "\""))))

0 comments on commit 78cb2fc

Please sign in to comment.