diff options
| author | Yuan Fu | 2024-04-08 21:07:11 -0700 |
|---|---|---|
| committer | Yuan Fu | 2024-04-08 22:44:03 -0700 |
| commit | 407e85ce139c2f0ab8bc7f9643ee7506a4e561a1 (patch) | |
| tree | 60ff6b8b46fa868cd920422711acffd5abe776e2 | |
| parent | aca5064f128e20a495e9ddf254248ab77b613754 (diff) | |
| download | emacs-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.el | 4 |
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. |