From 45db47864810a00310d1beb956a7ab9e58f3092f Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 18 Dec 2019 10:10:58 -0500 Subject: [PATCH] * Nanorc: Color the colors as the colors This makes editing nanorc files more visual! --- nanorc.nanorc | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/nanorc.nanorc b/nanorc.nanorc index a224372..924ef35 100644 --- a/nanorc.nanorc +++ b/nanorc.nanorc @@ -4,9 +4,36 @@ syntax "Nanorc" "\.?nanorc$" ## Possible errors and parameters icolor brightred "^[[:space:]]*((un)?set|include|syntax|i?color).*$" ## Colors -icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan|normal)?(,(white|black|red|blue|green|yellow|magenta|cyan|normal))?\>" +icolor black " black" +icolor red " red" +icolor green " green" +icolor yellow " yellow" +icolor blue " blue" +icolor magenta " magenta" +icolor cyan " cyan" +icolor white " white" +icolor normal " normal" +icolor brightblack " brightblack" +icolor brightred " brightred" +icolor brightgreen " brightgreen" +icolor brightyellow " brightyellow" +icolor brightblue " brightblue" +icolor brightmagenta " brightmagenta" +icolor brightcyan " brightcyan" +icolor brightwhite " brightwhite" +icolor brightnormal " brightnormal" +icolor ,black ",black " +icolor ,red ",red " +icolor ,green ",green " +icolor ,yellow ",yellow " +icolor ,blue ",blue " +icolor ,magenta ",magenta " +icolor ,cyan ",cyan " +icolor ,white ",white " +icolor ,normal ",normal" icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)=" icolor yellow "^[[:space:]]*(set|unset)[[:space:]]+(errorcolor|functioncolor|keycolor|numbercolor|selectedcolor|statuscolor|stripecolor|titlecolor)[[:space:]]+(bright)?(white|black|red|blue|green|yellow|magenta|cyan|normal)?(,(white|black|red|blue|green|yellow|magenta|cyan|normal))?\>" + ## Keywords icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(afterends|allow_insecure_backup|atblanks|autoindent|backup|backupdir|boldtext|brackets|breaklonglines|casesensitive|constantshow|cutfromcursor|emptyline|errorcolor|fill|functioncolor|guidestripe|historylog|jumpyscrolling|keycolor|linenumbers|locking|matchbrackets|morespace|mouse|multibuffer|noconvert|nohelp|nonewlines|nopauses|nowrap|numbercolor|operatingdir|positionlog|preserve|punct|quickblank|quotestr|rawsequences|rebinddelete|regexp|selectedcolor|showcursor|smarthome|smooth|softwrap|speller|statuscolor|stripecolor|suspend|tabsize|tabstospaces|tempfile|titlecolor|trimblanks|unix|view|whitespace|wordbounds|wordchars|zap)\>" icolor green "^[[:space:]]*(bind|set|unset|syntax|header|include|magic)\>"