mirror of
https://github.com/scopatz/nanorc
synced 2024-11-30 13:45:53 +01:00
1d7e358a76
White was too shiny
22 lines
442 B
Plaintext
22 lines
442 B
Plaintext
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+-"
|
|
color brightwhite ":(\s|\t|$)"
|
|
|
|
# Comments
|
|
color brightblue "(^|[[:space:]])#.*$"
|