]> git.lizzy.rs Git - micro.git/commitdiff
highlight yaml dicts as types
authorUlrich Schreiner <ulrich.schreiner@gmail.com>
Wed, 19 Oct 2016 07:35:03 +0000 (09:35 +0200)
committerUlrich Schreiner <ulrich.schreiner@gmail.com>
Wed, 19 Oct 2016 07:35:03 +0000 (09:35 +0200)
runtime/syntax/yaml.micro

index 2184f68ec7596023da3938337e1e42d0c927613d..e7814e01018c6060dfdbea9aae4087b33b6b85e7 100644 (file)
@@ -6,6 +6,7 @@ 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]+"
+color type "([-\w]+:\s+)|([-\w]+:$)"
 color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
 color comment "(^|[[:space:]])#([^{].*)?$"
 color special  "^---" "^\.\.\." "^%YAML" "^%TAG"