2016-03-21 19:16:02 +03:00
|
|
|
## Here is an example for nanorc files.
|
|
|
|
##
|
2016-08-25 03:15:36 +03:00
|
|
|
syntax "nanorc" "\.?nanorc$"
|
2016-03-21 19:16:02 +03:00
|
|
|
## Possible errors and parameters
|
2016-03-25 23:41:36 +03:00
|
|
|
brightwhite (i) "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
|
2016-03-21 19:16:02 +03:00
|
|
|
## Keywords
|
2016-03-25 23:41:36 +03:00
|
|
|
brightgreen (i) "^[[: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)\>"
|
|
|
|
green (i) "^[[:space:]]*(set|unset|include|syntax|header)\>"
|
2016-03-21 19:16:02 +03:00
|
|
|
## Colors
|
2016-03-25 23:41:36 +03:00
|
|
|
yellow (i) "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
|
|
|
|
magenta (i) "^[[:space:]]*i?color\>" "\<(start|end)="
|
2016-03-21 19:16:02 +03:00
|
|
|
## Strings
|
2016-03-25 23:41:36 +03:00
|
|
|
white (i) ""(\\.|[^"])*""
|
2016-03-21 19:16:02 +03:00
|
|
|
## Comments
|
2016-03-25 23:41:36 +03:00
|
|
|
brightblue (i) "^[[:space:]]*#.*$"
|
|
|
|
cyan (i) "^[[:space:]]*##.*$"
|
2016-03-21 21:48:17 +03:00
|
|
|
|