mirror of
https://github.com/zyedidia/micro.git
synced 2024-10-27 20:49:47 +03:00
2fcb40d5a9
This changes all the syntax files in the runtime directory and also changes how syntax highlighting is done from inside micro.
22 lines
734 B
YAML
22 lines
734 B
YAML
filetype: micro
|
|
|
|
detect:
|
|
filename: "\\.(micro)$"
|
|
|
|
rules:
|
|
- statement: "\\b(syntax|color(-link)?)\\b"
|
|
- statement: "\\b(start=|end=)\\b"
|
|
- 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"
|
|
- constant.number: "\\b(|h|A|0x)+[0-9]+(|h|A)+\\b"
|
|
- constant.number: "\\b0x[0-9 a-f A-F]+\\b"
|
|
- comment:
|
|
start: "#"
|
|
end: "$"
|
|
rules: []
|
|
- constant.string:
|
|
start: "\""
|
|
end: "\""
|
|
rules:
|
|
- constant.specialChar: "\\\\."
|
|
- constant.number: "#[0-9 A-F a-f]+"
|
|
|