From: Yuan Fu <casouri@gmail.com>
To: "Daniel Martín" <mardani29@yahoo.es>
Cc: 60049-done@debbugs.gnu.org
Subject: bug#60049: [PATCH] Add < and > to the syntax table in c++-ts-mode
Date: Tue, 13 Dec 2022 18:10:14 -0800 [thread overview]
Message-ID: <8BF06E36-2ECC-43E4-8704-F02C08FD55C5@gmail.com> (raw)
In-Reply-To: <m17cyv6l0n.fsf@yahoo.es>
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
prev parent reply other threads:[~2022-12-14 2:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m17cyv6l0n.fsf.ref@yahoo.es>
2022-12-13 21:39 ` bug#60049: [PATCH] Add < and > to the syntax table in c++-ts-mode Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-14 2:10 ` Yuan Fu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8BF06E36-2ECC-43E4-8704-F02C08FD55C5@gmail.com \
--to=casouri@gmail.com \
--cc=60049-done@debbugs.gnu.org \
--cc=mardani29@yahoo.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.