aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorYuan Fu2022-10-04 13:30:00 -0700
committerYuan Fu2022-10-04 13:30:56 -0700
commit1ea503ed4b3a14b3dc0a597cfbfe57d73b871422 (patch)
tree8ad94ffb95360ff2fddbc1b3d34ebeb71facfc14 /lisp/progmodes/python.el
parent23bb724c922de95573f73b22ae311696ae08464e (diff)
downloademacs-1ea503ed4b3a14b3dc0a597cfbfe57d73b871422.tar.gz
emacs-1ea503ed4b3a14b3dc0a597cfbfe57d73b871422.zip
Add :override flag for python tree-sitter font-lock settings
* lisp/progmodes/python.el (python--treesit-settings): Add :override.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el1
1 files changed, 1 insertions, 0 deletions
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."
987(defvar python--treesit-settings 987(defvar python--treesit-settings
988 (treesit-font-lock-rules 988 (treesit-font-lock-rules
989 :language 'python 989 :language 'python
990 :override t
990 `(;; Queries for def and class. 991 `(;; Queries for def and class.
991 (function_definition 992 (function_definition
992 name: (identifier) @font-lock-function-name-face) 993 name: (identifier) @font-lock-function-name-face)