projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23c06c7
)
python-ts-mode: Highlight default parameters
author
Maciej Kalandyk
<m.kalandyk@outlook.com>
Sun, 10 Dec 2023 23:15:34 +0000
(
01:15
+0200)
committer
Dmitry Gutov
<dmitry@gutov.dev>
Sun, 10 Dec 2023 23:34:41 +0000
(
01:34
+0200)
* lisp/progmodes/python.el (python--treesit-settings):
Highlight default parameters (bug#67703).
lisp/progmodes/python.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/python.el
b/lisp/progmodes/python.el
index a794457619657ea4563681e010c38a37c3ab3752..7c5c20608bd9d88b39d3d78e71439a0d24be9a5e 100644
(file)
--- a/
lisp/progmodes/python.el
+++ b/
lisp/progmodes/python.el
@@
-1114,7
+1114,8
@@
fontified."
name: (identifier) @font-lock-function-name-face)
(class_definition
name: (identifier) @font-lock-type-face)
- (parameters (identifier) @font-lock-variable-name-face))
+ (parameters (identifier) @font-lock-variable-name-face)
+ (parameters (default_parameter name: (identifier) @font-lock-variable-name-face)))
:feature 'function
:language 'python