mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(r): change groups priority
This commit is contained in:
parent
500f58f5ac
commit
6a958eccef
1 changed files with 17 additions and 16 deletions
|
|
@ -1,22 +1,6 @@
|
|||
; highlights.scm
|
||||
|
||||
(call function: (identifier) @function)
|
||||
(call arguments:
|
||||
(arguments
|
||||
name: (identifier) @parameter ))
|
||||
|
||||
(lambda_function "\\" @operator)
|
||||
|
||||
(namespace_get function: (identifier) @method)
|
||||
(namespace_get_internal function: (identifier) @method)
|
||||
|
||||
(namespace_get namespace: (identifier) @namespace
|
||||
"::" @operator)
|
||||
(namespace_get_internal namespace: (identifier) @namespace
|
||||
":::" @operator)
|
||||
|
||||
; Literals
|
||||
|
||||
(integer) @number
|
||||
|
||||
(float) @float
|
||||
|
|
@ -116,5 +100,22 @@
|
|||
|
||||
"function" @keyword.function
|
||||
|
||||
(call function: (identifier) @function)
|
||||
|
||||
(call arguments:
|
||||
(arguments
|
||||
name: (identifier) @parameter))
|
||||
|
||||
(lambda_function "\\" @operator)
|
||||
|
||||
(namespace_get function: (identifier) @method)
|
||||
(namespace_get_internal function: (identifier) @method)
|
||||
|
||||
(namespace_get namespace: (identifier) @namespace
|
||||
"::" @operator)
|
||||
|
||||
(namespace_get_internal namespace: (identifier) @namespace
|
||||
":::" @operator)
|
||||
|
||||
; Error
|
||||
(ERROR) @error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue