GNU bug report logs - #60351
29.0.60; bad syntanx table in c++-ts-mode

Previous Next

Package: emacs;

Reported by: yingchao.yang <at> seaboxdata.com

Date: Tue, 27 Dec 2022 08:49:02 UTC

Severity: normal

Found in version 29.0.60

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: Yuan Fu <casouri <at> gmail.com>
To: yang.yingchao <at> qq.com
Cc: 60351 <at> debbugs.gnu.org, yingchao.yang <at> seaboxdata.com
Subject: bug#60351: 29.0.60; bad syntanx table in c++-ts-mode
Date: Wed, 28 Dec 2022 13:59:35 -0800
Yang Yingchao <yang.yingchao <at> 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




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

Previous Next


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