From eaa89e941c3782faf8f91f67523866b58c1afa4e Mon Sep 17 00:00:00 2001 From: ttyS3 Date: Mon, 25 Apr 2022 00:10:22 +0800 Subject: [PATCH] chore: apply Suggested change --- runtime/queries/vala/highlights.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/queries/vala/highlights.scm b/runtime/queries/vala/highlights.scm index 4be4f8443cc19..685cda13b705d 100644 --- a/runtime/queries/vala/highlights.scm +++ b/runtime/queries/vala/highlights.scm @@ -29,7 +29,7 @@ (method_declaration (symbol (identifier) @function)) (local_function_declaration (identifier) @function) (destructor_declaration (identifier) @function) -(creation_method_declaration (symbol (symbol) @type (identifier) @constructor)) +(creation_method_declaration (symbol (symbol (identifier) @type) (identifier) @constructor)) (creation_method_declaration (symbol (identifier) @constructor)) (enum_declaration (symbol) @type) (enum_value (identifier) @constant) @@ -40,7 +40,8 @@ (lambda_expression (identifier) @variable.parameter) (parameter (identifier) @variable.parameter) (property_declaration (symbol (identifier) @variable.other.member)) -(field_declaration (identifier) @variable.other.member) +(field_declaration (identifier) @variable) +(identifier) @variable [ (this_access) (base_access)