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
A :stair rule is similar to :block, except that it tries to indent test/expression clauses as pairs.
From this I'd expect the following snippet to be correctly formatted when having the indentation rule {cond [[:stair 0]]}
(cond (pos? n)
1
(neg? n)
-1:else0)
but it's formatted to
(cond (pos? n)
1
(neg? n)
-1:else0)
Same with
(cond (pos? n) 1
(neg? n) -1:else0)
which is formatted to
(cond (pos? n) 1
(neg? n) -1:else0)
The most reasonable behaviour in my mind for :stair is to have a base indentation that matches :block, and then add extra indentation for every other element after the one that the index is provided for.
I think it should be reasonable enough to have the same index be the basis for the :block and :stair parts of the rule.
The text was updated successfully, but these errors were encountered:
The documentation says
From this I'd expect the following snippet to be correctly formatted when having the indentation rule
{cond [[:stair 0]]}
but it's formatted to
Same with
which is formatted to
The most reasonable behaviour in my mind for
:stair
is to have a base indentation that matches:block
, and then add extra indentation for every other element after the one that the index is provided for.I think it should be reasonable enough to have the same index be the basis for the
:block
and:stair
parts of the rule.The text was updated successfully, but these errors were encountered: