bash: add locals.scm for use with definition highlighting

This commit is contained in:
TravonteD 2020-07-18 11:19:01 -04:00 committed by Stephan Seitz
parent dee2dd65ee
commit 45a1c3998d

13
queries/bash/locals.scm Normal file
View file

@ -0,0 +1,13 @@
; Scopes
(function_definition) @scope
; Definitions
(variable_assignment
name: (variable_name) @definition.var)
(function_definition
name: (word) @definition.function)
; References
(variable_name) @reference
(word) @reference