Fix micro file syntax

Some of the words were missing, so this adds those.
This commit is contained in:
sum01 2017-12-30 11:47:39 -05:00
parent 981263eb81
commit 7867d50d67
No known key found for this signature in database
GPG Key ID: 339CB8BE119B90C0

View File

@ -6,13 +6,25 @@ detect:
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"
# Simple one-liners
- identifier: "\\b(default|number|statement|underlined|error|todo|statusline|indent-char|cursor\\-line|color\\-column|ignore|divider|tabbar)\\b"
# Separate identifiers to keep "complex" regex clean
- identifier: "\\b(special(Char)?)\\b"
- identifier: "\\b((current\\-)?line\\-number)\\b"
- identifier: "\\b(gutter\\-(info|error|warning){1})\\b"
- identifier: "\\b(comment(\\.bright)?)\\b"
- identifier: "\\b(symbol(\\.(brackets|operator|tag))?)\\b"
- identifier: "\\b(identifier(\\.(class|macro|var))?)\\b"
- identifier: "\\b(constant(\\.(bool(\\.(true|false){1})?|number|specialChar|string(\\.url)?){1})?)\\b"
- identifier: "\\b(preproc(\\.shebang)?)\\b"
- identifier: "\\b(type(\\.keyword)?)\\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: []
rules:
- todo: "(FIXME|TODO|NOTE):?"
- constant.string:
start: "\""
end: "\""
@ -20,4 +32,3 @@ rules:
rules:
- constant.specialChar: "\\\\."
- constant.number: "#[0-9 A-F a-f]+"