Regenerate nvim config
This commit is contained in:
32
config/neovim/store/nvim-treesitter/queries/dart/locals.scm
Normal file
32
config/neovim/store/nvim-treesitter/queries/dart/locals.scm
Normal file
@ -0,0 +1,32 @@
|
||||
; Definitions
|
||||
(function_signature
|
||||
name: (identifier) @local.definition.function)
|
||||
|
||||
(formal_parameter
|
||||
name: (identifier) @local.definition.parameter)
|
||||
|
||||
(initialized_variable_definition
|
||||
name: (identifier) @local.definition.var)
|
||||
|
||||
(initialized_identifier
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(static_final_declaration
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
; References
|
||||
(identifier) @local.reference
|
||||
|
||||
; Scopes
|
||||
(class_definition
|
||||
body: (_) @local.scope)
|
||||
|
||||
[
|
||||
(block)
|
||||
(if_statement)
|
||||
(for_statement)
|
||||
(while_statement)
|
||||
(try_statement)
|
||||
(catch_clause)
|
||||
(finally_clause)
|
||||
] @local.scope
|
||||
Reference in New Issue
Block a user