]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/micro.yaml
Use new syntax highlighting engine from zyedidia/highlight
[micro.git] / runtime / syntax / micro.yaml
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     - identifier: "\\b(default|comment|symbol|identifier|constant(.string(.char)?|.number)?|statement|preproc|type|special|underlined|error|todo|statusline|indent-char|(current-)?line-number|gutter-error|gutter-warning|cursor-line|color-column)\\b"
10     - constant.number: "\\b(|h|A|0x)+[0-9]+(|h|A)+\\b"
11     - constant.number: "\\b0x[0-9 a-f A-F]+\\b"
12     - comment:
13         start: "#"
14         end: "$"
15         rules: []
16     - constant.string:
17         start: "\""
18         end: "\""
19         rules:
20             - constant.specialChar: "\\\\."
21     - constant.number: "#[0-9 A-F a-f]+"
22