GNU bug report logs -
#60351
29.0.60; bad syntanx table in c++-ts-mode
Previous Next
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
[Message part 1 (text/plain, inline)]
Verified, thank you!
:)
On Wed, Dec 28 2022, Yuan Fu <casouri <at> gmail.com> wrote:
> Yuan Fu <casouri <at> gmail.com> writes:
>
>> 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.
>
> Done :-)
>
> Yuan
--
Yang Yingchao
Yang Yingchao
This bug report was last modified 2 years and 203 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.