mirror of
https://github.com/scopatz/nanorc
synced 2024-11-23 19:00:27 +01:00
bba53c3940
Duplicate syntax definition names may cause problems. Since nano comes with predefined all-lowercase syntax definitions, we use uppercase letters everywhere to reduce the risk of future conflicts
14 lines
542 B
Plaintext
14 lines
542 B
Plaintext
syntax "YAML" "\.ya?ml$"
|
|
header "^---" "%YAML"
|
|
|
|
color green "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) "
|
|
color brightcyan "\<(YES|yes|Y|y|ON|on|NO|no|N|n|OFF|off)\>"
|
|
color brightcyan "\<(true|false)\>"
|
|
color red ":[[:space:]]" "\[" "\]" ":[[:space:]]+[|>]" "^[[:space:]]*- "
|
|
color brightyellow "[[:space:]][\*&][A-Za-z0-9]+"
|
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
|
color brightmagenta "^---" "^\.\.\." "^%YAML" "^%TAG"
|
|
color ,green "[[:space:]]+$"
|
|
color ,red " + +| + +"
|