mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 23:10:11 -04:00
Update Vala highlights
This commit is contained in:
parent
3f046500ae
commit
cb7ea44a7b
1 changed files with 28 additions and 24 deletions
|
|
@ -1,3 +1,18 @@
|
||||||
|
; Variable
|
||||||
|
|
||||||
|
(uppercased_identifier) @constant
|
||||||
|
|
||||||
|
(namespaced_identifier
|
||||||
|
left: [
|
||||||
|
(camel_cased_identifier) @namespace
|
||||||
|
(identifier) @variable
|
||||||
|
]
|
||||||
|
right: [
|
||||||
|
(identifier) @parameter
|
||||||
|
(camel_cased_identifier) @type
|
||||||
|
(uppercased_identifier) @constant
|
||||||
|
]
|
||||||
|
)
|
||||||
; Pointers
|
; Pointers
|
||||||
|
|
||||||
(address_of_identifier "&" @symbol)
|
(address_of_identifier "&" @symbol)
|
||||||
|
|
@ -30,11 +45,16 @@
|
||||||
"break"
|
"break"
|
||||||
] @keyword.return
|
] @keyword.return
|
||||||
|
|
||||||
|
|
||||||
|
(null) @constant.builtin
|
||||||
|
|
||||||
[
|
[
|
||||||
(null)
|
|
||||||
(modifier)
|
|
||||||
"typeof"
|
"typeof"
|
||||||
"is"
|
"is"
|
||||||
|
] @keyword.operator
|
||||||
|
|
||||||
|
[
|
||||||
|
(modifier)
|
||||||
"var"
|
"var"
|
||||||
"class"
|
"class"
|
||||||
"interface"
|
"interface"
|
||||||
|
|
@ -117,6 +137,12 @@
|
||||||
] @operator
|
] @operator
|
||||||
)
|
)
|
||||||
|
|
||||||
|
; Declaration
|
||||||
|
|
||||||
|
(declaration
|
||||||
|
type_name: (_) @type
|
||||||
|
)
|
||||||
|
|
||||||
; Methods
|
; Methods
|
||||||
|
|
||||||
(function_definition
|
(function_definition
|
||||||
|
|
@ -260,25 +286,3 @@
|
||||||
name: (camel_cased_identifier) @attribute
|
name: (camel_cased_identifier) @attribute
|
||||||
param: (_) @attribute
|
param: (_) @attribute
|
||||||
) @attribute
|
) @attribute
|
||||||
|
|
||||||
; Constant
|
|
||||||
(uppercased_identifier) @constant
|
|
||||||
|
|
||||||
; Other
|
|
||||||
|
|
||||||
(namespaced_identifier
|
|
||||||
left: [
|
|
||||||
(camel_cased_identifier) @namespace
|
|
||||||
(identifier) @variable
|
|
||||||
]
|
|
||||||
right: [
|
|
||||||
(identifier) @parameter
|
|
||||||
(camel_cased_identifier) @type
|
|
||||||
(uppercased_identifier) @constant
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
; Variable
|
|
||||||
|
|
||||||
(identifier) @variable
|
|
||||||
(camel_cased_identifier) @variable
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue