emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#60049: closed ([PATCH] Add < and > to the syntax table in c++-ts-mod


From: GNU bug Tracking System
Subject: bug#60049: closed ([PATCH] Add < and > to the syntax table in c++-ts-mode)
Date: Wed, 14 Dec 2022 02:11:02 +0000

Your message dated Tue, 13 Dec 2022 18:10:14 -0800
with message-id <8BF06E36-2ECC-43E4-8704-F02C08FD55C5@gmail.com>
and subject line Re: bug#60049: [PATCH] Add < and > to the syntax table in 
c++-ts-mode
has caused the debbugs.gnu.org bug report #60049,
regarding [PATCH] Add < and > to the syntax table in c++-ts-mode
to be marked as done.

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


-- 
60049: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60049
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] Add < and > to the syntax table in c++-ts-mode Date: Tue, 13 Dec 2022 22:39:36 +0100
Tags: patch


Given the following C++ code (where "|" represents the point):

|Expected<int> getFoo();

If you press C-M-d when c++-ts-mode is enabled, point moves to:

Expected<int> getFoo(|);

In c++-mode, point moves (correctly) to:

Expected<|int> getFoo();

Also, show-paren-mode does not highlight any <> pairs in c++-ts-mode.

My proposed fix is to create a syntax table for c++-ts-mode and add "<"
and ">" to it as open/close delimiters.

The attached patch implements the proposed solution.  Thanks.

Attachment: 0001-Add-and-to-the-syntax-table-in-c-ts-mode.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: bug#60049: [PATCH] Add < and > to the syntax table in c++-ts-mode Date: Tue, 13 Dec 2022 18:10:14 -0800
Daniel Martín <mardani29@yahoo.es> writes:

> Tags: patch
>
>
> Given the following C++ code (where "|" represents the point):
>
> |Expected<int> getFoo();
>
> If you press C-M-d when c++-ts-mode is enabled, point moves to:
>
> Expected<int> getFoo(|);
>
> In c++-mode, point moves (correctly) to:
>
> Expected<|int> getFoo();
>
> Also, show-paren-mode does not highlight any <> pairs in c++-ts-mode.
>
> My proposed fix is to create a syntax table for c++-ts-mode and add "<"
> and ">" to it as open/close delimiters.
>
> The attached patch implements the proposed solution.  Thanks.

Applied, thanks!

Yuan


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]