-
-
Notifications
You must be signed in to change notification settings - Fork 92
Change interior domain #3099
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
Merged
Merged
Change interior domain #3099
Changes from 24 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
38fbf06
Added interior range to Tree sitter scope type targets
AndreasArvidsson 6e152e9
Update interior scope handler
AndreasArvidsson fd1577d
Update comment
AndreasArvidsson 3c1df79
Merge branch 'main' into inside
AndreasArvidsson b3e6f75
Update Java
AndreasArvidsson 4bf62d4
python
AndreasArvidsson 0cc45bc
c
AndreasArvidsson b0a1062
cpp
AndreasArvidsson cda80ed
csharp
AndreasArvidsson 895aa39
go
AndreasArvidsson 717179d
html
AndreasArvidsson a2b1e27
xml
AndreasArvidsson 1f00486
typescript
AndreasArvidsson a1933d4
scss
AndreasArvidsson 0521934
latex
AndreasArvidsson 7fd57a1
talon
AndreasArvidsson 7a151f9
lua
AndreasArvidsson f93936c
markdown
AndreasArvidsson a8c533e
r
AndreasArvidsson 09ea3f4
Update comments
AndreasArvidsson fceedc5
textual
AndreasArvidsson 976bb42
Use every scope for interiors in typed targets
AndreasArvidsson d33b6c1
Changelog
AndreasArvidsson 2c20e19
Pass lint
AndreasArvidsson 84626c5
Clean up
AndreasArvidsson afe0498
Restore head tail
AndreasArvidsson ea7925b
Added comment
AndreasArvidsson e2e0968
Remove change log
AndreasArvidsson af04dbc
Add test
AndreasArvidsson 4d180d5
Update comment
AndreasArvidsson 3c6ebd5
Update tests
AndreasArvidsson dd93599
latex interior
AndreasArvidsson 079b26d
update tests
AndreasArvidsson a8989d0
Mark interior as sudo scope
AndreasArvidsson 7530b9d
more latex
AndreasArvidsson 31d4374
Rename default spoke in form for interior scope
AndreasArvidsson 9143031
Update comment
AndreasArvidsson ed6ca7e
Update lua test
AndreasArvidsson d1f4aa8
Clean up comments
AndreasArvidsson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| tags: [enhancement] | ||
| pullRequest: 3099 | ||
| --- | ||
|
|
||
| - Interior domain is now same as content range (before shrinking to text content). `"take inside"` with the cursor on a function name will not select function body anymore. | ||
| - Interior of typed target now utilities every scope. `"take inside funk"` will select function body. `"take inside state"` will select all branch bodies in an if statement. | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,25 +1,10 @@ | ||
| struct Foo { }; | ||
| --- | ||
|
|
||
| [#1 Content] = | ||
| [#1 Removal] = 0:12-0:13 | ||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:12-0:13 | ||
| >-< | ||
| 0| struct Foo { }; | ||
|
|
||
| [#1 Domain] = 0:0-0:15 | ||
| >---------------< | ||
| 0| struct Foo { }; | ||
|
|
||
| [#1 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#2 Content] = | ||
| [#2 Removal] = 0:12-0:13 | ||
| >-< | ||
| 0| struct Foo { }; | ||
|
|
||
| [#2 Domain] = 0:11-0:14 | ||
| >---< | ||
| 0| struct Foo { }; | ||
|
|
||
| [#2 Insertion delimiter] = " " | ||
| [Insertion delimiter] = " " |
This file contains hidden or 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,25 +1,10 @@ | ||
| union Foo { }; | ||
| --- | ||
|
|
||
| [#1 Content] = | ||
| [#1 Removal] = 0:11-0:12 | ||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:11-0:12 | ||
| >-< | ||
| 0| union Foo { }; | ||
|
|
||
| [#1 Domain] = 0:0-0:14 | ||
| >--------------< | ||
| 0| union Foo { }; | ||
|
|
||
| [#1 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#2 Content] = | ||
| [#2 Removal] = 0:11-0:12 | ||
| >-< | ||
| 0| union Foo { }; | ||
|
|
||
| [#2 Domain] = 0:10-0:13 | ||
| >---< | ||
| 0| union Foo { }; | ||
|
|
||
| [#2 Insertion delimiter] = " " | ||
| [Insertion delimiter] = " " |
This file contains hidden or 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,25 +1,10 @@ | ||
| typedef struct { } Foo; | ||
| --- | ||
|
|
||
| [#1 Content] = | ||
| [#1 Removal] = 0:16-0:17 | ||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:16-0:17 | ||
| >-< | ||
| 0| typedef struct { } Foo; | ||
|
|
||
| [#1 Domain] = 0:0-0:23 | ||
| >-----------------------< | ||
| 0| typedef struct { } Foo; | ||
|
|
||
| [#1 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#2 Content] = | ||
| [#2 Removal] = 0:16-0:17 | ||
| >-< | ||
| 0| typedef struct { } Foo; | ||
|
|
||
| [#2 Domain] = 0:15-0:18 | ||
| >---< | ||
| 0| typedef struct { } Foo; | ||
|
|
||
| [#2 Insertion delimiter] = " " | ||
| [Insertion delimiter] = " " |
This file contains hidden or 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,25 +1,10 @@ | ||
| typedef union { } Foo; | ||
| --- | ||
|
|
||
| [#1 Content] = | ||
| [#1 Removal] = 0:15-0:16 | ||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:15-0:16 | ||
| >-< | ||
| 0| typedef union { } Foo; | ||
|
|
||
| [#1 Domain] = 0:0-0:22 | ||
| >----------------------< | ||
| 0| typedef union { } Foo; | ||
|
|
||
| [#1 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#2 Content] = | ||
| [#2 Removal] = 0:15-0:16 | ||
| >-< | ||
| 0| typedef union { } Foo; | ||
|
|
||
| [#2 Domain] = 0:14-0:17 | ||
| >---< | ||
| 0| typedef union { } Foo; | ||
|
|
||
| [#2 Insertion delimiter] = " " | ||
| [Insertion delimiter] = " " |
This file contains hidden or 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,37 +1,10 @@ | ||
| do { } while (true); | ||
| --- | ||
|
|
||
| [#1 Content] = | ||
| [#1 Removal] = 0:4-0:5 | ||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:4-0:5 | ||
| >-< | ||
| 0| do { } while (true); | ||
|
|
||
| [#1 Domain] = 0:0-0:20 | ||
| >--------------------< | ||
| 0| do { } while (true); | ||
|
|
||
| [#1 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#2 Content] = | ||
| [#2 Removal] = 0:4-0:5 | ||
| >-< | ||
| 0| do { } while (true); | ||
|
|
||
| [#2 Domain] = 0:3-0:6 | ||
| >---< | ||
| 0| do { } while (true); | ||
|
|
||
| [#2 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#3 Content] = | ||
| [#3 Removal] = 0:14-0:18 | ||
| >----< | ||
| 0| do { } while (true); | ||
|
|
||
| [#3 Domain] = 0:13-0:19 | ||
| >------< | ||
| 0| do { } while (true); | ||
|
|
||
| [#3 Insertion delimiter] = " " | ||
| [Insertion delimiter] = " " |
This file contains hidden or 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,25 +1,10 @@ | ||
| enum Foo { }; | ||
| --- | ||
|
|
||
| [#1 Content] = | ||
| [#1 Removal] = 0:10-0:11 | ||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:10-0:11 | ||
| >-< | ||
| 0| enum Foo { }; | ||
|
|
||
| [#1 Domain] = 0:0-0:13 | ||
| >-------------< | ||
| 0| enum Foo { }; | ||
|
|
||
| [#1 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#2 Content] = | ||
| [#2 Removal] = 0:10-0:11 | ||
| >-< | ||
| 0| enum Foo { }; | ||
|
|
||
| [#2 Domain] = 0:9-0:12 | ||
| >---< | ||
| 0| enum Foo { }; | ||
|
|
||
| [#2 Insertion delimiter] = " " | ||
| [Insertion delimiter] = " " |
This file contains hidden or 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,25 +1,10 @@ | ||
| typedef enum { } Foo; | ||
| --- | ||
|
|
||
| [#1 Content] = | ||
| [#1 Removal] = 0:14-0:15 | ||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:14-0:15 | ||
| >-< | ||
| 0| typedef enum { } Foo; | ||
|
|
||
| [#1 Domain] = 0:0-0:21 | ||
| >---------------------< | ||
| 0| typedef enum { } Foo; | ||
|
|
||
| [#1 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#2 Content] = | ||
| [#2 Removal] = 0:14-0:15 | ||
| >-< | ||
| 0| typedef enum { } Foo; | ||
|
|
||
| [#2 Domain] = 0:13-0:16 | ||
| >---< | ||
| 0| typedef enum { } Foo; | ||
|
|
||
| [#2 Insertion delimiter] = " " | ||
| [Insertion delimiter] = " " |
This file contains hidden or 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,37 +1,10 @@ | ||
| for (int i = 0; i < size; ++i) { } | ||
| --- | ||
|
|
||
| [#1 Content] = | ||
| [#1 Removal] = 0:32-0:33 | ||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:32-0:33 | ||
| >-< | ||
| 0| for (int i = 0; i < size; ++i) { } | ||
|
|
||
| [#1 Domain] = 0:0-0:34 | ||
| >----------------------------------< | ||
| 0| for (int i = 0; i < size; ++i) { } | ||
|
|
||
| [#1 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#2 Content] = | ||
| [#2 Removal] = 0:5-0:29 | ||
| >------------------------< | ||
| 0| for (int i = 0; i < size; ++i) { } | ||
|
|
||
| [#2 Domain] = 0:4-0:30 | ||
| >--------------------------< | ||
| 0| for (int i = 0; i < size; ++i) { } | ||
|
|
||
| [#2 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#3 Content] = | ||
| [#3 Removal] = 0:32-0:33 | ||
| >-< | ||
| 0| for (int i = 0; i < size; ++i) { } | ||
|
|
||
| [#3 Domain] = 0:31-0:34 | ||
| >---< | ||
| 0| for (int i = 0; i < size; ++i) { } | ||
|
|
||
| [#3 Insertion delimiter] = " " | ||
| [Insertion delimiter] = " " |
This file contains hidden or 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,37 +1,10 @@ | ||
| void foo() { } | ||
| --- | ||
|
|
||
| [#1 Content] = | ||
| [#1 Removal] = 0:12-0:13 | ||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:12-0:13 | ||
| >-< | ||
| 0| void foo() { } | ||
|
|
||
| [#1 Domain] = 0:0-0:14 | ||
| >--------------< | ||
| 0| void foo() { } | ||
|
|
||
| [#1 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#2 Content] = | ||
| [#2 Removal] = 0:9-0:9 | ||
| >< | ||
| 0| void foo() { } | ||
|
|
||
| [#2 Domain] = 0:8-0:10 | ||
| >--< | ||
| 0| void foo() { } | ||
|
|
||
| [#2 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#3 Content] = | ||
| [#3 Removal] = 0:12-0:13 | ||
| >-< | ||
| 0| void foo() { } | ||
|
|
||
| [#3 Domain] = 0:11-0:14 | ||
| >---< | ||
| 0| void foo() { } | ||
|
|
||
| [#3 Insertion delimiter] = " " | ||
| [Insertion delimiter] = " " |
This file contains hidden or 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,37 +1,10 @@ | ||
| void Foo::bar() { } | ||
| --- | ||
|
|
||
| [#1 Content] = | ||
| [#1 Removal] = 0:17-0:18 | ||
| [Content] = | ||
| [Removal] = | ||
| [Domain] = 0:17-0:18 | ||
| >-< | ||
| 0| void Foo::bar() { } | ||
|
|
||
| [#1 Domain] = 0:0-0:19 | ||
| >-------------------< | ||
| 0| void Foo::bar() { } | ||
|
|
||
| [#1 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#2 Content] = | ||
| [#2 Removal] = 0:14-0:14 | ||
| >< | ||
| 0| void Foo::bar() { } | ||
|
|
||
| [#2 Domain] = 0:13-0:15 | ||
| >--< | ||
| 0| void Foo::bar() { } | ||
|
|
||
| [#2 Insertion delimiter] = " " | ||
|
|
||
|
|
||
| [#3 Content] = | ||
| [#3 Removal] = 0:17-0:18 | ||
| >-< | ||
| 0| void Foo::bar() { } | ||
|
|
||
| [#3 Domain] = 0:16-0:19 | ||
| >---< | ||
| 0| void Foo::bar() { } | ||
|
|
||
| [#3 Insertion delimiter] = " " | ||
| [Insertion delimiter] = " " |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.