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

Introduce measuring scopes #755

Merged
merged 5 commits into from
Oct 1, 2024
Merged

Introduce measuring scopes #755

merged 5 commits into from
Oct 1, 2024

Conversation

nbacquey
Copy link
Member

@nbacquey nbacquey commented Sep 30, 2024

Description

This PR introduces a new feature in Topiary: measuring scopes.
They work in conjunction with "regular" custom scopes, to bind the multi-line-ness of the latter to a smaller subsection of itself.

Additionally, this PR solves a regression in OCaml introduced in #745, that couldn't be fixed without measuring scopes.

See the updated README for the precise usage of those measuring scopes.

Checklist

Checklist before merging:

  • CHANGELOG.md updated
  • README.md up-to-date

README.md Outdated Show resolved Hide resolved
@nbacquey nbacquey force-pushed the nb/measuring_scopes branch 3 times, most recently from 2c4edb0 to f411f24 Compare October 1, 2024 09:06
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
@nbacquey nbacquey force-pushed the nb/measuring_scopes branch from b2c3ee7 to 55cc175 Compare October 1, 2024 12:19
This commit introduce the notion of "measuring scope", which works in
conjonction with "regular" custom scopes, to bind the multi-line-ness of
the latter to a smaller subsection of itself.
This commit uses the newly introduced "measuring scopes" to fix the
indentation setback introduced in #745.
@nbacquey nbacquey force-pushed the nb/measuring_scopes branch from 55cc175 to d2cc542 Compare October 1, 2024 12:37
@nbacquey nbacquey merged commit 67e5adb into main Oct 1, 2024
9 checks passed
@nbacquey nbacquey deleted the nb/measuring_scopes branch October 1, 2024 13:55
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.

4 participants