elixir: Support describe, test, setup, setup_all in outlines (#19135)
Closes #9894 Release Notes: - N/A ### Before  ### After 
This commit is contained in:
@@ -3,6 +3,16 @@
|
|||||||
(arguments (alias) @name)
|
(arguments (alias) @name)
|
||||||
(#match? @context "^(defmodule|defprotocol)$")) @item
|
(#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
|
(unary_operator
|
||||||
operator: "@" @name
|
operator: "@" @name
|
||||||
operand: (call
|
operand: (call
|
||||||
|
|||||||
Reference in New Issue
Block a user