Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Touch up elm tree sitter integration

Mikayla Makiea74734b0a8f
diff --git a/crates/zed/src/languages/elm/highlights.scm b/crates/zed/src/languages/elm/highlights.scm
index f6be193f838..e20873af1bd 100644
--- a/crates/zed/src/languages/elm/highlights.scm
+++ b/crates/zed/src/languages/elm/highlights.scm
@@ -53,6 +53,7 @@
(union_variant(upper_case_identifier) @variant)
(union_pattern) @variant
+
(value_expr(upper_case_qid(upper_case_identifier)) @type)
[
diff --git a/crates/zed/src/languages/elm/outline.scm b/crates/zed/src/languages/elm/outline.scm
index c220676290c..88ff9a5af2a 100644
--- a/crates/zed/src/languages/elm/outline.scm
+++ b/crates/zed/src/languages/elm/outline.scm
@@ -12,11 +12,10 @@
(type_expression
part: (record_type
(field_type
- name: (lower_case_identifier) @name)))) @item
+ name: (lower_case_identifier) @name) @item)))
(union_variant
name: (upper_case_identifier) @name) @item
-(value_declaration
- functionDeclarationLeft:
- (function_declaration_left(lower_case_identifier) @name)) @item
+(type_annotation
+ name: (_) @name) @item