all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: yang.yingchao@qq.com
Cc: 60351@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 13:59:35 -0800	[thread overview]
Message-ID: <E77B12BF-C61B-440F-9ABF-5928C0481ADD@gmail.com> (raw)
In-Reply-To: <875ydxz93s.fsf@qq.com>


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.

Yuan





       reply	other threads:[~2022-12-28 21:59 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 ` Yuan Fu [this message]
2022-12-28 23:57 ` bug#60351: 29.0.60; bad syntanx table in c++-ts-mode Yuan Fu
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E77B12BF-C61B-440F-9ABF-5928C0481ADD@gmail.com \
    --to=casouri@gmail.com \
    --cc=60351@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 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.