]> git.lizzy.rs Git - micro.git/commitdiff
Improve YAML highlighting
authorYurizal Susanto <rizalsagi@gmail.com>
Tue, 28 Feb 2017 00:16:41 +0000 (07:16 +0700)
committerYurizal Susanto <rizalsagi@gmail.com>
Tue, 28 Feb 2017 00:16:41 +0000 (07:16 +0700)
runtime/syntax/yaml.micro

index e7814e01018c6060dfdbea9aae4087b33b6b85e7..20deb633382feca994f178a9cf01cf583ca33cbd 100644 (file)
@@ -4,9 +4,9 @@ header "%YAML"
 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"
-color statement ":[[:space:]]" "\[" "\]" ":[[:space:]]+[|>]" "^[[:space:]]*- "
+color statement "\[" "\]" ":[[:space:]]+[|>]" "^[[:space:]]*- "
 color identifier "[[:space:]][\*&][A-Za-z0-9]+"
-color type "([-\w]+:\s+)|([-\w]+:$)"
+color type "([-\w\.\/]+[[:space:]]*:\s*)|([-\w\.\/]+[[:space:]]*:$)"
 color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
 color comment "(^|[[:space:]])#([^{].*)?$"
 color special  "^---" "^\.\.\." "^%YAML" "^%TAG"