1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-16 14:14:15 +01:00
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-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
2019-07-09 19:16:52 +02:00
icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(allow_insecure_backup|autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|constantshow|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|poslog|positionlog|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
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:]]*##.*$"