nanorc/yaml.nanorc

22 lines
424 B
Plaintext
Raw Normal View History

syntax "yaml" "\.ya?ml$"
#comment "#"
header "^---" "%YAML"
# 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*($|#))"
color yellow "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) "
# Separator
2018-08-09 10:09:19 +02:00
color white "^\s+-"
color white ":(\s|\t|$)"
# Comments
2018-08-09 10:09:19 +02:00
color blue "(^|[[:space:]])#.*$"