From 1ea503ed4b3a14b3dc0a597cfbfe57d73b871422 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 4 Oct 2022 13:30:00 -0700 Subject: [PATCH] Add :override flag for python tree-sitter font-lock settings * lisp/progmodes/python.el (python--treesit-settings): Add :override. --- lisp/progmodes/python.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 3f85201c107..b498baec608 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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) -- 2.39.2