From: Yuan Fu Date: Tue, 9 Apr 2024 04:07:11 +0000 (-0700) Subject: Fix c++-ts-mode defun navigation (bug#65885) X-Git-Tag: archive/raspbian/1%29.4+1-4+rpi1~1^2~2^2~17^2~70 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=407e85ce139c2f0ab8bc7f9643ee7506a4e561a1;p=emacs.git Fix c++-ts-mode defun navigation (bug#65885) * lisp/progmodes/c-ts-mode.el (c-ts-base-mode): Add BOL and EOL marker in the regexp. --- diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index e69856baecc..a7a416b94f4 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -1155,7 +1155,9 @@ BEG and END are described in `treesit-range-rules'." "struct_specifier" "enum_specifier" "union_specifier" - "class_specifier" + ;; Make sure this doesn't match + ;; storage_class_specifier. + "^class_specifier$" "namespace_definition") (and c-ts-mode-emacs-sources-support '(;; DEFUN.