nanorc/nanorc.nanorc

17 lines
1.1 KiB
Plaintext
Raw Normal View History

2010-07-29 00:15:43 +02:00
## Here is an example for nanorc files.
##
syntax "Nanorc" "\.?nanorc$"
2010-07-29 00:15:43 +02:00
## Possible errors and parameters
2018-08-09 10:09:19 +02:00
icolor red "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
2010-07-29 00:15:43 +02:00
## Keywords
2018-08-09 10:09:19 +02:00
icolor green "^[[:space:]]*(set|unset)[[:space:]]+(allow_insecure_backup|autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|poslog|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|softwrap|speller|suspend|suspendenable|tabsize|tabstospaces|tempfile|undo|view|whitespace|wordbounds)\>"
2018-06-22 20:10:04 +02:00
icolor green "^[[:space:]]*(bind|set|unset|syntax|header|include|magic)\>"
2010-07-29 00:15:43 +02:00
## Colors
2018-08-09 10:09:19 +02:00
icolor yellow "^[[:space:]]*i?color[[:space:]]*()?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
2010-07-29 00:15:43 +02:00
icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
## Strings
icolor white ""(\\.|[^"])*""
## Comments
2018-08-09 10:09:19 +02:00
icolor blue "^[[:space:]]*#.*$"
2010-07-29 00:15:43 +02:00
icolor cyan "^[[:space:]]*##.*$"