Skip to content

Expression quotes add spaces#138

Merged
jbachurski merged 1 commit intojanefrom
jbachurski/expression-quotes-with-spaces
Apr 16, 2026
Merged

Expression quotes add spaces#138
jbachurski merged 1 commit intojanefrom
jbachurski/expression-quotes-with-spaces

Conversation

@jbachurski
Copy link
Copy Markdown

We were previously only adding spaces for multiline quotes, e.g.

<[ let x = ... in
     ... ]>

This PR always adds spaces for quotes of expressions. Instead of:

<[let x = ... in ...]>

we get:

<[ let x = ... in ... ]>

Similarly, <[x]> is now <[ x ]>.
See the diff for more examples.

Existing tests should be sufficient. I'd only be worried about weird wrapping behaviour, but I'm not sure what tests to add for that.

Quotes of types do not add spaces like before.

Comment thread lib/Fmt_ast.ml
@jbachurski jbachurski merged commit dc35cae into jane Apr 16, 2026
2 checks passed
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.

3 participants