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

Indentation on multi-line call containing functions #745

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

nbacquey
Copy link
Member

Description

Allows the following to be formatted as is:

foo
  bar
  (fun baz ->
    baaaaaaz
  )
  (fun qux ->
    quuuuuux
  )

This is a kind of a setback regarding the formatting of snippets such as the following:

foo bar (fun x ->
    x
  )

But I believe the topiary language isn't sufficiently expressive to currently have both.

Closes #726

Checklist

Checklist before merging:

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

@nbacquey nbacquey changed the title Nb/ocaml indentation Indentation on multi-line call containing functions Sep 17, 2024
@ErinvanderVeen ErinvanderVeen merged commit c6b66f7 into main Sep 18, 2024
9 checks passed
@ErinvanderVeen ErinvanderVeen deleted the nb/ocaml_indentation branch September 18, 2024 09:35
nbacquey added a commit that referenced this pull request Sep 30, 2024
This commit uses the newly introduced "measuring scopes" to fix the
indentation setback introduced in #745.
@nbacquey nbacquey mentioned this pull request Sep 30, 2024
2 tasks
nbacquey added a commit that referenced this pull request Oct 1, 2024
This commit uses the newly introduced "measuring scopes" to fix the
indentation setback introduced in #745.
nbacquey added a commit that referenced this pull request Oct 1, 2024
This commit uses the newly introduced "measuring scopes" to fix the
indentation setback introduced in #745.
nbacquey added a commit that referenced this pull request Oct 1, 2024
This commit uses the newly introduced "measuring scopes" to fix the
indentation setback introduced in #745.
nbacquey added a commit that referenced this pull request Oct 1, 2024
This commit uses the newly introduced "measuring scopes" to fix the
indentation setback introduced in #745.
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.

Not enough indentation on multi-line call containing a function
2 participants