| 1 |
filetype: micro |
| 2 |
|
| 3 |
detect: |
| 4 |
filename: "\\.(micro)$" |
| 5 |
|
| 6 |
rules: |
| 7 |
- statement: "\\b(syntax|color(-link)?)\\b" |
| 8 |
- statement: "\\b(start=|end=)\\b" |
| 9 |
# Simple one-liners |
| 10 |
- identifier: "\\b(default|number|statement|underlined|error|todo|statusline|indent-char|cursor\\-line|color\\-column|ignore|divider|tabbar)\\b" |
| 11 |
# Separate identifiers to keep "complex" regex clean |
| 12 |
- identifier: "\\b(special(Char)?)\\b" |
| 13 |
- identifier: "\\b((current\\-)?line\\-number)\\b" |
| 14 |
- identifier: "\\b(gutter\\-(info|error|warning){1})\\b" |
| 15 |
- identifier: "\\b(comment(\\.bright)?)\\b" |
| 16 |
- identifier: "\\b(symbol(\\.(brackets|operator|tag))?)\\b" |
| 17 |
- identifier: "\\b(identifier(\\.(class|macro|var))?)\\b" |
| 18 |
- identifier: "\\b(constant(\\.(bool(\\.(true|false){1})?|number|specialChar|string(\\.url)?){1})?)\\b" |
| 19 |
- identifier: "\\b(preproc(\\.shebang)?)\\b" |
| 20 |
- identifier: "\\b(type(\\.keyword)?)\\b" |
| 21 |
- constant.number: "\\b(|h|A|0x)+[0-9]+(|h|A)+\\b" |
| 22 |
- constant.number: "\\b0x[0-9 a-f A-F]+\\b" |
| 23 |
- comment: |
| 24 |
start: "#" |
| 25 |
end: "$" |
| 26 |
rules: |
| 27 |
- todo: "(FIXME|TODO|NOTE):?" |
| 28 |
- constant.string: |
| 29 |
start: "\"" |
| 30 |
end: "\"" |
| 31 |
skip: "\\\\." |
| 32 |
rules: |
| 33 |
- constant.specialChar: "\\\\." |
| 34 |
- constant.number: "#[0-9 A-F a-f]+" |