From: Juri Linkov Date: Tue, 24 Dec 2024 17:39:30 +0000 (+0200) Subject: Add treesit thing 'sexp-list' to c++-ts-mode (bug#73404) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=aeccd07d182809cc5a0e3f7e1382ffb3036c1dbf;p=emacs.git Add treesit thing 'sexp-list' to c++-ts-mode (bug#73404) * lisp/progmodes/c-ts-mode.el (c-ts-mode--thing-settings): Add C++ 'sexp-list' nodes for 'treesit-thing-settings'. (cherry picked from commit 563e5868f6dbab59937ad247b45b488f5523ad3c) --- diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 90e73260b9b..5537439004e 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -1170,7 +1170,18 @@ if `c-ts-mode-emacs-sources-support' is non-nil." "initializer_list" "subscript_designator" "subscript_range_designator" - "string_literal") + "string_literal" + "system_lib_string" + ;; C++ + "template_parameter_list" + "structured_binding_declarator" + "template_argument_list" + "condition_clause" + "subscript_argument_list" + "requirement_seq" + "requires_parameter_list" + "lambda_capture_specifier" + "fold_expression") 'symbols)) ;; compound_statement makes us jump over too big units ;; of code, so skip that one, and include the other