Skip to content

Commit

Permalink
Merge pull request #531 from emacs-php/fix/propertize-range
Browse files Browse the repository at this point in the history
Reduce the range of buffer propertization by variables
  • Loading branch information
zonuexe authored May 22, 2019
2 parents bec22bf + d5b04d8 commit 6a269f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion php-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,10 @@ After setting the stylevars run hooks according to STYLENAME
(when (>= emacs-major-version 25)
(with-silent-modifications
(save-excursion
(php-syntax-propertize-function (point-min) (point-max))))))
(let* ((start (point-min))
(end (min (point-max)
(+ start syntax-propertize-chunk-size))))
(php-syntax-propertize-function start end))))))

(declare-function semantic-create-imenu-index "semantic/imenu" (&optional stream))

Expand Down

0 comments on commit 6a269f5

Please sign in to comment.