Add Elixir symbols in outline view (#8761)

Release Notes:

- Improved: Add `@callback`, `@type` and `@typep` Elixir symbols in
outline view



https://github.com/zed-industries/zed/assets/14976415/208d3def-f49e-41e0-a306-fb8e00317e6b
This commit is contained in:
rauan 2024-03-08 03:35:01 +01:00 committed by GitHub
parent b50f86735f
commit 467a179837
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,6 +3,26 @@
(arguments (alias) @name)
(#match? @context "^(defmodule|defprotocol)$")) @item
(unary_operator
operator: "@" @name
operand: (call
target: (identifier) @context
(arguments
[
(binary_operator
left: (identifier) @name)
(binary_operator
left: (call
target: (identifier) @name
(arguments
"(" @context.extra
_* @context.extra
")" @context.extra)))
]
)
)
(#match? @context "^(callback|type|typep)$")) @item
(call
target: (identifier) @context
(arguments