2010-07-29 00:15:43 +02:00
|
|
|
## Here is an example for nanorc files.
|
|
|
|
##
|
2016-03-02 20:49:58 +01:00
|
|
|
syntax "Nanorc" "\.?nanorc$"
|
2010-07-29 00:15:43 +02:00
|
|
|
## Possible errors and parameters
|
2018-06-18 13:40:34 +02:00
|
|
|
icolor brightred "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
|
2010-07-29 00:15:43 +02:00
|
|
|
## Colors
|
2019-07-27 09:56:57 +02:00
|
|
|
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))?\>"
|
2010-07-29 00:15:43 +02:00
|
|
|
icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
|
2019-07-27 09:58:17 +02:00
|
|
|
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)\>"
|
2010-07-29 00:15:43 +02:00
|
|
|
## Strings
|
|
|
|
icolor white ""(\\.|[^"])*""
|
|
|
|
## Comments
|
|
|
|
icolor brightblue "^[[:space:]]*#.*$"
|
|
|
|
icolor cyan "^[[:space:]]*##.*$"
|
2019-11-02 05:05:37 +01:00
|
|
|
|
|
|
|
## Trailing whitespace
|
|
|
|
icolor ,green "[[:space:]]+$"
|