Variable: treesit-text-type-regexp

treesit-text-type-regexp is a buffer-local variable defined in treesit.el.gz.

Documentation

A regexp that matches the node type of textual nodes.

A textual node is a node that is not normal code, such as comments and multiline string literals. For example,
"(line|block)_comment" in the case of a comment, or
"text_block" in the case of a string. This is used by
prog-fill-reindent-defun and friends.

Source Code

;; Defined in /usr/src/emacs/lisp/treesit.el.gz
(defvar-local treesit-text-type-regexp "\\`comment\\'"
  "A regexp that matches the node type of textual nodes.

A textual node is a node that is not normal code, such as
comments and multiline string literals.  For example,
\"(line|block)_comment\" in the case of a comment, or
\"text_block\" in the case of a string.  This is used by
`prog-fill-reindent-defun' and friends.")