forked from richrad/nanorc-mac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nanorc.nanorc
18 lines (15 loc) · 1.09 KB
/
nanorc.nanorc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
syntax "nanorc" "nanorc$"
header "^syntax +\""
TYPE: "^i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>"
KEYWORD: "^(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: "^(bind|i?color|set|unset|syntax|header|magic)\>"
color red "^unbind\>"
KEYWORD: "^i?color\>" "\<(start|end)="
MACRO: "^include\>"
KEYWORD: "^(PLAIN|TYPE|STRING|MACRO|NUMBER|VARIABLE|OPERATOR|~?KEYWORD):"
KEYWORD: "^(BOOLEAN|SECTION|REGEXP|FUNCTION|ESCAPE|COMMENT|WARNING|JUMP):"
KEYWORD: "^(TAG|ATTRIBUTE):"
MACRO: "^\+(TODO|LINT|STRING|BOOLEAN|FUNCTION|INI|(C|HASH)COMMENT)$"
ESCAPE: "\\.?"
+HASHCOMMENT
+LINT