From 12feef7af885fdbef21ac5c65e44d58575b52ec4 Mon Sep 17 00:00:00 2001 From: Akin Sowemimo Date: Thu, 23 Jul 2020 09:28:48 +0100 Subject: Add getter and setter signature highlights --- queries/dart/highlights.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/queries/dart/highlights.scm b/queries/dart/highlights.scm index 5ce6a196..75b40b39 100644 --- a/queries/dart/highlights.scm +++ b/queries/dart/highlights.scm @@ -62,6 +62,12 @@ scope: (identifier) @type) (function_signature name: (identifier) @method) +; using method_signature does not work +; so specifically use getter and setter signatures +(getter_signature + (identifier) @method) +(setter_signature + name: (identifier) @method) (enum_declaration name: (identifier) @type) (enum_constant @@ -127,9 +133,8 @@ "const" "async" "await" - ; "rethrow" ] @keyword -;TODO: var, async, await +;TODO: ; "rethrow" @keyword ["if" "else" "switch" "case"] @conditional -- cgit v1.2.3