mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
Fix #198: prefer method highlighting over attribute
This commit is contained in:
parent
b893592398
commit
5d696053e5
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue