From f5c4671bfbad96bf346bd7e9a21fc4317b4959df Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sat, 3 Dec 2022 17:00:20 +0530 Subject: Adds most of the tools --- helix-22.03-x86_64-windows/runtime/queries/elm/locals.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 helix-22.03-x86_64-windows/runtime/queries/elm/locals.scm (limited to 'helix-22.03-x86_64-windows/runtime/queries/elm/locals.scm') diff --git a/helix-22.03-x86_64-windows/runtime/queries/elm/locals.scm b/helix-22.03-x86_64-windows/runtime/queries/elm/locals.scm new file mode 100644 index 0000000..ab10311 --- /dev/null +++ b/helix-22.03-x86_64-windows/runtime/queries/elm/locals.scm @@ -0,0 +1,14 @@ +(value_declaration) @local.scope +(type_alias_declaration) @local.scope +(type_declaration) @local.scope +(type_annotation) @local.scope +(port_annotation) @local.scope +(infix_declaration) @local.scope +(let_in_expr) @local.scope + +(function_declaration_left (lower_pattern (lower_case_identifier)) @local.definition) +(function_declaration_left (lower_case_identifier) @local.definition) + +(value_expr(value_qid(upper_case_identifier)) @local.reference) +(value_expr(value_qid(lower_case_identifier)) @local.reference) +(type_ref (upper_case_qid) @local.reference) -- cgit v1.2.3