projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aca5064
)
Fix c++-ts-mode defun navigation (bug#65885)
author
Yuan Fu
<casouri@gmail.com>
Tue, 9 Apr 2024 04:07:11 +0000
(21:07 -0700)
committer
Yuan Fu
<casouri@gmail.com>
Tue, 9 Apr 2024 05:44:03 +0000
(22:44 -0700)
* lisp/progmodes/c-ts-mode.el (c-ts-base-mode): Add BOL and EOL marker
in the regexp.
lisp/progmodes/c-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/c-ts-mode.el
b/lisp/progmodes/c-ts-mode.el
index e69856baecc6abf334ed4311cef3922aa61228ba..a7a416b94f4bee6e5a6118b0a516b9ff524f53fd 100644
(file)
--- 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.