:override t
'((interpolation (identifier) @font-lock-variable-name-face))
- :feature 'function-name
+ :feature 'definition
:language 'python
'((function_definition
- name: (identifier) @font-lock-function-name-face))
-
- :feature 'class-name
- :language 'python
- '((class_definition
+ name: (identifier) @font-lock-function-name-face)
+ (class_definition
name: (identifier) @font-lock-type-face))
:feature 'keyword
(when (treesit-ready-p 'python-mode 'python)
(treesit-parser-create 'python)
(setq-local treesit-font-lock-feature-list
- '(( comment string function-name class-name)
+ '(( comment string definition)
( keyword builtin constant type)
( assignment decorator escape-sequence
string-interpolation number property