Highlight namespace name in "use" clause.
authorVincenzo Pupillo <v.pupillo@gmail.com>
Wed, 23 Oct 2024 18:45:48 +0000 (20:45 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 24 Oct 2024 15:38:25 +0000 (18:38 +0300)
* lisp/progmodes/php-ts-mode.el (php-ts-mode--font-lock-settings):
New rule to highlight namespace name in "use" clause.  (Bug#73975)

lisp/progmodes/php-ts-mode.el

index 1c5fdb6f6179393bb95fd73070cb4124ef7428c8..ce8cf8aa3401d0fee2d33b548ff2d2ee53b6f965 100644 (file)
@@ -967,6 +967,7 @@ characters of the current line."
      ,@(when (not (php-ts-mode--test-namespace-use-group-clause-p))
          '((namespace_use_group
             (namespace_use_clause (name) @font-lock-type-face))))
+     (namespace_use_clause (name) @font-lock-type-face)
      (namespace_name "\\" @font-lock-delimiter-face)
      (namespace_name (name) @font-lock-type-face)
      (use_declaration (name) @font-lock-property-use-face)