From b27efce732c47a73009226c0945dbc488458f5d5 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 26 May 2021 11:38:46 +0200 Subject: [PATCH] docs: mention that "grey"/"gray" may be used as a synonym of "lightblack" Also, colorize "grey" and "gray" as valid names in a nanorc file. --- doc/nano.texi | 2 ++ doc/nanorc.5 | 2 ++ syntax/nanorc.nanorc | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/nano.texi b/doc/nano.texi index d9b6f082..279520c0 100644 --- a/doc/nano.texi +++ b/doc/nano.texi @@ -876,6 +876,8 @@ Valid names for the foreground and background colors are: @code{white}, and @code{black}. Each of these eight names may be prefixed with the word @code{light} to get a brighter version of that color. +The word @code{grey} or @code{gray} may be used as +a synonym for @code{lightblack}. On terminal emulators that can do at least 256 colors, other valid (but unprefixable) color names are: diff --git a/doc/nanorc.5 b/doc/nanorc.5 index 5a1eb592..c0bfbe70 100644 --- a/doc/nanorc.5 +++ b/doc/nanorc.5 @@ -349,6 +349,8 @@ Valid names for the foreground and background colors are: .BR white ", and " black . Each of these eight names may be prefixed with the word \fBlight\fR to get a brighter version of that color. +The word \fBgrey\fR or \fBgray\fR may be used +as a synonym for \fBlightblack\fR. On terminal emulators that can do at least 256 colors, other valid (but unprefixable) color names are: .BR pink ", " purple ", " mauve ", " lagoon ", " mint ", " diff --git a/syntax/nanorc.nanorc b/syntax/nanorc.nanorc index 2cce6a9c..2ab2e628 100644 --- a/syntax/nanorc.nanorc +++ b/syntax/nanorc.nanorc @@ -8,7 +8,7 @@ color brightred ".*" # Keywords color brightgreen "^[[:blank:]]*(set|unset)[[:blank:]]+(afterends|allow_insecure_backup|atblanks|autoindent|backup|boldtext|bookstyle|breaklonglines|casesensitive|constantshow|cutfromcursor|emptyline|historylog|indicator|jumpyscrolling|linenumbers|locking|magic|minibar|mouse|multibuffer|noconvert|nohelp|nonewlines|positionlog|preserve|quickblank|rawsequences|rebinddelete|regexp|saveonexit|showcursor|smarthome|softwrap|stateflags|suspendable|tabstospaces|trimblanks|unix|wordbounds|zap)\>" -color yellow "^[[:blank:]]*set[[:blank:]]+((error|function|key|number|prompt|scroller|selected|spotlight|status|stripe|title)color)[[:blank:]]+(bold,)?(italic,)?(bright|light)?(white|black|red|blue|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte)?(,(light)?(white|black|red|blue|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte))?\>" +color yellow "^[[:blank:]]*set[[:blank:]]+((error|function|key|number|prompt|scroller|selected|spotlight|status|stripe|title)color)[[:blank:]]+(bold,)?(italic,)?(bright|light)?(white|black|red|blue|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte|grey|gray)?(,(light)?(white|black|red|blue|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte|grey|gray))?\>" color brightgreen "^[[:blank:]]*set[[:blank:]]+(backupdir|brackets|errorcolor|functioncolor|keycolor|matchbrackets|numbercolor|operatingdir|promptcolor|punct|quotestr|scrollercolor|selectedcolor|speller|spotlightcolor|statuscolor|stripecolor|titlecolor|whitespace|wordchars)[[:blank:]]+" color brightgreen "^[[:blank:]]*set[[:blank:]]+(fill[[:blank:]]+-?[[:digit:]]+|(guidestripe|tabsize)[[:blank:]]+[1-9][0-9]*)\>" color brightgreen "^[[:blank:]]*bind[[:blank:]]+((\^([A-Za-z]|[]/@\^_`-]|Space)|([Ss][Hh]-)?[Mm]-[A-Za-z]|[Mm]-([][!"#$%&'()*+,./0-9:;<=>?@\^_`{|}~-]|Space))|F([1-9]|1[0-9]|2[0-4])|Ins|Del)[[:blank:]]+([a-z]+|".*")[[:blank:]]+(main|help|search|replace(with)?|yesno|gotoline|writeout|insert|browser|whereisfile|gotodir|execute|spell|linter|all)([[:blank:]]+#|[[:blank:]]*$)" @@ -24,7 +24,7 @@ color brightmagenta "([[:blank:]]|(start|end)=)".+"([[:blank:]]|$)" color bold,pink "[[:cntrl:]]" # Colors -color yellow "^[[:blank:]]*i?color[[:blank:]]*(bold,)?(italic,)?(bright|light)?(white|black|red|blue|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte)?(,(light)?(white|black|red|blue|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte))?\>" +color yellow "^[[:blank:]]*i?color[[:blank:]]*(bold,)?(italic,)?(bright|light)?(white|black|red|blue|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte|grey|gray)?(,(light)?(white|black|red|blue|green|yellow|magenta|cyan|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte|grey|gray))?\>" color magenta "^[[:blank:]]*i?color\>" "\<(start|end)=" # Comments