aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkin Sowemimo <akin.sowemimo@gmail.com>2020-07-23 09:28:48 +0100
committerStephan Seitz <stephan.lauf@yahoo.de>2020-07-23 17:17:03 +0200
commit12feef7af885fdbef21ac5c65e44d58575b52ec4 (patch)
tree9f8695b568c91899773c0be4eb6bf82aa5a2ef23
parentAdd some operators and match classes (with regex) (diff)
downloadnvim-treesitter-12feef7af885fdbef21ac5c65e44d58575b52ec4.tar
nvim-treesitter-12feef7af885fdbef21ac5c65e44d58575b52ec4.tar.gz
nvim-treesitter-12feef7af885fdbef21ac5c65e44d58575b52ec4.tar.bz2
nvim-treesitter-12feef7af885fdbef21ac5c65e44d58575b52ec4.tar.lz
nvim-treesitter-12feef7af885fdbef21ac5c65e44d58575b52ec4.tar.xz
nvim-treesitter-12feef7af885fdbef21ac5c65e44d58575b52ec4.tar.zst
nvim-treesitter-12feef7af885fdbef21ac5c65e44d58575b52ec4.zip
Add getter and setter signature highlights
-rw-r--r--queries/dart/highlights.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/queries/dart/highlights.scm b/queries/dart/highlights.scm
index 5ce6a1963..75b40b398 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