From fb6d554df6faad34735ab4f060bc21fde07ff2e9 Mon Sep 17 00:00:00 2001 From: Yurizal Susanto Date: Tue, 28 Feb 2017 07:16:41 +0700 Subject: [PATCH] Improve YAML highlighting --- runtime/syntax/yaml.micro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/syntax/yaml.micro b/runtime/syntax/yaml.micro index e7814e01..20deb633 100644 --- a/runtime/syntax/yaml.micro +++ b/runtime/syntax/yaml.micro @@ -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"