highlights(vala): Re-update highlights and lockfile

This commit is contained in:
Mateus Melchiades 2022-02-26 10:23:36 -03:00 committed by Christian Clason
parent 18c558fd92
commit 84e4e0237f
2 changed files with 19 additions and 29 deletions

View file

@ -279,7 +279,7 @@
"revision": "e8e8e8dc2745840b036421b4e43286750443cb13" "revision": "e8e8e8dc2745840b036421b4e43286750443cb13"
}, },
"vala": { "vala": {
"revision": "a28c1a318f037ae47236491b324e5976ed857f67" "revision": "4c31aa2f3c077fa69acc49e5c5a58cd87c704229"
}, },
"verilog": { "verilog": {
"revision": "8f6b1f357d1231c420404b5f7a368a73c25adfa2" "revision": "8f6b1f357d1231c420404b5f7a368a73c25adfa2"

View file

@ -1,18 +1,15 @@
; Variable
(uppercased_identifier) @constant
(namespaced_identifier (namespaced_identifier
left: [ left: [
(camel_cased_identifier) @namespace (identifier) @namespace
(identifier) @variable (_)
] ]
right: [ right: [
(identifier) @parameter ((identifier) @constructor (#match? @constructor "^[A-Z]*[a-z]+"))
(camel_cased_identifier) @type ((identifier) @constant (#match? @constant "^[A-Z][A-Z_]*"))
(uppercased_identifier) @constant (_)
] ]
) )
; Pointers ; Pointers
(address_of_identifier "&" @symbol) (address_of_identifier "&" @symbol)
@ -157,7 +154,6 @@
type: (_) @type type: (_) @type
name: [ name: [
(identifier) @method (identifier) @method
(camel_cased_identifier) @type
(generic_identifier (_) @type) (generic_identifier (_) @type)
(namespaced_identifier (namespaced_identifier
(_) @method . (_) @method .
@ -168,7 +164,6 @@
(function_call (function_call
identifier: [ identifier: [
(identifier) @method (identifier) @method
(camel_cased_identifier) @type
(generic_identifier (_) @type) (generic_identifier (_) @type)
(namespaced_identifier (namespaced_identifier
(_) @method . (_) @method .
@ -198,16 +193,14 @@
"global::" @namespace "global::" @namespace
"using" @include (using
"using" @include
(_) @namespace
)
; Classes ; Classes
(class_declaration (class_declaration) @type
[
(camel_cased_identifier) @type
(generic_identifier (_) @type )
]
)
(class_constructor_definition (class_constructor_definition
name: [ name: [
@ -223,12 +216,7 @@
; Interfaces ; Interfaces
(interface_declaration (interface_declaration) @type
[
(camel_cased_identifier) @type
(generic_identifier (_) @type )
]
)
; Strings and escape sequences ; Strings and escape sequences
@ -247,12 +235,14 @@
; New instance from Object ; New instance from Object
(new_instance (new_instance
".new" @keyword "new" @keyword
) )
; GObject construct ; GObject construct
"construct" @constructor (gobject_construct
"construct" @keyword
)
; Try statement ; Try statement
@ -266,7 +256,7 @@
; Enum ; Enum
(enum_declaration (enum_declaration
(camel_cased_identifier) @type name: (identifier) @type
) )
; Loop ; Loop
@ -292,6 +282,6 @@
; Code attribute ; Code attribute
(code_attribute (code_attribute
name: (camel_cased_identifier) @attribute name: (identifier) @attribute
param: (_) @attribute param: (_) @attribute
) @attribute ) @attribute