]> git.eshelyaron.com Git - emacs.git/commit
Improve font-locking and indentation in 'php-ts-mode'
authorVincenzo Pupillo <v.pupillo@gmail.com>
Thu, 7 Nov 2024 11:55:50 +0000 (12:55 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 20 Nov 2024 12:34:34 +0000 (13:34 +0100)
commit6c08ef00a24140d9a456d8859d1c9b11c95a3f9e
tree8c0056775ead0a0b257e9d7fae29c0fb1459c710
parent1ac4e40d9c7561c5d1311f3fa88814b2b6d2a2e6
Improve font-locking and indentation in 'php-ts-mode'

* lisp/progmodes/php-ts-mode.el (php-ts-mode--language-source-alist):
Updated to latest version of PHP grammar.
(php-ts-mode--indent-styles): 'namespace_use_declaration' is now
correctly indented.
(php-ts-mode--operators): Support of the "argument unpacking
operator".
(php-ts-mode--font-lock-settings): 'nullsafe_member_call_expression'
is now highlighted correctly.
(php-ts-mode--comment-indent-new-line): Delete trailing whitespace
before inserting newline (see bug#73900 for more information).
Bug#74239

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