2017-02-18 23:17:07 +03:00
|
|
|
filetype: micro
|
|
|
|
|
2017-03-21 21:55:22 +03:00
|
|
|
detect:
|
2017-02-18 23:17:07 +03:00
|
|
|
filename: "\\.(micro)$"
|
|
|
|
|
|
|
|
rules:
|
|
|
|
- statement: "\\b(syntax|color(-link)?)\\b"
|
2017-03-21 21:55:22 +03:00
|
|
|
- type.keyword: "\\b(start=|end=)\\b"
|
|
|
|
- identifier: "\\b(default|comment|symbol(.brackets|.tag)?|identifier|constant(.string(.char)?|.bool|.specialChar|.number)?|statement|preproc|type|special|underlined|error|todo|statusline|indent-char|(current-)?line-number|gutter-error|gutter-warning|cursor-line|color-column|tabbar)\\b"
|
|
|
|
- preproc: "\\b(syntax|header)\\b"
|
2017-02-18 23:17:07 +03:00
|
|
|
- constant.number: "\\b(|h|A|0x)+[0-9]+(|h|A)+\\b"
|
|
|
|
- constant.number: "\\b0x[0-9 a-f A-F]+\\b"
|
2017-03-21 21:55:22 +03:00
|
|
|
- comment: "#.*$"
|
|
|
|
- comment.bright: "##.*$"
|
|
|
|
- constant.string: "\"(\\\\.|[^\"])*\""
|
|
|
|
- constant.number: "#[0-9 A-F a-f]{1,6}"
|
|
|
|
- comment: "^#.*$"
|