Skip to content

Commit 635fd2b

Browse files
authored
Merge pull request JuliaEditorSupport#45 from aviatesk/avi/outline
outline: support outline for `@testset` and `include`s
2 parents 3cc8362 + 3aa9055 commit 635fd2b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

languages/julia/outline.scm

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,19 @@
8787
(_) @name
8888
(operator)
8989
(_))) @item
90+
91+
; Test sets - show test organization in outline
92+
(macrocall_expression
93+
(macro_identifier "@" (identifier) @_macro)
94+
(#eq? @_macro "testset")) @name @item
95+
96+
; ; Individual tests - show full @test expression
97+
; (macrocall_expression
98+
; (macro_identifier "@" (identifier) @_macro)
99+
; (#eq? @_macro "test")) @name @item
100+
101+
; Include statements - useful for navigating file structure
102+
(call_expression
103+
(identifier) @_call @context
104+
(argument_list) @name
105+
(#eq? @_call "include")) @item

0 commit comments

Comments
 (0)