2018-05-05 12:14:03 +02:00
|
|
|
syntax "yaml" "\.ya?ml$"
|
2018-05-03 13:37:35 +02:00
|
|
|
comment "#"
|
2013-06-02 12:48:33 +02:00
|
|
|
header "^---" "%YAML"
|
|
|
|
|
2018-05-03 13:37:35 +02:00
|
|
|
# Values
|
|
|
|
color green "(:|^|\s)+\S+"
|
|
|
|
|
|
|
|
# Keys
|
|
|
|
color red "(^|\s+).*+\s*:(\s|$)"
|
|
|
|
|
|
|
|
# Special values
|
|
|
|
color yellow "[:-]\s+(true|false|null)\s*$"
|
|
|
|
color yellow "[:-]\s+[0-9]+\.?[0-9]*(\s*($|#))"
|
2018-05-05 12:14:03 +02:00
|
|
|
color yellow "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) "
|
2018-05-03 13:37:35 +02:00
|
|
|
|
|
|
|
# Separator
|
2018-05-08 14:46:49 +02:00
|
|
|
color brightwhite "^\s+-"
|
|
|
|
color brightwhite ":(\s|\t|$)"
|
2018-05-03 13:37:35 +02:00
|
|
|
|
|
|
|
# Comments
|
|
|
|
color white "(^|[[:space:]])#.*$"
|