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

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

bug#60351: 29.0.60; bad syntanx table in c++-ts-mode


From: Yuan Fu
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@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 via email to

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