Subject: bug#73975: closed (Re: bug#73975: 30.0.91; [PATCH] php-ts-mode: highlight namespace name in "use" clause.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 24 Oct 2024 15:41:02 +0000

Your bug report

#73975: 30.0.91; [PATCH] php-ts-mode: highlight namespace name in "use" clause.

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
73975: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=73975
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#73975: 30.0.91; [PATCH] php-ts-mode: highlight namespace name in "use" clause.
From: Eli Zaretskii <[email-masked]>
To: Vincenzo Pupillo <[email-masked]>
Cc: [email-masked]
Date: Thu, 24 Oct 2024 18:39:22 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Vincenzo Pupillo <[email-masked]>
> Date: Wed, 23 Oct 2024 21:16:40 +0200
> 
> this small patch fix the highlighting of the namespace name in the “use” 
> clause.
> Has been tested with both the latest and earlier versions of the grammar.

Thanks, installed on the emacs-30 branch, and closing the bug.

Subject: 30.0.91; [PATCH] php-ts-mode: highlight namespace name in "use" clause.
From: Vincenzo Pupillo <[email-masked]>
To: [email-masked]
Date: Wed, 23 Oct 2024 21:16:40 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Ciao,
this small patch fix the highlighting of the namespace name in the “use” 
clause.
Has been tested with both the latest and earlier versions of the grammar.

Thank you.

Vincenzo

>From a3f8f437603c79a6f6ac5a93ddf6a2cbd58de86f Mon Sep 17 00:00:00 2001
From: Vincenzo Pupillo <[email-masked]>
Date: Wed, 23 Oct 2024 20:45:48 +0200
Subject: [PATCH] Highlight namespace name in "use" clause.

* lisp/progmodes/php-ts-mode.el (php-ts-mode--font-lock-settings):
New rule to highlight namespace name in "use" clause.
---
 lisp/progmodes/php-ts-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/progmodes/php-ts-mode.el b/lisp/progmodes/php-ts-mode.el
index 1c5fdb6f617..ce8cf8aa340 100644
--- a/lisp/progmodes/php-ts-mode.el
+++ b/lisp/progmodes/php-ts-mode.el
@@ -967,6 +967,7 @@ php-ts-mode--font-lock-settings
      ,@(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)
-- 
2.47.0