mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -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
|
((identifier) @constant.builtin
|
||||||
(match? @constant.builtin "^__[a-zA-Z0-9_]*__$"))
|
(match? @constant.builtin "^__[a-zA-Z0-9_]*__$"))
|
||||||
|
|
||||||
|
((attribute
|
||||||
|
attribute: (identifier) @field)
|
||||||
|
(match? @field "^([A-Z])@!.*$"))
|
||||||
|
|
||||||
; Function calls
|
; Function calls
|
||||||
|
|
||||||
(decorator) @function
|
(decorator) @function
|
||||||
|
|
@ -200,10 +204,6 @@
|
||||||
superclasses: (argument_list
|
superclasses: (argument_list
|
||||||
(identifier) @type))
|
(identifier) @type))
|
||||||
|
|
||||||
((attribute
|
|
||||||
attribute: (identifier) @field)
|
|
||||||
(match? @field "^([A-Z])@!.*$"))
|
|
||||||
|
|
||||||
((class_definition
|
((class_definition
|
||||||
body: (block
|
body: (block
|
||||||
(expression_statement
|
(expression_statement
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue