forked from stevanmilic/neotest-scala
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscalatest-flatspec.scm
45 lines (38 loc) · 1.49 KB
/
scalatest-flatspec.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
((infix_expression
left: (infix_expression
left: (identifier) @test.describe
right: (string) @test.name)
operator: (identifier) @keyword.in (#eq? @keyword.in "in")
right: (block) @test.body
)) @test.definition
((infix_expression
left: (infix_expression
left: (string) @test.describe
right: (string) @test.name)
operator: (identifier) @keyword.in (#eq? @keyword.in "in")
right: (block) @test.body
)) @test.definition
((infix_expression
left: (infix_expression
left: (string) @test.describe
operator: (identifier) @keyword.ignore (#eq? @keyword.ignore "ignore")
)
)) @test.ignore
((call_expression
function: (identifier) @keyword.pending (#eq? @keyword.pending "pending")
)) @test.pending
((call_expression
function: (identifier) @keyword.cancel (#eq? @keyword.cancel "cancel")
)) @test.cancel
((call_expression
function: (identifier) @keyword.info (#eq? @keyword.info "info")
arguments: (arguments (string) @test.additional_info)
)) @test.info
((infix_expression
left: (infix_expression
left: (string) @test.describe
operator: (identifier) @keyword.which (#eq? @keyword.which "which")
right: (string) @test.name)
operator: (identifier) @keyword.in (#eq? @keyword.in "in")
right: (block) @test.body
)) @test.definition_with_which