projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23bb724
)
Add :override flag for python tree-sitter font-lock settings
author
Yuan Fu
<casouri@gmail.com>
Tue, 4 Oct 2022 20:30:00 +0000
(13:30 -0700)
committer
Yuan 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
patch
|
blob
|
history
diff --git
a/lisp/progmodes/python.el
b/lisp/progmodes/python.el
index 3f85201c107f23f7e54edaf5340ffae06d92bd49..b498baec608d6a0dea423d2af14018d20aee55c0 100644
(file)
--- 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)