nvim-treesitter/queries/fish/locals.scm
2024-01-19 16:58:37 +01:00

18 lines
311 B
Scheme

;; Scopes
[
(command)
(function_definition)
(if_statement)
(for_statement)
(begin_statement)
(while_statement)
(switch_statement)
] @local.scope
;; Definitions
(function_definition
name: (word) @local.definition.function)
;; References
(variable_name) @local.reference
(word) @local.reference