2018-05-05 12:14:03 +02:00
|
|
|
syntax "yaml" "\.ya?ml$"
|
2018-05-12 13:05:04 +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-08-09 10:09:19 +02:00
|
|
|
color white "^\s+-"
|
|
|
|
color white ":(\s|\t|$)"
|
2018-05-03 13:37:35 +02:00
|
|
|
|
|
|
|
# Comments
|
2018-08-09 10:09:19 +02:00
|
|
|
color blue "(^|[[:space:]])#.*$"
|