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-05-08 14:46:49 +02:00
|
|
|
color brightwhite "^\s+-"
|
2021-03-19 17:30:53 +01:00
|
|
|
color brightwhite ":(\s|$)"
|
2018-05-03 13:37:35 +02:00
|
|
|
|
|
|
|
# Comments
|
2018-07-03 21:32:35 +02:00
|
|
|
color brightblue "(^|[[:space:]])#.*$"
|
2020-08-14 13:04:10 +02:00
|
|
|
|
|
|
|
# Trailing whitespace
|
|
|
|
color ,red "[[:space:]]+$"
|