]> git.eshelyaron.com Git - emacs.git/commit
Fix php-ts-mode font-lock for latest PHP grammar (bug#73516)
authorVincenzo Pupillo <v.pupillo@gmail.com>
Fri, 27 Sep 2024 11:07:06 +0000 (13:07 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 30 Sep 2024 19:40:26 +0000 (21:40 +0200)
commitcde659206133ddca341f308e3ee2b8fe5ad55b01
tree8ceeea1498876c099b14a6f9594c68faa3420351
parente3a7ae5c6a84e5c8aeab09c940e4d018f286f9ba
Fix php-ts-mode font-lock for latest PHP grammar (bug#73516)

Version 0.23 of the PHP grammar introduced some changes that
affect the font lock.

* lisp/progmodes/php-ts-mode.el
(php-ts-mode--language-source-alist): Update php, html, js and css
grammars version.
(php-ts-mode--parent-html-heuristic): Fix docstring
(php-ts-mode--test-namespace-name-as-prefix-p): New function.
(php-ts-mode--test-namespace-aliasing-clause-p): New function.
(php-ts-mode--test-namespace-use-group-clause-p): New function.
(php-ts-mode--font-lock-settings): Use the new functions.

(cherry picked from commit 69d8f9d1b709de36f45c0ce1dd04b8b30f0fa019)
lisp/progmodes/php-ts-mode.el