mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 10:42:08 +00:00
Add outline.scm for Elm
This commit is contained in:
parent
dd504f5965
commit
6ad0852a70
1 changed files with 22 additions and 0 deletions
22
crates/zed/src/languages/elm/outline.scm
Normal file
22
crates/zed/src/languages/elm/outline.scm
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
(type_declaration
|
||||||
|
(type) @context
|
||||||
|
(upper_case_identifier) @name) @item
|
||||||
|
|
||||||
|
(type_alias_declaration
|
||||||
|
(type) @context
|
||||||
|
(alias) @context
|
||||||
|
name: (upper_case_identifier) @name) @item
|
||||||
|
|
||||||
|
(type_alias_declaration
|
||||||
|
typeExpression:
|
||||||
|
(type_expression
|
||||||
|
part: (record_type
|
||||||
|
(field_type
|
||||||
|
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
|
Loading…
Reference in a new issue