mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
highlights(vala): Re-update highlights and lockfile
This commit is contained in:
parent
18c558fd92
commit
84e4e0237f
2 changed files with 19 additions and 29 deletions
|
|
@ -279,7 +279,7 @@
|
|||
"revision": "e8e8e8dc2745840b036421b4e43286750443cb13"
|
||||
},
|
||||
"vala": {
|
||||
"revision": "a28c1a318f037ae47236491b324e5976ed857f67"
|
||||
"revision": "4c31aa2f3c077fa69acc49e5c5a58cd87c704229"
|
||||
},
|
||||
"verilog": {
|
||||
"revision": "8f6b1f357d1231c420404b5f7a368a73c25adfa2"
|
||||
|
|
|
|||
|
|
@ -1,18 +1,15 @@
|
|||
; Variable
|
||||
|
||||
(uppercased_identifier) @constant
|
||||
|
||||
(namespaced_identifier
|
||||
left: [
|
||||
(camel_cased_identifier) @namespace
|
||||
(identifier) @variable
|
||||
(identifier) @namespace
|
||||
(_)
|
||||
]
|
||||
right: [
|
||||
(identifier) @parameter
|
||||
(camel_cased_identifier) @type
|
||||
(uppercased_identifier) @constant
|
||||
((identifier) @constructor (#match? @constructor "^[A-Z]*[a-z]+"))
|
||||
((identifier) @constant (#match? @constant "^[A-Z][A-Z_]*"))
|
||||
(_)
|
||||
]
|
||||
)
|
||||
|
||||
; Pointers
|
||||
|
||||
(address_of_identifier "&" @symbol)
|
||||
|
|
@ -157,7 +154,6 @@
|
|||
type: (_) @type
|
||||
name: [
|
||||
(identifier) @method
|
||||
(camel_cased_identifier) @type
|
||||
(generic_identifier (_) @type)
|
||||
(namespaced_identifier
|
||||
(_) @method .
|
||||
|
|
@ -168,7 +164,6 @@
|
|||
(function_call
|
||||
identifier: [
|
||||
(identifier) @method
|
||||
(camel_cased_identifier) @type
|
||||
(generic_identifier (_) @type)
|
||||
(namespaced_identifier
|
||||
(_) @method .
|
||||
|
|
@ -198,16 +193,14 @@
|
|||
|
||||
"global::" @namespace
|
||||
|
||||
"using" @include
|
||||
(using
|
||||
"using" @include
|
||||
(_) @namespace
|
||||
)
|
||||
|
||||
; Classes
|
||||
|
||||
(class_declaration
|
||||
[
|
||||
(camel_cased_identifier) @type
|
||||
(generic_identifier (_) @type )
|
||||
]
|
||||
)
|
||||
(class_declaration) @type
|
||||
|
||||
(class_constructor_definition
|
||||
name: [
|
||||
|
|
@ -223,12 +216,7 @@
|
|||
|
||||
; Interfaces
|
||||
|
||||
(interface_declaration
|
||||
[
|
||||
(camel_cased_identifier) @type
|
||||
(generic_identifier (_) @type )
|
||||
]
|
||||
)
|
||||
(interface_declaration) @type
|
||||
|
||||
; Strings and escape sequences
|
||||
|
||||
|
|
@ -247,12 +235,14 @@
|
|||
; New instance from Object
|
||||
|
||||
(new_instance
|
||||
".new" @keyword
|
||||
"new" @keyword
|
||||
)
|
||||
|
||||
; GObject construct
|
||||
|
||||
"construct" @constructor
|
||||
(gobject_construct
|
||||
"construct" @keyword
|
||||
)
|
||||
|
||||
; Try statement
|
||||
|
||||
|
|
@ -266,7 +256,7 @@
|
|||
; Enum
|
||||
|
||||
(enum_declaration
|
||||
(camel_cased_identifier) @type
|
||||
name: (identifier) @type
|
||||
)
|
||||
|
||||
; Loop
|
||||
|
|
@ -292,6 +282,6 @@
|
|||
; Code attribute
|
||||
|
||||
(code_attribute
|
||||
name: (camel_cased_identifier) @attribute
|
||||
name: (identifier) @attribute
|
||||
param: (_) @attribute
|
||||
) @attribute
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue