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
|
|
|
## Keywords
|
2014-03-07 00:41:01 +01:00
|
|
|
icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|speller|suspend|tabsize|tabstospaces|tempfile|undo|view|whitespace|wordbounds)\>"
|
2014-08-03 00:25:00 +02:00
|
|
|
icolor green "^[[:space:]]*(set|unset|include|syntax|header)\>"
|
2010-07-29 00:15:43 +02:00
|
|
|
## Colors
|
|
|
|
icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
|
|
|
|
icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
|
|
|
|
## Strings
|
|
|
|
icolor white ""(\\.|[^"])*""
|
|
|
|
## Comments
|
|
|
|
icolor brightblue "^[[:space:]]*#.*$"
|
|
|
|
icolor cyan "^[[:space:]]*##.*$"
|