inherent imperfection of using regular expressions for syntax
highlighting, as suggested by Mike Frysinger in bug #30962.
* doc/man/nanorc.5: Improve the indentation of some lists.
+ * doc/man/nanorc.5, doc/texinfo/nano.texi: Remove the mistaken
+ square brackets around the arguments of "header" and "magic" --
+ those arguments are not optional. Also add "formatter" to the
+ texinfo document, and slightly improve its punctuation.
GNU nano 2.3.99pre2 - 2015.02.27
2015-02-25 Chris Allegretta <chrisa@asty.org>
.TP
.BI formatter " program " \fR[ "arg " \fR...]
For the currently defined syntax, use the given \fIprogram\fR
-to automatically re-format text, useful in certain programming
-languages (e.g. go)
+to automatically reformat text. Useful in certain programming
+languages (e.g. go).
.TP
-.BR header " [""\fIregex\fR"" ...]
+.BR header " \fIregex\fR " ...
For the currently defined syntax, add one or more regexes which will
be compared against the very first line of the file to be edited,
to determine whether this syntax should be used for that file.
.TP
-.BR magic " [""\fIregex\fR"" ...]
+.BR magic " \fIregex\fR " ...
For the currently defined syntax, add one or more regexes which
will be compared against the result of querying the \fBmagic\fP
database about the file to be edited, to determine whether this
For the currently defined syntax, use the given program to invoke the
linter (this overrides the speller function when defined).
+@item formatter program [arg @dots{}]
+For the currently defined syntax, use the given program to automatically
+reformat text. Useful in certain programming languages (e.g. go).
+
@item header "regex" @dots{}
For the currently defined syntax, add one or more regexes which will
be compared against the very first line of the file to be edited,
to determine whether this syntax should be used for that file.
-@item magic ["regex" @dots{}]
+@item magic "regex" @dots{}
For the currently defined syntax, add one or more regexes which will be
compared against the result of querying the magic database about the file
to be edited, to determine whether this syntax should be used for that