From: Yuan Fu Date: Tue, 4 Oct 2022 20:30:00 +0000 (-0700) Subject: Add :override flag for python tree-sitter font-lock settings X-Git-Tag: emacs-29.0.90~1858 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1ea503ed4b3a14b3dc0a597cfbfe57d73b871422;p=emacs.git Add :override flag for python tree-sitter font-lock settings * lisp/progmodes/python.el (python--treesit-settings): Add :override. --- 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)