1
0
Fork 0
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:
Giovanni Smecca 2024-05-09 13:23:38 -05:00 committed by GitHub
parent 86737ada67
commit 9337acfb57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
]]