1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 11:50:51 -08:00

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
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

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)