micro/runtime/syntax/yaml.micro

13 lines
535 B
Text
Raw Normal View History

syntax "yaml" "\.ya?ml$"
2016-09-16 19:22:38 +00:00
header "%YAML"
2016-03-21 16:16:02 +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"
2017-02-28 00:16:41 +00:00
color statement "\[" "\]" ":[[:space:]]+[|>]" "^[[:space:]]*- "
color identifier "[[:space:]][\*&][A-Za-z0-9]+"
2017-02-28 00:16:41 +00:00
color type "([-\w\.\/]+[[:space:]]*:\s*)|([-\w\.\/]+[[:space:]]*:$)"
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
color comment "(^|[[:space:]])#([^{].*)?$"
color special "^---" "^\.\.\." "^%YAML" "^%TAG"