Skip to content

Commit

Permalink
syntax: reminder TODO about a "space operators" option
Browse files Browse the repository at this point in the history
Closes mvdan#525.
  • Loading branch information
mvdan committed Mar 14, 2020
1 parent 5abcb9d commit 8bfaa27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions syntax/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ func SwitchCaseIndent(enabled bool) PrinterOption {
return func(p *Printer) { p.swtCaseIndent = enabled }
}

// TODO(v4): consider turning this into a "space all operators" option, to also
// allow foo=( bar baz ), (( x + y )), and so on.

// SpaceRedirects will put a space after most redirection operators. The
// exceptions are '>&', '<&', '>(', and '<('.
func SpaceRedirects(enabled bool) PrinterOption {
Expand Down

0 comments on commit 8bfaa27

Please sign in to comment.