]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/nanorc.yaml
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce...
[micro.git] / runtime / syntax / nanorc.yaml
1 filetype: nanorc
2
3 detect: 
4     filename: "\\.?nanorc$"
5
6 rules:
7     - default: "(?i)^[[:space:]]*((un)?set|include|syntax|i?color).*$"
8     - type: "(?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)\\b"
9     - preproc: "(?i)^[[:space:]]*(set|unset|include|syntax|header)\\b"
10     - constant.bool.true: "(?i)(set)\\b"
11     - constant.bool.false: "(?i)(unset)\\b"
12     - identifier: "(?i)^[[:space:]]*(i)?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\\b"
13     - special: "(?i)^[[:space:]]*(i)?color\\b|\\b(start|end)="
14     - constant.string: "\"(\\\\.|[^\"])*\""
15     - comment: "^[[:space:]]*#.*$"
16     - comment.bright: "^[[:space:]]*##.*$"