commit 6f352038daceefdd830375b79b4299eefb33fe8c
parent de5b2634c873400645819eeb2fbb5c4d91abb138
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Thu, 11 Feb 2016 17:30:16 +0000
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
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git 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 <bensberg@justemail.net>
* src/text.c (discard_until): Prevent a chain of editing actions from
diff --git 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