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
I think it would be nice to standardize an indent after symbols like ->. For example:
myFunction = {} >> o ->
n -> if n > 0then10^n elseerror"an annoyingly long error message here"
myMethod ZZ := n ->
n > 0then10^n elseerror"an annoyingly long error message here"
Not sure what other symbols, but probably all symbols associated to binary operators should get an indent if the second operand doesn't come before a newline.
@d-torrance do you happen to know how this would be implemented?
The text was updated successfully, but these errors were encountered:
@d-torrance do you happen to know how this would be implemented?
We'd probably need to overhaul the indentation code quite a bit. Right now, we basically just assume it's Lisp code and use parse-partial-sexp to figure out how many levels of parentheses we're inside and indent that many times. We could probably get inspiration from some other major modes' indent-line-function's.
I think it would be nice to standardize an indent after symbols like
->
. For example:Not sure what other symbols, but probably all symbols associated to binary operators should get an indent if the second operand doesn't come before a newline.
@d-torrance do you happen to know how this would be implemented?
The text was updated successfully, but these errors were encountered: