2016-08-25 00:15:36 +00:00
|
|
|
syntax "yaml" "\.ya?ml$"
|
2016-09-16 19:22:38 +00:00
|
|
|
header "%YAML"
|
2016-03-21 16:16:02 +00:00
|
|
|
|
2016-08-31 15:59:43 +00:00
|
|
|
color type "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) "
|
|
|
|
|
color constant "\b(YES|yes|Y|y|ON|on|NO|no|N|n|OFF|off)\b"
|
|
|
|
|
color constant "\b(true|false)\b"
|
|
|
|
|
color statement ":[[:space:]]" "\[" "\]" ":[[:space:]]+[|>]" "^[[:space:]]*- "
|
|
|
|
|
color identifier "[[:space:]][\*&][A-Za-z0-9]+"
|
2016-10-19 07:35:03 +00:00
|
|
|
color type "([-\w]+:\s+)|([-\w]+:$)"
|
2016-08-31 15:59:43 +00:00
|
|
|
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
|
|
|
color comment "(^|[[:space:]])#([^{].*)?$"
|
|
|
|
|
color special "^---" "^\.\.\." "^%YAML" "^%TAG"
|