From 492e501fb331c69d513d36550d6cfdb18d6a7806 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 1 Aug 2005 05:08:01 +0000 Subject: [PATCH] document the "none" and "default" syntaxes in nanorc.5 git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2963 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 +++- doc/man/nanorc.5 | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e29acc5d..86a4e134 100644 --- a/ChangeLog +++ b/ChangeLog @@ -290,7 +290,9 @@ CVS code - - Add regexes for Bourne shell scripts. (Mike Frysinger, minor tweaks by DLR) - Explain how the "none" and "default" syntaxes work. (DLR) -- doc/man/fr/nano.1, doc/man/fr/nanorc.1: +- doc/man/nanorc.5: + - Explain how the "none" and "default" syntaxes work. (DLR) +- doc/man/fr/nano.1, doc/man/fr/nanorc.5: - Updated translation by Jean-Philippe GĂ©rard. - src/Makefile.am: - Add text.c to nano_SOURCES. (DLR) diff --git a/doc/man/nanorc.5 b/doc/man/nanorc.5 index 9f4bcad1..6594e84c 100644 --- a/doc/man/nanorc.5 +++ b/doc/man/nanorc.5 @@ -6,7 +6,7 @@ .\" Public License for copying conditions. There is NO warranty. .\" .\" $Id$ -.TH NANORC 5 "version 1.3.8" "June 27, 2005" +.TH NANORC 5 "version 1.3.8" "August 01, 2005" .\" Please adjust this date whenever revising the manpage. .\" .SH NAME @@ -173,6 +173,11 @@ Defines a syntax named \fIstr\fP which can be activated via the \fB-Y\fP flag, or will be automatically activated if the current filename matches \fIfileregex\fP. All following \fBcolor\fP and \fBicolor\fP statements will apply to \fIsyntax\fP until a new syntax is defined. + +The \fInone\fP syntax is reserved; specifying it on the command line is +the same as not having a syntax at all. The \fIdefault\fP syntax is +special: it takes no \fIfileregex\fP, and applies to files that don't +match any other syntax's \fIfileregex\fP. .TP .B color \fIfgcolor\fP,\fIbgcolor\fP "\fIregex\fP" ... For the currently defined syntax, display all expressions matching -- 2.39.5