Merge pull request #96 from theHamsta/python-__dunder__

Add highlighting of dunder identifiers (e.g. __all__, __add__) to Python highlights
This commit is contained in:
Thomas Vigouroux 2020-06-21 19:46:23 +02:00 committed by GitHub
commit b84fde9718
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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