docs: clarify that a fileregex is matched against the absolute filename

This commit is contained in:
Benno Schulenberg 2023-02-16 11:02:15 +01:00
parent 866490c41f
commit 7681090c12
2 changed files with 8 additions and 6 deletions

View File

@ -1235,9 +1235,10 @@ will be added to this syntax, until a new @code{syntax}
command is encountered. command is encountered.
When @command{nano} is run, this syntax will be automatically When @command{nano} is run, this syntax will be automatically
activated if the current filename matches the extended regular activated (for the relevant buffer) if the absolute filename
expression @var{fileregex}. Or the syntax can be explicitly matches the extended regular expression @var{fileregex}.
activated by using the @option{-Y} or @option{--syntax} Or the syntax can be explicitly activated (for all buffers)
by using the @option{-Y} or @option{--syntax}
command-line option followed by the @var{name}. command-line option followed by the @var{name}.
The @code{default} syntax is special: it takes no @var{fileregex}, The @code{default} syntax is special: it takes no @var{fileregex},

View File

@ -439,9 +439,10 @@ will be added to this syntax, until a new \fBsyntax\fR
command is encountered. command is encountered.
.sp .sp
When \fBnano\fR is run, this syntax will be automatically When \fBnano\fR is run, this syntax will be automatically
activated if the current filename matches the extended regular activated (for the relevant buffer) if the absolute filename
expression \fIfileregex\fR. Or the syntax can be explicitly matches the extended regular expression \fIfileregex\fR.
activated by using the \fB\-Y\fR or \fB\-\-syntax\fR Or the syntax can be explicitly activated (for all buffers)
by using the \fB\-Y\fR or \fB\-\-syntax\fR
command-line option followed by the \fIname\fR. command-line option followed by the \fIname\fR.
.sp .sp
The syntax \fBdefault\fP is special: it takes no \fIfileregex\fR, The syntax \fBdefault\fP is special: it takes no \fIfileregex\fR,