micro/runtime/syntax/nanorc.micro

18 lines
1 KiB
Text
Raw Normal View History

2016-03-21 19:16:02 +03:00
## Here is an example for nanorc files.
##
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:]]*##.*$"