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)
committerYuan Fu <casouri@gmail.com>
Sat, 28 Sep 2024 08:06:41 +0000 (01:06 -0700)
commit69d8f9d1b709de36f45c0ce1dd04b8b30f0fa019
treec84701798fdfd0e613867f5970b0bfffbd5d8d97
parent68f53e43488648a7508444736d16f90fed248ef5
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.
lisp/progmodes/php-ts-mode.el