2017-02-18 20:17:07 +00:00
|
|
|
filetype: toml
|
|
|
|
|
|
2017-03-21 19:07:39 +00:00
|
|
|
detect:
|
|
|
|
|
filename: "\\.toml"
|
2017-02-18 20:17:07 +00:00
|
|
|
|
|
|
|
|
rules:
|
|
|
|
|
- statement: "(.*)[[:space:]]="
|
|
|
|
|
- special: "="
|
2017-03-21 19:07:39 +00:00
|
|
|
|
|
|
|
|
# Bracket thingies
|
|
|
|
|
- special: "(\\[|\\])"
|
|
|
|
|
|
|
|
|
|
# Numbers and strings
|
2017-02-18 20:17:07 +00:00
|
|
|
- constant.number: "\\b([0-9]+|0x[0-9a-fA-F]*)\\b|'.'"
|
2017-03-21 19:07:39 +00:00
|
|
|
- constant.number: "\\\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
|
|
|
|
|
|
|
|
|
|
- constant.string:
|
|
|
|
|
start: "\""
|
2017-03-28 00:53:08 +00:00
|
|
|
end: "\""
|
2017-03-29 13:45:16 +00:00
|
|
|
skip: "\\\\."
|
2017-03-21 19:07:39 +00:00
|
|
|
rules:
|
|
|
|
|
- constant.specialChar: "\\\\."
|
|
|
|
|
|
|
|
|
|
- constant.string:
|
|
|
|
|
start: "'"
|
2017-03-28 00:53:08 +00:00
|
|
|
end: "'"
|
2017-03-29 13:45:16 +00:00
|
|
|
skip: "\\\\."
|
2017-03-21 19:07:39 +00:00
|
|
|
rules:
|
|
|
|
|
- constant.specialChar: "\\\\."
|
|
|
|
|
|
|
|
|
|
- constant.string:
|
|
|
|
|
start: "`"
|
|
|
|
|
end: "`"
|
|
|
|
|
rules:
|
|
|
|
|
- constant.specialChar: "\\\\."
|
|
|
|
|
|
|
|
|
|
- comment:
|
|
|
|
|
start: "#"
|
|
|
|
|
end: "$"
|
|
|
|
|
rules:
|
|
|
|
|
- todo: "(TODO|XXX|FIXME):?"
|
2017-03-22 23:03:06 +00:00
|
|
|
|