Skip to content

Commit 0b63d2d

Browse files
authored
Merge pull request #415 from fallchildren/master
Fix delayed font-locking issue
2 parents 5598dd3 + 40ef9f6 commit 0b63d2d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

php-mode.el

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,11 @@ SYMBOL
485485
php nil)
486486

487487
(c-lang-defconst c-before-font-lock-functions
488-
php (if (fboundp #'c-depropertize-new-text)
489-
'(c-depropertize-new-text)
490-
nil))
488+
php (let (functions)
489+
(when (fboundp #'c-change-expand-fl-region)
490+
(cl-pushnew 'c-change-expand-fl-region functions))
491+
(when (fboundp #'c-depropertize-new-text)
492+
(cl-pushnew 'c-depropertize-new-text functions))))
491493

492494
;; Make php-mode recognize opening tags as preprocessor macro's.
493495
;;

0 commit comments

Comments
 (0)