-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathnanorc.nanorc
13 lines (11 loc) · 1.03 KB
/
nanorc.nanorc
1
2
3
4
5
6
7
8
9
10
11
12
13
syntax "nanorc" "nanorc$"
TYPE: "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
KEYWORD: "^[[: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)\>"
KEYWORD: "^[[:space:]]*(bind|i?color|set|unset|include|syntax|header|magic)\>"
KEYWORD: "^[[:space:]]*i?color\>" "\<(start|end)="
KEYWORD: "^(PLAIN|TYPE|STRING|NUMBER|BOOLEAN|VARIABLE|OPERATOR|~?KEYWORD):"
KEYWORD: "^(REGEXP|FUNCTION|ESCAPE|COMMENT|ENABLED|DISABLED|WARNING):"
FUNCTION: "^\+(TODO|LINT)$"
ESCAPE: "\\.?"
COMMENT: "^[[:space:]]*#.*$"
+LINT