diff --git a/ChangeLog b/ChangeLog index eda21933..67c57641 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ allow the user a little time to read them. * src/text.c (do_linter, do_formatter): Condense some declarations, rewrap some lines, and improve a few comments. + * doc/syntax/go.nanorc: Make the formatter command more visible. 2016-02-10 Benno Schulenberg * src/text.c (discard_until): Prevent a chain of editing actions from diff --git a/doc/syntax/go.nanorc b/doc/syntax/go.nanorc index 0b623347..e52d188b 100644 --- a/doc/syntax/go.nanorc +++ b/doc/syntax/go.nanorc @@ -2,6 +2,9 @@ syntax "go" "\.go$" +# Set up a formatter since spelling is probably useless... +formatter gofmt -w + # Types. color green "\<(bool|u?int(8|16|32|64)?|float(32|64)|complex(64|128)|byte|rune|uintptr|string|error)\>" color green "\<((<-[[:space:]]*)chan|chan[[:space:]]*<-|const|func|interface|map|struct|type|var)\>" @@ -40,6 +43,3 @@ color brightblue start="/\*" end="\*/" # Trailing whitespace. color ,green "[[:space:]]+$" - -# Set up the formatter since spelling is probably useless... -formatter gofmt -w