(class_definition
name: (identifier) @font-lock-type-face))
+ :feature 'function
+ :language 'python
+ '((function_definition
+ name: (identifier) @font-lock-function-name-face)
+ (call function: (identifier) @font-lock-function-name-face)
+ (call function: (attribute
+ attribute: (identifier) @font-lock-function-name-face)))
+
:feature 'keyword
:language 'python
`([,@python--treesit-keywords] @font-lock-keyword-face
( keyword string type)
( assignment builtin constant decorator
escape-sequence number property string-interpolation )
- ( bracket delimiter operator)))
+ ( function bracket delimiter operator)))
(setq-local treesit-font-lock-settings python--treesit-settings)
(setq-local imenu-create-index-function
#'python-imenu-treesit-create-index)
"_definition"))
(treesit-major-mode-setup)
- (when python-indent-guess-indent-offset
- (python-indent-guess-indent-offset))))
+ (when python-indent-guess-indent-offset
+ (python-indent-guess-indent-offset))))
;;; Completion predicates for M-x
;; Commands that only make sense when editing Python code