From: Yuan Fu <casouri@gmail.com>
To: yang.yingchao@qq.com
Cc: 60351-done@debbugs.gnu.org, yingchao.yang@seaboxdata.com
Subject: bug#60351: 29.0.60; bad syntanx table in c++-ts-mode
Date: Wed, 28 Dec 2022 15:57:51 -0800 [thread overview]
Message-ID: <47AB8521-C74F-406E-A401-8A5E0F8D6F89@gmail.com> (raw)
In-Reply-To: <875ydxz93s.fsf@qq.com>
Yuan Fu <casouri@gmail.com> writes:
> Yang Yingchao <yang.yingchao@qq.com> writes:
>
>> 1. start emacs with emacs -Q
>>
>> 2. open a buffer, M-x c++-ts-mode, theninsert following codes:
>> int main(int argc, char *argv[])
>> {
>> if (0) {
>> a->func();
>> }
>> return 0;
>> }
>>
>> 3. move cursor to line 3, before the bracket
>> 4. C-M-n (forward-list), and cursor will be placed at line 4, right after "->"
>>
>> I think this might be an regression after commit 480f41c7deb4d3a45a862a5308950b35085f835d
>
> Thanks for the report! < and > serves double duty in C++, so assigning
> them paren syntax are indeed incorrect. c++-mode uses text properties to
> assign different syntax based on context. I’ll copy that into
> c++-ts-mode.
Done :-)
Yuan
next prev parent reply other threads:[~2022-12-28 23:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <875ydxz93s.fsf@qq.com>
2022-12-28 21:59 ` bug#60351: 29.0.60; bad syntanx table in c++-ts-mode Yuan Fu
2022-12-28 23:57 ` Yuan Fu [this message]
2022-12-29 0:46 ` Yang Yingchao via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-27 5:48 Yang Yingchao via Bug reports for GNU Emacs, the Swiss army knife of text editors
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47AB8521-C74F-406E-A401-8A5E0F8D6F89@gmail.com \
--to=casouri@gmail.com \
--cc=60351-done@debbugs.gnu.org \
--cc=yang.yingchao@qq.com \
--cc=yingchao.yang@seaboxdata.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).