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
Originally posted by antichris April 3, 2022
Is there a specific design reason why the space preceding a comment is removed when it follows an open parenthesis, or is it by accident?
If a comment isn't at the start of a line, it must follow a space at all times.
We enforced this in general, but not in some edge cases, such as when
an inline comment followed the start of a subshell or command substitution.
Fixes#839.
Discussed in #838
Originally posted by antichris April 3, 2022
Is there a specific design reason why the space preceding a comment is removed when it follows an open parenthesis, or is it by accident?
Given the input
shfmt
yieldsThe text was updated successfully, but these errors were encountered: