]> git.eshelyaron.com Git - emacs.git/commitdiff
Highlight namespace name in "use" clause.
authorVincenzo Pupillo <v.pupillo@gmail.com>
Wed, 23 Oct 2024 18:45:48 +0000 (20:45 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 29 Oct 2024 09:49:18 +0000 (10:49 +0100)
* lisp/progmodes/php-ts-mode.el (php-ts-mode--font-lock-settings):
New rule to highlight namespace name in "use" clause.  (Bug#73975)

(cherry picked from commit 0d8d5f10ffc62da35c4d317ed4363995e5e62f65)

lisp/progmodes/php-ts-mode.el

index 6e6d421110cf1c4fad55ac3f960743f431e703de..c8f50f7feacee3f64496117b318708b92248530d 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)