Skip to content

Commit 241bd82

Browse files
authored
Merge pull request #679 from emacs-php/optimize/byte-compilation
Use byte-compile to lambda of syntax-propertize-rules
2 parents d313790 + e384614 commit 241bd82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisp/php-mode.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ this ^ lineup"
960960
(0 (ignore (php--syntax-propertize-quotes-in-comment (match-beginning 0)))))))
961961

962962
(defmacro php-build-propertize-function ()
963-
`(syntax-propertize-rules ,@php-syntax-propertize-rules))
963+
`(byte-compile (syntax-propertize-rules ,@php-syntax-propertize-rules)))
964964

965965
(defalias 'php-syntax-propertize-function (php-build-propertize-function)))
966966

0 commit comments

Comments
 (0)