From: Ulrich Schreiner Date: Wed, 19 Oct 2016 07:35:03 +0000 (+0200) Subject: highlight yaml dicts as types X-Git-Tag: v1.1.2~7^2 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=112da0b8c61f93df07d1fbaedbf56be4577fc521;p=micro.git highlight yaml dicts as types --- diff --git a/runtime/syntax/yaml.micro b/runtime/syntax/yaml.micro index 2184f68e..e7814e01 100644 --- a/runtime/syntax/yaml.micro +++ b/runtime/syntax/yaml.micro @@ -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"