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
This commit is contained in:
Benno Schulenberg 2016-02-11 17:30:16 +00:00
parent de5b2634c8
commit 6f352038da
2 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@
allow the user a little time to read them. allow the user a little time to read them.
* src/text.c (do_linter, do_formatter): Condense some declarations, * src/text.c (do_linter, do_formatter): Condense some declarations,
rewrap some lines, and improve a few comments. 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> 2016-02-10 Benno Schulenberg <bensberg@justemail.net>
* src/text.c (discard_until): Prevent a chain of editing actions from * src/text.c (discard_until): Prevent a chain of editing actions from

View File

@ -2,6 +2,9 @@
syntax "go" "\.go$" syntax "go" "\.go$"
# Set up a formatter since spelling is probably useless...
formatter gofmt -w
# Types. # Types.
color green "\<(bool|u?int(8|16|32|64)?|float(32|64)|complex(64|128)|byte|rune|uintptr|string|error)\>" 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)\>" color green "\<((<-[[:space:]]*)chan|chan[[:space:]]*<-|const|func|interface|map|struct|type|var)\>"
@ -40,6 +43,3 @@ color brightblue start="/\*" end="\*/"
# Trailing whitespace. # Trailing whitespace.
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
# Set up the formatter since spelling is probably useless...
formatter gofmt -w