GNU bug report logs -
#72796
30.0.50; [PATCH] php-ts-mode: Improved font locking
Previous Next
Reported by: Vincenzo Pupillo <v.pupillo <at> gmail.com>
Date: Sat, 24 Aug 2024 21:43:02 UTC
Severity: normal
Tags: patch
Found in version 30.0.50
Done: Yuan Fu <casouri <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72796 in the body.
You can then email your comments to 72796 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#72796
; Package
emacs
.
(Sat, 24 Aug 2024 21:43:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Vincenzo Pupillo <v.pupillo <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 24 Aug 2024 21:43:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
This patch improves font locking, particularly for constants and some
operators. It also extends compatibility to the latest version of the PHP
parser.
The patch can also be applied to version 31.0.50 .
Thanks
Vincenzo
[0001-Improve-php-ts-mode-font-lock-and-support-latest-par.patch (text/x-patch, attachment)]
Reply sent
to
Yuan Fu <casouri <at> gmail.com>
:
You have taken responsibility.
(Mon, 26 Aug 2024 07:55:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Vincenzo Pupillo <v.pupillo <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 26 Aug 2024 07:55:01 GMT)
Full text and
rfc822 format available.
Message #10 received at 72796-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> On Aug 24, 2024, at 2:41 PM, Vincenzo Pupillo <v.pupillo <at> gmail.com> wrote:
>
> Hi,
> This patch improves font locking, particularly for constants and some
> operators. It also extends compatibility to the latest version of the PHP
> parser.
> The patch can also be applied to version 31.0.50 .
>
> Thanks
> Vincenzo
[0001-Improve-php-ts-mode-font-lock-and-support-latest-par.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
Thanks Vince! I merged your patch to emacs-30. BTW, in the future it’s probably better to make the code work for both old and new grammar versions (whenever you can), that way people who installed the old grammar from who-knows-where can still use the mode. (I’m working on some tool to make it simpler to define alternative font-lock rules that works on multiple grammar versions.)
Yuan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#72796
; Package
emacs
.
(Mon, 26 Aug 2024 10:19:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 72796-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thanks Yuan.
I also tested the patch with the previous version of Grammar (v0.22.5) and
found no problems. Did you experience any problems?
Since php-ts-mode is not available in emacs-29 and emacs-30 has not been
released, perhaps it is better to support grammars from the release date.
Or is it better to support from the date of the first merge? I have no
idea which is the best policy.
Thanks.
Vincenzo
Il giorno lun 26 ago 2024 alle ore 09:52 Yuan Fu <casouri <at> gmail.com> ha
scritto:
>
>
> > On Aug 24, 2024, at 2:41 PM, Vincenzo Pupillo <v.pupillo <at> gmail.com>
> wrote:
> >
> > Hi,
> > This patch improves font locking, particularly for constants and some
> > operators. It also extends compatibility to the latest version of the
> PHP
> > parser.
> > The patch can also be applied to version 31.0.50 .
> >
> > Thanks
> > Vincenzo
> Thanks Vince! I merged your patch to emacs-30. BTW, in the future it’s
> probably better to make the code work for both old and new grammar versions
> (whenever you can), that way people who installed the old grammar from
> who-knows-where can still use the mode. (I’m working on some tool to make
> it simpler to define alternative font-lock rules that works on multiple
> grammar versions.)
>
> Yuan
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#72796
; Package
emacs
.
(Mon, 26 Aug 2024 11:34:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 72796 <at> debbugs.gnu.org (full text, mbox):
> Cc: 72796-done <at> debbugs.gnu.org
> From: Vincenzo Pupillo <v.pupillo <at> gmail.com>
> Date: Mon, 26 Aug 2024 12:16:23 +0200
>
> Since php-ts-mode is not available in emacs-29 and emacs-30 has not been released, perhaps it is better to
> support grammars from the release date. Or is it better to support from the date of the first merge? I have no
> idea which is the best policy.
We cannot be sure that users of this mode will necessarily have the
latest grammar library. It depends on various factors, like the
installation policies on the user's system. So I think it's best to
be tolerant to the version of the grammar, if this is feasible.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 24 Sep 2024 11:24:11 GMT)
Full text and
rfc822 format available.
This bug report was last modified 327 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.