GNU bug report logs - #60441
[PATCH] Fontification of function declarators with reference return types is incorrect in c++-ts-mode

Previous Next

Package: emacs;

Reported by: Daniel Martín <mardani29 <at> yahoo.es>

Date: Sat, 31 Dec 2022 00:52:02 UTC

Severity: normal

Tags: patch

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Yuan Fu <casouri <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#60441: closed ([PATCH] Fontification of function declarators
 with reference return types is incorrect in c++-ts-mode)
Date: Mon, 02 Jan 2023 00:27:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 1 Jan 2023 16:26:14 -0800
with message-id <462D9A99-5D8D-4AD5-97C3-017389635E22 <at> gmail.com>
and subject line Re: bug#60441: [PATCH] Fontification of function declarators with  reference return types is incorrect in c++-ts-mode
has caused the debbugs.gnu.org bug report #60441,
regarding [PATCH] Fontification of function declarators with reference return types is incorrect in c++-ts-mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
60441: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60441
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Daniel Martín <mardani29 <at> yahoo.es>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Fontification of function declarators with reference return
 types is incorrect in c++-ts-mode
Date: Sat, 31 Dec 2022 01:51:02 +0100
[Message part 3 (text/plain, inline)]
Given the following valid C++ code:

class Foo {
public:
        Bar& getBar();
};

c++-ts-mode does not fontify getBar with the
font-lock-function-name-face face.

I've attached a fix to treat reference declarators in
c-ts-mode--declarator-identifier similarly to pointer_declarators.

[0001-Fix-fontification-of-C-functions-with-reference-retu.patch (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Yuan Fu <casouri <at> gmail.com>
To: Daniel Martín <mardani29 <at> yahoo.es>
Cc: 60441-done <at> debbugs.gnu.org
Subject: Re: bug#60441: [PATCH] Fontification of function declarators with 
 reference return types is incorrect in c++-ts-mode
Date: Sun, 1 Jan 2023 16:26:14 -0800
Daniel Martín <mardani29 <at> yahoo.es> writes:

> Given the following valid C++ code:
>
> class Foo {
> public:
>         Bar& getBar();
> };
>
> c++-ts-mode does not fontify getBar with the
> font-lock-function-name-face face.
>
> I've attached a fix to treat reference declarators in
> c-ts-mode--declarator-identifier similarly to pointer_declarators.

Applied, thanks!

Yuan


This bug report was last modified 2 years and 137 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.