aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el16
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 9849fde8588..02588d756e9 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1187,13 +1187,15 @@ fontified."
1187 1187
1188 :feature 'builtin 1188 :feature 'builtin
1189 :language 'python 1189 :language 'python
1190 `(((identifier) @font-lock-builtin-face 1190 `((call function: (identifier) @font-lock-builtin-face
1191 (:match ,(rx-to-string 1191 (:match ,(rx-to-string
1192 `(seq bol 1192 `(seq bol (or ,@python--treesit-builtins) eol))
1193 (or ,@python--treesit-builtins 1193 @font-lock-builtin-face))
1194 ,@python--treesit-special-attributes) 1194 (attribute attribute: (identifier) @font-lock-builtin-face
1195 eol)) 1195 (:match ,(rx-to-string
1196 @font-lock-builtin-face))) 1196 `(seq bol
1197 (or ,@python--treesit-special-attributes) eol))
1198 @font-lock-builtin-face)))
1197 1199
1198 :feature 'decorator 1200 :feature 'decorator
1199 :language 'python 1201 :language 'python