sh icon indicating copy to clipboard operation
sh copied to clipboard

syntax: add option for balancing case parentheses

Open Artoria2e5 opened this issue 6 months ago • 0 comments

shfmt currently always removes the optional left parenthesis on case, which is part of the base POSIX sh language. Although nobody likes to type it on the command-line, the balanced form of case does have the benefit of, well, being balanced and not confusing generic parenthesis-highlight programs. I want to use it.

Artoria2e5 avatar Jun 17 '25 09:06 Artoria2e5