micro/runtime/syntax/nanorc.yaml
Yevhen Babiichuk (DustDFG) 426e6c600f
Fix trailing spaces/tabs in yaml syntax files (#3200)
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
2024-03-22 17:56:09 +01:00

17 lines
1.1 KiB
YAML

filetype: nanorc
detect:
filename: "\\.?nanorc$"
rules:
- default: "(?i)^[[:space:]]*((un)?set|include|syntax|i?color).*$"
- 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"
- preproc: "(?i)^[[:space:]]*(set|unset|include|syntax|header)\\b"
- constant.bool.true: "(?i)(set)\\b"
- constant.bool.false: "(?i)(unset)\\b"
- identifier: "(?i)^[[:space:]]*(i)?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\\b"
- special: "(?i)^[[:space:]]*(i)?color\\b|\\b(start|end)="
- constant.string: "\"(\\\\.|[^\"])*\""
- comment: "^[[:space:]]*#.*$"
- comment.bright: "^[[:space:]]*##.*$"