From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vincenzo Pupillo Newsgroups: gmane.emacs.bugs Subject: bug#73975: 30.0.91; [PATCH] php-ts-mode: highlight namespace name in "use" clause. Date: Wed, 23 Oct 2024 21:16:40 +0200 Message-ID: <2708547.lGaqSPkdTl@fedora> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart2523648.XAFRqVoOGU" Content-Transfer-Encoding: 7Bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29581"; mail-complaints-to="usenet@ciao.gmane.io" To: 73975@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 23 21:17:52 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t3grf-0007Yd-Nh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Oct 2024 21:17:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3grP-0003zA-RH; Wed, 23 Oct 2024 15:17:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3grN-0003yz-Ok for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 15:17:34 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3grN-0006oq-G5 for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 15:17:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=SpPxJPi7+gwovxcTYWkhcpHKLsuzpT+m0qIVmSY5zLE=; b=ZSzfuYMWMkF7KjT5mrraod/7Jrn/nBsi7AkJgB6li27fZO6GT6VfgU99DrsZIy46+hP9mqR3ab1DW2a4Ji3AryhGIGDda+i1m9ESuBuIHijfMkbEO/caktkgJKo0u55fHfdLy0X5qM7dOYAUxWv2VFfn8yshvJn0YKB6egecFeVOfQVrnwXWrBZl/iUf4cYI5etCOv2g9jA6hxTQez06dVrCkdmPUkBEP7EpUXWjhJxlHCQqmbbG775tQ52hN37wYTQESDZgL841wmaEgXTXlxS7Fhzdfm0uHfZ2mHKERsjbP42DaEz6VdbzKnmHNABFuY4cND8TAnL7krzPGz3oug==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3grq-0003T5-Od for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 15:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincenzo Pupillo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Oct 2024 19:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73975 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172971104213273 (code B ref -1); Wed, 23 Oct 2024 19:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Oct 2024 19:17:22 +0000 Original-Received: from localhost ([127.0.0.1]:60854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3grC-0003S1-Ef for submit@debbugs.gnu.org; Wed, 23 Oct 2024 15:17:22 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3gr8-0003Rr-Es for submit@debbugs.gnu.org; Wed, 23 Oct 2024 15:17:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3gqb-0003vm-MV for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 15:16:46 -0400 Original-Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3gqa-0006kv-67 for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 15:16:45 -0400 Original-Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a9a0f198d38so8387566b.1 for ; Wed, 23 Oct 2024 12:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729711002; x=1730315802; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=SpPxJPi7+gwovxcTYWkhcpHKLsuzpT+m0qIVmSY5zLE=; b=QBTBjzt7is0T4uBKA/8jF9OLXSeHvjN72IdaBEbiCYRXYldc4OHD2g5GY9sPKWPriC T2G6zyeTsh2KmzG4CVmvZcy6Tk8DZHn0U/uUV65756877gZz114d4d8um0YS1ALIo6rM Tnugj/e0oJd01Kss1+bUyAf7hrsda9LACaLBylFnZ/vW9HYel5YqKa7XPaPryJWRCOtD fxJgMXkxqk9e3cbCWGfjGPi3sS49TwH8IbQO1HFDW9uh7nS0KnK+/ETR4sc/HiB3dNfn YZL0Bgpphp11hv0giMJIJ8OGPkIfK8bZcy1aW5k/ut/Qp7ENzGILegZVmgyiNwhQ/5i2 2Rxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729711002; x=1730315802; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SpPxJPi7+gwovxcTYWkhcpHKLsuzpT+m0qIVmSY5zLE=; b=ngEZyOtDYOyGwlribq/YJlvAHewwO9WMqKXigbIu6oRE11/KZSPe/pwFU3zkZISWax 3KsMYkI+tSFQQ46pQjmW+Vt0+lsw8UoA2HuSD5IYlXXZvowQB1J4WAqBld1+h2G+0YLK A40LN9bwHMwK0ahSu+LJ5QX6ST8+/wq+Gdo6YXmvDNh6cCIIr3SDiNnL7ySL6w4hgOKO Dv3ZTs1AgaNKa2c0aKB8YkcOo63LSfnCfsuVkXBNIqheYO46jzQaqpGEL5Rsb7+0WvEU 4UKw80j7VjqlFyx2xwzRT+zmtUMJ8fM9s1u6/e3Su1PNPLa4Ttke2fexCDYWQ/gG8OFL kqgw== X-Gm-Message-State: AOJu0YxM4v+bSyuzzAYgP6vKnLAJ8DGE8BFWpDHGglqFWe0cPow5uH/l fPXwcjR8PlhVj3Se5ssG/89/SVrBtows5A2iIuA3vFza2PTjxTjceQuqvQ== X-Google-Smtp-Source: AGHT+IGaSETXWxlijepkZs3wK4L2YvjaUna08/30k2dNyVcs8J3yhKs0/mcauCqmHJ2LaEiGcsW1RQ== X-Received: by 2002:a17:906:730b:b0:a99:e5d5:5654 with SMTP id a640c23a62f3a-a9abf84d04amr345831066b.6.1729711002108; Wed, 23 Oct 2024 12:16:42 -0700 (PDT) Original-Received: from fedora.localnet (2-230-139-124.ip202.fastwebnet.it. [2.230.139.124]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9a915993afsm514381366b.191.2024.10.23.12.16.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 12:16:41 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=v.pupillo@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294156 Archived-At: This is a multi-part message in MIME format. --nextPart2523648.XAFRqVoOGU Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Ciao, this small patch fix the highlighting of the namespace name in the =E2=80= =9Cuse=E2=80=9D=20 clause. Has been tested with both the latest and earlier versions of the grammar. Thank you. Vincenzo --nextPart2523648.XAFRqVoOGU Content-Disposition: attachment; filename="0001-Highlight-namespace-name-in-use-clause.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="0001-Highlight-namespace-name-in-use-clause.patch" >From a3f8f437603c79a6f6ac5a93ddf6a2cbd58de86f Mon Sep 17 00:00:00 2001 From: Vincenzo Pupillo 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 --nextPart2523648.XAFRqVoOGU--