From 859c7432967a34d9c51f5cb50d39242e519ae164 Mon Sep 17 00:00:00 2001 From: Omar Zeghouani Date: Sun, 4 Jul 2021 19:54:08 +0100 Subject: [PATCH] locals: add more scopes --- queries/fish/locals.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/queries/fish/locals.scm b/queries/fish/locals.scm index 75d9cafa1..a522c78dc 100644 --- a/queries/fish/locals.scm +++ b/queries/fish/locals.scm @@ -1,5 +1,13 @@ ;; Scopes -(function_definition) @scope +[ + (command) + (function_definition) + (if_statement) + (for_statement) + (begin_statement) + (while_statement) + (switch_statement) +] @scope ;; Definitions (function_definition