Add highlighting of dunder identifiers (e.g. __all__, __add__) to Python highlights

This commit is contained in:
Stephan Seitz 2020-06-21 17:00:17 +02:00
parent 969d496f3f
commit a85cf1a47c

View file

@ -9,6 +9,9 @@
((identifier) @constant
(match? @constant "^[A-Z][A-Z_0-9]*$"))
((identifier) @constant.builtin
(match? @constant.builtin "^__[a-zA-Z0-9_]*__$"))
; Function calls
(decorator) @function