Skip to content
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 ~replacement metafunction #247

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Add ~replacement metafunction #247

merged 1 commit into from
Aug 29, 2024

Conversation

jackfirth
Copy link
Owner

@jackfirth jackfirth commented Aug 29, 2024

The ~replacement metafunction cooperates with syntax-mark-original-neighbors and syntax-originally-neighbors? to detect when two syntax objects weren't originally adjacent in the input syntax, but one (or both) of them is a drop-in replacements for input subforms that were adjacent. This makes a lot of uses of ORIGINAL-GAP unnecessary, though sadly not all of them.

This cooperates with `syntax-mark-original-neighbors` and `syntax-originally-neighbors?` to detect when two syntax objects weren't originally adjacent in the input syntax, but one (or both) of them is a drop-in replacements for input subforms that _were_ adjacent. This makes a lot of uses of `ORIGINAL-GAP` unnecessary, though sadly not all of them.
@jackfirth jackfirth merged commit cec0272 into master Aug 29, 2024
2 checks passed
@jackfirth jackfirth deleted the cleanup-replacements branch August 29, 2024 06:45
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