]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/toml.yaml
c1c8833ff5f2118b9138746f0eef512b92994e27
[micro.git] / runtime / syntax / toml.yaml
1 filetype: toml
2
3 detect: 
4     filename: "\\.toml$"
5
6 rules:
7     - statement: "(.*)[[:space:]]="
8     - special: "="
9     - symbol.brackets: "(\\[|\\])"
10     - constant.number: "\\b([0-9]+|0x[0-9a-fA-F]*)\\b|'.'"
11     - constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
12     - constant.specialChar: "\\\\[abfnrtv'\\\"\\\\]"
13     - constant.specialChar: "\\\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
14     - constant.string: "`[^`]*`"
15     - constant.specialChar: "\""
16     - constant.specialChar: "'"
17     - comment: "(^|[[:space:]])#.*"
18     - todo: "(TODO|XXX|FIXME):?"