Highlight object keys in yaml

This commit is contained in:
Dan Rosén 2017-05-15 21:06:56 +02:00
parent 3a0d9481ac
commit 736720f31a

View File

@ -23,6 +23,7 @@ add-highlighter -group /yaml/comment fill comment
add-highlighter -group /yaml/code regex ^(---|\.\.\.)$ 0:meta add-highlighter -group /yaml/code regex ^(---|\.\.\.)$ 0:meta
add-highlighter -group /yaml/code regex ^(\h*:\w*) 0:keyword add-highlighter -group /yaml/code regex ^(\h*:\w*) 0:keyword
add-highlighter -group /yaml/code regex \b(true|false|null)\b 0:value add-highlighter -group /yaml/code regex \b(true|false|null)\b 0:value
add-highlighter -group /yaml/code regex ^\h*-?\h*(\S+): 1:attribute
# Commands # Commands
# ‾‾‾‾‾‾‾‾ # ‾‾‾‾‾‾‾‾