Files
go-highlite/syntax_files/toml.yaml
T
Zachary Yedidia b604855378 Fix bugs in syntax files
Fix various bugs in syntax files.
Add c++ syntax file.
Only save last line's endstate in highlight function.
2017-02-18 09:45:07 -05:00

40 lines
807 B
YAML

filetype: toml
detect:
filename: "\\.toml"
rules:
- statement: "(.*)[[:space:]]="
- special: "="
# Bracket thingies
- special: "(\\[|\\])"
# Numbers and strings
- constant.number: "\\b([0-9]+|0x[0-9a-fA-F]*)\\b|'.'"
- 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: "\""
end: "\""
rules:
- constant.specialChar: "\\\\."
- constant.string:
start: "'"
end: "'"
rules:
- constant.specialChar: "\\\\."
- constant.string:
start: "`"
end: "`"
rules:
- constant.specialChar: "\\\\."
- comment:
start: "#"
end: "$"
rules:
- todo: "(TODO|XXX|FIXME):?"