2017-02-18 23:17:07 +03:00
|
|
|
filetype: toml
|
|
|
|
|
2017-03-21 22:07:39 +03:00
|
|
|
detect:
|
|
|
|
filename: "\\.toml"
|
2017-02-18 23:17:07 +03:00
|
|
|
|
|
|
|
rules:
|
|
|
|
- statement: "(.*)[[:space:]]="
|
|
|
|
- special: "="
|
2017-03-21 22:07:39 +03:00
|
|
|
|
|
|
|
# Bracket thingies
|
|
|
|
- special: "(\\[|\\])"
|
|
|
|
|
|
|
|
# Numbers and strings
|
2017-02-18 23:17:07 +03:00
|
|
|
- constant.number: "\\b([0-9]+|0x[0-9a-fA-F]*)\\b|'.'"
|
2017-03-21 22:07:39 +03: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 03:53:08 +03:00
|
|
|
end: "\""
|
2017-03-21 22:07:39 +03:00
|
|
|
rules:
|
|
|
|
- constant.specialChar: "\\\\."
|
|
|
|
|
|
|
|
- constant.string:
|
|
|
|
start: "'"
|
2017-03-28 03:53:08 +03:00
|
|
|
end: "'"
|
2017-03-21 22:07:39 +03:00
|
|
|
rules:
|
|
|
|
- constant.specialChar: "\\\\."
|
|
|
|
|
|
|
|
- constant.string:
|
|
|
|
start: "`"
|
|
|
|
end: "`"
|
|
|
|
rules:
|
|
|
|
- constant.specialChar: "\\\\."
|
|
|
|
|
|
|
|
- comment:
|
|
|
|
start: "#"
|
|
|
|
end: "$"
|
|
|
|
rules:
|
|
|
|
- todo: "(TODO|XXX|FIXME):?"
|
2017-03-23 02:03:06 +03:00
|
|
|
|