diff options
Diffstat (limited to 'runtime/queries/nu/locals.scm')
-rw-r--r-- | runtime/queries/nu/locals.scm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/queries/nu/locals.scm b/runtime/queries/nu/locals.scm new file mode 100644 index 00000000..2a341f80 --- /dev/null +++ b/runtime/queries/nu/locals.scm @@ -0,0 +1,13 @@ +; Scopes +(function_definition) @scope + +; Definitions +(variable_declaration + name: (identifier) @definition.var) + +(function_definition + func_name: (identifier) @definition.function) + +; References +(value_path) @reference +(word) @reference |