micro/runtime/syntax/toml.micro

22 lines
585 B
Text
Raw Normal View History

2017-01-23 22:01:26 +03:00
syntax "toml" "\.toml$"
# Keys
color statement "(.*)[[:space:]]="
color special "="
# Bracket thingies
color symbol.brackets "(\[|\])"
2017-01-23 22:01:26 +03:00
# Numbers and strings
color constant.number "\b([0-9]+|0x[0-9a-fA-F]*)\b|'.'"
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
color constant.specialChar "\\[abfnrtv'\"\\]"
color constant.specialChar "\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
color constant.string "`[^`]*`"
color constant.specialChar """
color constant.specialChar "'"
# Comments & TODOs
color comment "(^|[[:space:]])#.*"
color todo "(TODO|XXX|FIXME):?"