aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkin Sowemimo <akin.sowemimo@gmail.com>2020-09-20 20:55:45 +0100
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-20 22:10:21 +0200
commit00e1a5555aba4a0e182003792037af7377bd585f (patch)
treea3871727a77577adee8caed578f81e5415275e57
parentfix(checkhealth): use pcall to check for syntax errors in query files (diff)
downloadnvim-treesitter-00e1a5555aba4a0e182003792037af7377bd585f.tar
nvim-treesitter-00e1a5555aba4a0e182003792037af7377bd585f.tar.gz
nvim-treesitter-00e1a5555aba4a0e182003792037af7377bd585f.tar.bz2
nvim-treesitter-00e1a5555aba4a0e182003792037af7377bd585f.tar.lz
nvim-treesitter-00e1a5555aba4a0e182003792037af7377bd585f.tar.xz
nvim-treesitter-00e1a5555aba4a0e182003792037af7377bd585f.tar.zst
nvim-treesitter-00e1a5555aba4a0e182003792037af7377bd585f.zip
Add locals.scm for dart
This is an initial stab at this since I don't know much about how this should work but this seems to at leas allow incremental selection of most block of code
-rw-r--r--queries/dart/locals.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/queries/dart/locals.scm b/queries/dart/locals.scm
new file mode 100644
index 000000000..1013d4a92
--- /dev/null
+++ b/queries/dart/locals.scm
@@ -0,0 +1,8 @@
+(class_definition
+ body: (_) @scope)
+
+ (block) @scope
+
+ (try_statement) @scope
+ (catch_clause) @scope
+ (finally_clause) @scope