Closed TheFrozenDuck closed 2 years ago
I'm fairly sure that master already supports these "inline comments" using backticks; see https://github.com/mvdan/sh/issues/636#issuecomment-1097851426. Please say if I got that wrong and I'm happy to reopen.
To comment a multiline command I used following bash's command substitution [1] that allows to place a comment in a multiline command like this:
Trying to format this (allegedly) correct snippet leads to this:
I know it is somewhat of a special case but it changes the logic in the worst case.
[1] https://stackoverflow.com/questions/9522631/how-to-put-a-line-comment-for-a-multi-line-command#answer-12797512