]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/yaml.micro
Merge pull request #424 from ulrichSchreiner/yaml-highlighter
[micro.git] / runtime / syntax / yaml.micro
1 syntax "yaml" "\.ya?ml$"
2 header "%YAML"
3
4 color type     "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) "
5 color constant  "\b(YES|yes|Y|y|ON|on|NO|no|N|n|OFF|off)\b"
6 color constant "\b(true|false)\b"
7 color statement ":[[:space:]]" "\[" "\]" ":[[:space:]]+[|>]" "^[[:space:]]*- "
8 color identifier "[[:space:]][\*&][A-Za-z0-9]+"
9 color type "([-\w]+:\s+)|([-\w]+:$)"
10 color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
11 color comment "(^|[[:space:]])#([^{].*)?$"
12 color special  "^---" "^\.\.\." "^%YAML" "^%TAG"