Treat C++ classes as defuns in C Tree-sitter mode (bug#60047)

* lisp/progmodes/c-ts-mode.el (c-ts-base-mode): Add "class_specifier"
as a node of type "defun".
This commit is contained in:
Daniel Martín 2022-12-13 21:35:40 +01:00 committed by Yuan Fu
parent 480f41c7de
commit 3b226b6024
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -563,7 +563,8 @@ the subtrees."
"type_definition"
"struct_specifier"
"enum_specifier"
"union_specifier")))
"union_specifier"
"class_specifier")))
;; Nodes like struct/enum/union_specifier can appear in
;; function_definitions, so we need to find the top-level node.