-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimental support for treesit tests
- Loading branch information
Showing
3 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
@Treesit | ||
Feature: treesit expansions | ||
Background: | ||
Given there is no region selected | ||
And I turn on rust-ts-mode | ||
And rust-ts-mode is enabled | ||
|
||
Scenario: Successively expand the region | ||
When I insert "fn some_func(arg: String) -> String { arg.to_lowercase() }" | ||
And I place the cursor before "to_lowercase" | ||
When I insert "fn foo() -> Option<()> {\n let foo = Some(1)?;\n None\n}" | ||
And I place the cursor before "Some" | ||
And I press "C-@" | ||
Then the region should be "to_lowercase" | ||
Then the region should be "Some" | ||
And I press "C-@" | ||
Then the region should be "arg.to_lowercase()" | ||
Then the region should be "Some(1)" | ||
And I press "C-@" | ||
Then the region should be "{ arg.to_lowercase() }" | ||
Then the region should be "Some(1)?" | ||
And I press "C-@" | ||
Then the region should be "let foo = Some(1)?;" |