mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
java locals.scm - clarify comments
This commit is contained in:
parent
e7294b203e
commit
4db7336716
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue