mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -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
|
||||
|
||||
(address_of_identifier "&" @symbol)
|
||||
|
|
@ -30,11 +45,16 @@
|
|||
"break"
|
||||
] @keyword.return
|
||||
|
||||
|
||||
(null) @constant.builtin
|
||||
|
||||
[
|
||||
(null)
|
||||
(modifier)
|
||||
"typeof"
|
||||
"is"
|
||||
] @keyword.operator
|
||||
|
||||
[
|
||||
(modifier)
|
||||
"var"
|
||||
"class"
|
||||
"interface"
|
||||
|
|
@ -117,6 +137,12 @@
|
|||
] @operator
|
||||
)
|
||||
|
||||
; Declaration
|
||||
|
||||
(declaration
|
||||
type_name: (_) @type
|
||||
)
|
||||
|
||||
; Methods
|
||||
|
||||
(function_definition
|
||||
|
|
@ -260,25 +286,3 @@
|
|||
name: (camel_cased_identifier) @attribute
|
||||
param: (_) @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