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.

Add all Elm functions to the outline, including locals

Quinn Wilton3cc88904bfa3
diff --git a/crates/zed/src/languages/elm/outline.scm b/crates/zed/src/languages/elm/outline.scm
index 88ff9a5af2a..1d7d5a70b01 100644
--- a/crates/zed/src/languages/elm/outline.scm
+++ b/crates/zed/src/languages/elm/outline.scm
@@ -17,5 +17,6 @@
(union_variant
name: (upper_case_identifier) @name) @item
-(type_annotation
- name: (_) @name) @item
+(value_declaration
+ functionDeclarationLeft:
+ (function_declaration_left(lower_case_identifier) @name)) @item