From 51f8dae9da1fc3759eeb646ea1a6bd244edf221c Mon Sep 17 00:00:00 2001 From: Florent Cigolotti <26457653+florentcigolotti@users.noreply.github.com> Date: Mon, 29 Apr 2024 04:30:57 +0200 Subject: [PATCH] fix(sub-tests): supports subtests with an identifier (#82) Co-authored-by: Florent Cigolotti --- lua/dap-go-ts.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/dap-go-ts.lua b/lua/dap-go-ts.lua index 1af89ca..f3c1526 100644 --- a/lua/dap-go-ts.lua +++ b/lua/dap-go-ts.lua @@ -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 ]]