mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-23 06:56:33 +00:00
elixir: Support describe, test, setup, setup_all in outlines (#19135)
Closes #9894 Release Notes: - N/A ### Before ![2024-10-12T204848@2x](https://github.com/user-attachments/assets/84b7f123-8845-4e6d-b1b1-444e54ea6599) ### After ![2024-10-12T204749@2x](https://github.com/user-attachments/assets/67fdcead-bad3-4967-9ac4-0b85f1da7bca)
This commit is contained in:
parent
73a6c542f3
commit
b3c93130ec
1 changed files with 10 additions and 0 deletions
|
@ -3,6 +3,16 @@
|
|||
(arguments (alias) @name)
|
||||
(#match? @context "^(defmodule|defprotocol)$")) @item
|
||||
|
||||
(call
|
||||
target: (identifier) @context
|
||||
(arguments (_) @name)?
|
||||
(#match? @context "^(setup|setup_all)$")) @item
|
||||
|
||||
(call
|
||||
target: (identifier) @context
|
||||
(arguments (string) @name)
|
||||
(#match? @context "^(describe|test)$")) @item
|
||||
|
||||
(unary_operator
|
||||
operator: "@" @name
|
||||
operand: (call
|
||||
|
|
Loading…
Reference in a new issue