Variable: python--thing-settings
python--thing-settings is a variable defined in python.el.gz.
Value
((python (defun "\\(?:class\\|function\\)_definition")
(sexp
(not
(or (and named "\\`\\(?:block\\|comment\\|module\\)\\'")
(and anonymous "\\`[](),[{}]\\'"))))
(list
"\\`\\(?:_\\(?:\\(?:list\\|tuple\\)_pattern\\)\\|argument_list\\|dict\\(?:_pattern\\|ionary\\(?:_comprehension\\)?\\)\\|generator_expression\\|interpolation\\|list\\(?:_\\(?:\\(?:comprehensio\\|patter\\)n\\)\\)?\\|par\\(?:ameters\\|enthesized_\\(?:expression\\|list_splat\\)\\)\\|set\\(?:_comprehension\\)?\\|t\\(?:uple\\(?:_pattern\\)?\\|ype_parameter\\)\\)\\'")
(sentence "\\(?:clause\\|statement\\)")
(text "\\(?:comment\\|string\\)")))
Documentation
treesit-thing-settings for Python.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
;;; Tree-sitter things
(defvar python--thing-settings
`((python
(defun ,(rx (or "function" "class") "_definition"))
(sexp (not (or (and named
,(rx bos (or "module"
"block"
"comment")
eos))
(and anonymous
,(rx bos (or "(" ")" "[" "]" "{" "}" ",")
eos)))))
(list ,(rx bos (or "parameters"
"type_parameter"
"parenthesized_list_splat"
"argument_list"
"_list_pattern"
"_tuple_pattern"
"dict_pattern"
"tuple_pattern"
"list_pattern"
"list"
"set"
"tuple"
"dictionary"
"list_comprehension"
"dictionary_comprehension"
"set_comprehension"
"generator_expression"
"parenthesized_expression"
"interpolation")
eos))
(sentence ,(rx (or "statement"
"clause")))
(text ,(rx (or "string" "comment")))))
"`treesit-thing-settings' for Python.")