Skip to content

Commit

Permalink
fix(sub-tests): supports subtests with an identifier (#82)
Browse files Browse the repository at this point in the history
Co-authored-by: Florent Cigolotti <[email protected]>
  • Loading branch information
florentcigolotti and Florent Cigolotti authored Apr 29, 2024
1 parent 36abe1d commit 51f8dae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/dap-go-ts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ local subtests_query = [[
field: (field_identifier) @run)
arguments: (argument_list
(interpreted_string_literal) @testname
(func_literal))
[
(func_literal)
(identifier)
])
(#eq? @run "Run")) @parent
]]

Expand Down

0 comments on commit 51f8dae

Please sign in to comment.