]> git.eshelyaron.com Git - emacs.git/commitdiff
Add :override flag for python tree-sitter font-lock settings
authorYuan Fu <casouri@gmail.com>
Tue, 4 Oct 2022 20:30:00 +0000 (13:30 -0700)
committerYuan Fu <casouri@gmail.com>
Tue, 4 Oct 2022 20:30:56 +0000 (13:30 -0700)
* lisp/progmodes/python.el (python--treesit-settings): Add :override.

lisp/progmodes/python.el

index 3f85201c107f23f7e54edaf5340ffae06d92bd49..b498baec608d6a0dea423d2af14018d20aee55c0 100644 (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)