summaryrefslogtreecommitdiff
path: root/runtime/queries/nu/locals.scm
diff options
context:
space:
mode:
authorJustin Ma2022-04-22 14:37:51 +0000
committerGitHub2022-04-22 14:37:51 +0000
commit5c2570582bdacf7acebf1bf4cab90699b98ecc67 (patch)
tree8bc047910e863f435e33a5b50a6b4095c3de252a /runtime/queries/nu/locals.scm
parent3c250b7528175e67717a3c6d11be7409023d5a16 (diff)
feat(lang): add nushell language support (#2225)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'runtime/queries/nu/locals.scm')
-rw-r--r--runtime/queries/nu/locals.scm13
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