Permalink
Browse files

Revert "Fix two compiler warnings"

This reverts commit 78cb2fc.

The commit prevents php-mode from properly applying syntax
highlighting in most cases.  I suspect this is because
`syntax-propertize-function’ has an incorrect value.
  • Loading branch information...
Eric James Michael Ritz
Eric James Michael Ritz committed Sep 21, 2012
1 parent 89887f2 commit 875d33afbb2964dd432ab2064b78416c6aaf032e
Showing with 2 additions and 3 deletions.
  1. +2 −3 php-mode.el
View
@@ -71,8 +71,7 @@
(require 'custom)
(require 'etags)
(eval-when-compile
- (require 'regexp-opt)
- (defvar c-vsemi-status-unknown-p))
+ (require 'regexp-opt))
(require 'flymake)
;; Local variables
@@ -475,7 +474,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 'syntax-propertize-function)
+ (set (make-local-variable 'font-lock-syntactic-keywords)
'(("\\(\"\\)\\(\\\\.\\|[^\"\n\\]\\)*\\(\"\\)" (1 "\"") (3 "\""))
("\\(\'\\)\\(\\\\.\\|[^\'\n\\]\\)*\\(\'\\)" (1 "\"") (3 "\""))))

0 comments on commit 875d33a

Please sign in to comment.