aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuan Fu2024-04-08 21:07:11 -0700
committerYuan Fu2024-04-08 22:44:03 -0700
commit407e85ce139c2f0ab8bc7f9643ee7506a4e561a1 (patch)
tree60ff6b8b46fa868cd920422711acffd5abe776e2
parentaca5064f128e20a495e9ddf254248ab77b613754 (diff)
downloademacs-407e85ce139c2f0ab8bc7f9643ee7506a4e561a1.tar.gz
emacs-407e85ce139c2f0ab8bc7f9643ee7506a4e561a1.zip
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.
-rw-r--r--lisp/progmodes/c-ts-mode.el4
1 files changed, 3 insertions, 1 deletions
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'."
1155 "struct_specifier" 1155 "struct_specifier"
1156 "enum_specifier" 1156 "enum_specifier"
1157 "union_specifier" 1157 "union_specifier"
1158 "class_specifier" 1158 ;; Make sure this doesn't match
1159 ;; storage_class_specifier.
1160 "^class_specifier$"
1159 "namespace_definition") 1161 "namespace_definition")
1160 (and c-ts-mode-emacs-sources-support 1162 (and c-ts-mode-emacs-sources-support
1161 '(;; DEFUN. 1163 '(;; DEFUN.