From 4db7336716058b24efcdaf4c9330b6c3dcf81b47 Mon Sep 17 00:00:00 2001 From: Chinmay Dalal Date: Tue, 21 Jul 2020 22:21:41 +0530 Subject: [PATCH] java locals.scm - clarify comments --- queries/java/locals.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/queries/java/locals.scm b/queries/java/locals.scm index 85f4e1ffc..d3cf545b8 100644 --- a/queries/java/locals.scm +++ b/queries/java/locals.scm @@ -4,7 +4,7 @@ body: (_) @scope) (enum_declaration body: (_) @scope) -(method_declaration) @scope ; whole method_declaration because args +(method_declaration) @scope ; whole method_declaration because arguments ; block (block) @scope @@ -20,7 +20,7 @@ (try_statement) @scope ; covers try+catch, individual try and catch are covered by (block) ; loops -(for_statement) @scope ; whole for_statement because loop variable +(for_statement) @scope ; whole for_statement because loop iterator variable (for_statement ; "for" body in case there are no braces body: (_) @scope) (do_statement