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: Yang Yingchao
Subject: bug#60351: 29.0.60; bad syntanx table in c++-ts-mode
Date: Thu, 29 Dec 2022 08:46:03 +0800
User-agent: mu4e 1.8.11; emacs 29.0.60

Verified, thank you!

:)

On Wed, Dec 28 2022, Yuan Fu <casouri@gmail.com> wrote:

> 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


-- 
Yang Yingchao
Yang Yingchao

reply via email to

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