micro/runtime/syntax/yaml.micro

16 lines
673 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.bool.true "\b(YES|yes|Y|y|ON|on)\b"
color constant.bool.false "\b(NO|no|N|n|OFF|off)\b"
color constant.bool.true "\b(true)\b"
color constant.bool.false "\b(false)\b"
color statement ":[[:space:]]" "\[" "\]" ":[[:space:]]+[|>]" "^[[:space:]]*- "
color identifier "[[:space:]][\*&][A-Za-z0-9]+"
2017-02-28 06:49:48 +00:00
color type "([-\w\.\/]+[[:space:]]*:\s+)|([-\w\.\/]+[[:space:]]*:$)"
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
color comment "(^|[[:space:]])#([^{].*)?$"
color special "^---" "^\.\.\." "^%YAML" "^%TAG"
color indent-char.whitespace " $"