Verified, thank you! :) On Wed, Dec 28 2022, Yuan Fu wrote: > Yuan Fu writes: > >> Yang Yingchao 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