Add :override flag for python tree-sitter font-lock settings

* lisp/progmodes/python.el (python--treesit-settings): Add :override.
This commit is contained in:
Yuan Fu
2022-10-04 13:30:00 -07:00
parent 23bb724c92
commit 1ea503ed4b

View File

@@ -987,6 +987,7 @@ Do not fontify the initial f for f-strings."
(defvar python--treesit-settings
(treesit-font-lock-rules
:language 'python
:override t
`(;; Queries for def and class.
(function_definition
name: (identifier) @font-lock-function-name-face)