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

FormatWriter: share shifted columns between lines #3923

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

kitbellew
Copy link
Collaborator

Current assumption is that stops in each line of an align block match positionally, that is, first stop of every line matches the first new shifted column, etc.

However, later on we will break this assumption, by adding intermediate (nested) stops in some lines.

Therefore, each stop will need to contain reference to its own shifted column, via a wrapped-integer object.

Helps with #3465.

Current assumption is that stops in each line of an align block match
positionally, that is, first stop of every line matches the first new
shifted column, etc.

However, later on we will break this assumption, by adding intermediate
(nested) stops in some lines.

Therefore, each stop will need to contain reference to its own shifted
column, via a wrapped-integer object.
@kitbellew kitbellew merged commit 62a6f9f into scalameta:master Apr 11, 2024
9 checks passed
@kitbellew kitbellew deleted the 3465_10 branch April 11, 2024 13:28
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.

2 participants