Skip to content

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

Conversation

pokey
Copy link
Member

@pokey pokey commented Apr 15, 2023

Checklist

@pokey pokey force-pushed the pokey/add-support-for-domain-leading-trailing-interior branch from 2cca025 to ea5e9ce Compare April 15, 2023 21:57
@pokey pokey changed the base branch from bases/pokey/add-support-for-domain-leading-trailing-interior to main April 15, 2023 21:59
@pokey pokey changed the base branch from main to bases/pokey/add-support-for-domain-leading-trailing-interior April 15, 2023 21:59
@@ -13,3 +13,4 @@
(regex) @regularExpression

(class) @class
(class name: (_) @className) @domain
Copy link
Member Author

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?

@pokey pokey force-pushed the bases/pokey/add-support-for-domain-leading-trailing-interior branch from 6825a23 to f083bea Compare April 15, 2023 22:05
@pokey pokey force-pushed the pokey/add-support-for-domain-leading-trailing-interior branch from ea5e9ce to fa186b1 Compare April 15, 2023 22:05
);

const interiorRange = getRelatedRange(match, scopeTypeType, "interior");
Copy link
Member Author

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

@pokey pokey force-pushed the pokey/add-support-for-domain-leading-trailing-interior branch from fa186b1 to fd936cc Compare April 16, 2023 11:36
@pokey pokey force-pushed the bases/pokey/add-support-for-domain-leading-trailing-interior branch from f083bea to aab6502 Compare April 16, 2023 11:36
@pokey pokey force-pushed the pokey/add-support-for-domain-leading-trailing-interior branch from fd936cc to b5772a8 Compare April 16, 2023 11:46
@pokey pokey force-pushed the bases/pokey/add-support-for-domain-leading-trailing-interior branch from c0aeedf to 631aa40 Compare April 17, 2023 15:03
@pokey pokey force-pushed the pokey/add-support-for-domain-leading-trailing-interior branch from b5772a8 to 4ff3022 Compare April 17, 2023 15:03
@pokey pokey force-pushed the pokey/add-support-for-domain-leading-trailing-interior branch from 4ff3022 to 06f3c99 Compare April 18, 2023 18:30
@pokey pokey changed the base branch from bases/pokey/add-support-for-domain-leading-trailing-interior to main April 18, 2023 19:32
@pokey pokey changed the base branch from main to bases/pokey/add-support-for-domain-leading-trailing-interior April 18, 2023 19:32
@pokey
Copy link
Member Author

pokey commented Apr 18, 2023

superseded by #1430

@pokey pokey closed this Apr 18, 2023
@pokey pokey deleted the pokey/add-support-for-domain-leading-trailing-interior branch April 18, 2023 23:04
pokey added a commit that referenced this pull request Apr 19, 2023
- 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant