nanorc/yaml.nanorc

25 lines
489 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
color brightwhite "^\s+-"
2021-03-19 17:30:53 +01:00
color brightwhite ":(\s|$)"
# Comments
color brightblue "(^|[[:space:]])#.*$"
# Trailing whitespace
color ,red "[[:space:]]+$"