From 6f352038daceefdd830375b79b4299eefb33fe8c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 11 Feb 2016 17:30:16 +0000 Subject: [PATCH] Making the formatter command more visible in the Go syntax file. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5634 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + doc/syntax/go.nanorc | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.5