java locals.scm - clarify comments

This commit is contained in:
Chinmay Dalal 2020-07-21 22:21:41 +05:30 committed by GitHub
parent e7294b203e
commit 4db7336716
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@
body: (_) @scope) body: (_) @scope)
(enum_declaration (enum_declaration
body: (_) @scope) body: (_) @scope)
(method_declaration) @scope ; whole method_declaration because args (method_declaration) @scope ; whole method_declaration because arguments
; block ; block
(block) @scope (block) @scope
@ -20,7 +20,7 @@
(try_statement) @scope ; covers try+catch, individual try and catch are covered by (block) (try_statement) @scope ; covers try+catch, individual try and catch are covered by (block)
; loops ; 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 (for_statement ; "for" body in case there are no braces
body: (_) @scope) body: (_) @scope)
(do_statement (do_statement