-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tree-sitter-r.wasm and make queries work #2726
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,43 +93,37 @@ async function findTests(uri: vscode.Uri) { | |
(call | ||
function: [ | ||
(identifier) @_function.name | ||
(namespace_get | ||
function: (identifier) @_function.name | ||
) | ||
] (#eq? @_function.name "test_that") | ||
arguments: | ||
(arguments | ||
value: (string) @label | ||
value: (_) | ||
arguments: (arguments | ||
(argument | ||
value: (string) @label | ||
Comment on lines
-100
to
+99
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've also simplified the query here, because I'd really rather make larger assertions about the structure of the overall call by using |
||
) | ||
) | ||
) @call | ||
|
||
(call | ||
function: [ | ||
(identifier) @_superfunction.name | ||
(namespace_get | ||
function: (identifier) @_superfunction.name | ||
) | ||
Comment on lines
-110
to
-112
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto above. Not currently capturing |
||
] (#eq? @_superfunction.name "describe") | ||
arguments: | ||
(arguments | ||
arguments: (arguments | ||
(argument | ||
value: (string) @superlabel | ||
value: (_ | ||
(call | ||
Comment on lines
-117
to
-118
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above re: plans to vet the entire capture with |
||
) | ||
(argument | ||
value: (braced_expression | ||
body: (call | ||
function: [ | ||
(identifier) @_function.name | ||
(namespace_get | ||
function: (identifier) @_function.name | ||
) | ||
Comment on lines
-121
to
-123
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto above re: |
||
] (#eq? @_function.name "it") | ||
arguments: | ||
(arguments | ||
arguments: (arguments | ||
(argument | ||
value: (string) @label | ||
value: (_) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above re: plans to vet the entire capture with |
||
) | ||
) | ||
) @call | ||
) | ||
) | ||
) | ||
) @supercall | ||
` | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a slight loss of functionality, in the sense that I'm not looking for
testthat::test_that()
at the moment. But I'll bring that back soon (and I also don't think that is very common).