diff options
author | Jared Ramirez | 2022-01-20 15:47:23 +0000 |
---|---|---|
committer | GitHub | 2022-01-20 15:47:23 +0000 |
commit | b2c8aa1ee709edcd5302b27f6d6467b7b624ca84 (patch) | |
tree | cfb334eb6677a42cea2a0de5c4ecfb5ec28c508e /runtime/queries/elm/locals.scm | |
parent | 440d4ae9df171acd1c7a4d5e4da221815f4af437 (diff) |
feat(languages): Elm (#1514)
* Add Elm language support
* Fix docs gen
* Updates based on PR feedback
Diffstat (limited to 'runtime/queries/elm/locals.scm')
-rw-r--r-- | runtime/queries/elm/locals.scm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/queries/elm/locals.scm b/runtime/queries/elm/locals.scm new file mode 100644 index 00000000..ab103115 --- /dev/null +++ b/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) |