-
-
Notifications
You must be signed in to change notification settings - Fork 84
Add support for domain, leading, trailing, interior #1427
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
Add support for domain, leading, trailing, interior #1427
Conversation
2cca025
to
ea5e9ce
Compare
@@ -13,3 +13,4 @@ | |||
(regex) @regularExpression | |||
|
|||
(class) @class | |||
(class name: (_) @className) @domain |
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.
Should this shorthand be @_.domain
instead to make it clearer that it's a related node rather than a different scope type?
6825a23
to
f083bea
Compare
ea5e9ce
to
fa186b1
Compare
); | ||
|
||
const interiorRange = getRelatedRange(match, scopeTypeType, "interior"); |
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.
Should we call this "inside"
? That's the term everyone knows. I'd also be tempted to do a rename interior
=> inside
in our code base, so maybe we should just do that in a follow-up
fa186b1
to
fd936cc
Compare
f083bea
to
aab6502
Compare
fd936cc
to
b5772a8
Compare
c0aeedf
to
631aa40
Compare
b5772a8
to
4ff3022
Compare
4ff3022
to
06f3c99
Compare
superseded by #1430 |
- Partially addresses #616 - Partially addresses #436 - Depends on #1396 ## Todo - [x] **[DISCUSS]** What to do about fallback `iterationScope`? That's the only thing that is a regression here. - [x] File issues for FIXMEs - [x] File issue for defining iteration scopes. Can probably reuse most of the code from the regular scope handler other than creating the target - [x] File issue to add unit tests for scope handlers - [x] File issue to add some Python scope types where multiple can end at the same point (due to lack of closing brackets) - [x] Add test that checks no scope types are duplicated between legacy and new definition, or file issue to add test - [x] File PR for my 7783da6 (Add support for domain, leading, trailing, interior) #1427 - [x] Look through comments on this thread for anything worth filing / doing - [x] Open as new PR? - [x] Remove extraneous test cases - [x] Double check #629 (comment); a lot of those tests we already have for the generic modifier code - [x] Make sure changes to parse-tree-extension are shipped - [x] Close #785 if we fix that - [x] Comment on #484 saying the process has started and providing link to example - [x] Close #797 if we fix that --------- Co-authored-by: Pokey Rule <[email protected]>
@_.domain
,@_.leading
,@_.trailing
,@_.removal
, and@_.interior
tree-sitter query capturesChecklist