mirror of
https://github.com/pnx/neotest-phpunit
synced 2026-06-16 03:54:55 +02:00
fix(treesitter): Update string_value to string_content (#9)
Update the Treesitter queries to use string_content instead of string_value to capture the content inside string literals, excluding the surrounding quotes. This change is made to adapt to the updates in nvim-treesitter and ensure compatibility with the latest version. Resolves #7
This commit is contained in:
parent
86737ada67
commit
9337acfb57
1 changed files with 2 additions and 2 deletions
|
|
@ -76,13 +76,13 @@ function NeotestAdapter.discover_positions(path)
|
|||
((expression_statement
|
||||
(member_call_expression
|
||||
name: (name) @member_name (#eq? @member_name "group")
|
||||
arguments: (arguments . (argument (string (string_value) @namespace.name)))
|
||||
arguments: (arguments . (argument (string (string_content) @namespace.name)))
|
||||
) @member
|
||||
)) @namespace.definition
|
||||
|
||||
((function_call_expression
|
||||
function: (name) @func_name (#match? @func_name "^(test|it)$")
|
||||
arguments: (arguments . (argument (string (string_value) @test.name)))
|
||||
arguments: (arguments . (argument (string (string_content) @test.name)))
|
||||
)) @test.definition
|
||||
]]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue