Variable: c-ts-mode--thing-settings

c-ts-mode--thing-settings is a variable defined in c-ts-mode.el.gz.

Value

((sexp (not "[](),[{}]"))
 (sentence
  "\\(?:attributed_statement\\|break_statement\\|c\\(?:\\(?:as\\|ontinu\\)e_statement\\)\\|d\\(?:eclaration\\|o_statement\\)\\|expression_statement\\|for_statement\\|goto_statement\\|if_statement\\|labeled_statement\\|preproc\\|return_statement\\|s\\(?:pecifier\\|witch_statement\\)\\|while_statement\\)")
 (text "\\(?:comment\\|raw_string_literal\\)"))

Documentation

treesit-thing-settings for both C and C++.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/c-ts-mode.el.gz
;;; Things

(defvar c-ts-mode--thing-settings
  `(;; It's more useful to include semicolons as sexp so
    ;; that users can move to the end of a statement.
    (sexp (not ,(rx (or "{" "}" "[" "]" "(" ")" ","))))
    ;; compound_statement makes us jump over too big units
    ;; of code, so skip that one, and include the other
    ;; statements.
    (sentence
     ,(regexp-opt '("preproc"
                    "declaration"
                    "specifier"
                    "attributed_statement"
                    "labeled_statement"
                    "expression_statement"
                    "if_statement"
                    "switch_statement"
                    "do_statement"
                    "while_statement"
                    "for_statement"
                    "return_statement"
                    "break_statement"
                    "continue_statement"
                    "goto_statement"
                    "case_statement")))
    (text ,(regexp-opt '("comment"
                         "raw_string_literal"))))
  "`treesit-thing-settings' for both C and C++.")