You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
The indentation after a binary operator (two levels) never stacks, but I do think that dropping it after a comment is too eager. Making the comment token inherit the ephemeral indentation (also with never, so for inline comments it makes no difference) should solve this.
The text was updated successfully, but these errors were encountered:
When creating a new token for a comment, use the current ephemeral
indentation for the comment’s indentAfter, so that after the comment is
processed, the ephemeral indentation is restored to that value.
Part of #135.
Works now for comments that don’t span multiple lines. Unfortunately, I don’t think I’ll be able to figure out the multi-line case until I get a working IDE setup again :/ but it’s better than nothing, at least.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The formatter thinks this is the correct way to indent this code:
The indentation after a binary operator (two levels)
never
stacks, but I do think that dropping it after a comment is too eager. Making the comment token inherit the ephemeral indentation (also withnever
, so for inline comments it makes no difference) should solve this.The text was updated successfully, but these errors were encountered: