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 85279d3e84b..d6c29e5ffc6 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1206,13 +1206,15 @@ fontified."
1206 1206
1207 :feature 'builtin 1207 :feature 'builtin
1208 :language 'python 1208 :language 'python
1209 `(((identifier) @font-lock-builtin-face 1209 `((call function: (identifier) @font-lock-builtin-face
1210 (:match ,(rx-to-string 1210 (:match ,(rx-to-string
1211 `(seq bol 1211 `(seq bol (or ,@python--treesit-builtins) eol))
1212 (or ,@python--treesit-builtins 1212 @font-lock-builtin-face))
1213 ,@python--treesit-special-attributes) 1213 (attribute attribute: (identifier) @font-lock-builtin-face
1214 eol)) 1214 (:match ,(rx-to-string
1215 @font-lock-builtin-face))) 1215 `(seq bol
1216 (or ,@python--treesit-special-attributes) eol))
1217 @font-lock-builtin-face)))
1216 1218
1217 :feature 'decorator 1219 :feature 'decorator
1218 :language 'python 1220 :language 'python