Fix #198: prefer method highlighting over attribute

This commit is contained in:
Stephan Seitz 2020-07-22 16:24:39 +02:00 committed by Thomas Vigouroux
parent b893592398
commit 5d696053e5

View file

@ -13,6 +13,10 @@
((identifier) @constant.builtin
(match? @constant.builtin "^__[a-zA-Z0-9_]*__$"))
((attribute
attribute: (identifier) @field)
(match? @field "^([A-Z])@!.*$"))
; Function calls
(decorator) @function
@ -200,10 +204,6 @@
superclasses: (argument_list
(identifier) @type))
((attribute
attribute: (identifier) @field)
(match? @field "^([A-Z])@!.*$"))
((class_definition
body: (block
(expression_statement