File tree 1 file changed +13
-14
lines changed
1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -995,20 +995,19 @@ HEREDOC-START."
995
995
996
996
(eval-and-compile
997
997
(defconst php-syntax-propertize-rules
998
- `((php-heredoc-start-re
999
- (0 (ignore (php--syntax-propertize-heredoc
1000
- (match-beginning 0 )
1001
- (or (match-string 1 ) (match-string 2 ) (match-string 3 ))
1002
- (null (match-string 3 ))))))
1003
- (,(rx " #[" )
1004
- (0 (ignore (php--syntax-propertize-attributes (match-beginning 0 )))))
1005
- (,(rx (or " '" " \" " ))
1006
- (0 (ignore (php--syntax-propertize-quotes-in-comment (match-beginning 0 )))))))
1007
-
1008
- (defmacro php-build-propertize-function ()
1009
- `(byte-compile (syntax-propertize-rules ,@php-syntax-propertize-rules )))
1010
-
1011
- (defalias 'php-syntax-propertize-function (php-build-propertize-function)))
998
+ (syntax-propertize-precompile-rules
999
+ (php-heredoc-start-re
1000
+ (0 (ignore (php--syntax-propertize-heredoc
1001
+ (match-beginning 0 )
1002
+ (or (match-string 1 ) (match-string 2 ) (match-string 3 ))
1003
+ (null (match-string 3 ))))))
1004
+ ((rx " #[" )
1005
+ (0 (ignore (php--syntax-propertize-attributes (match-beginning 0 )))))
1006
+ ((rx (or " '" " \" " ))
1007
+ (0 (ignore (php--syntax-propertize-quotes-in-comment (match-beginning 0 ))))))))
1008
+
1009
+ (defalias 'php-syntax-propertize-function
1010
+ (syntax-propertize-rules php-syntax-propertize-rules))
1012
1011
1013
1012
(defun php--syntax-propertize-heredoc (start id _is-heredoc )
1014
1013
" Apply propertize Heredoc and Nowdoc from START, with ID and IS-HEREDOC."
You can’t perform that action at this time.
0 commit comments