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
Adding respectBreak: 'control' support for try/catch (#58/#78), but currently isn't checking/respecting whether a single-expression finally block is indented or not, eg this:
try yes finally
'nothing'
is formatting like
try yes finally 'nothing'
Not sure if we'd want to be able to separately respect break of try/catch/finally? Eg preserve formatting of above rather than generating
try
yes
finally
'nothing'
Would that imply a separate group for the finally clause?
And in terms of detecting/implementing, seems like you could either try and compare last line of catch (if it exists) or try to first line of finally block, or perhaps if that wasn't good enough would want to expose indented in the AST similar to how function bodies do?
The text was updated successfully, but these errors were encountered:
Adding
respectBreak: 'control'
support fortry
/catch
(#58/#78), but currently isn't checking/respecting whether a single-expressionfinally
block is indented or not, eg this:is formatting like
Not sure if we'd want to be able to separately respect break of
try
/catch
/finally
? Eg preserve formatting of above rather than generatingWould that imply a separate group for the
finally
clause?And in terms of detecting/implementing, seems like you could either try and compare last line of
catch
(if it exists) ortry
to first line offinally
block, or perhaps if that wasn't good enough would want to exposeindented
in the AST similar to how function bodies do?The text was updated successfully, but these errors were encountered: