Skip to content

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 force-pushed the nb/ocaml_indentation branch from ea56d48 to 2f14687 Compare September 17, 2024 17:22
@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
@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

3 participants