Merge remote-tracking branch 'krobelus/yaml-comment'

This commit is contained in:
Maxime Coste 2021-02-11 20:30:34 +11:00
commit fb30d3751c

View File

@ -34,7 +34,7 @@ add-highlighter shared/yaml regions
add-highlighter shared/yaml/code default-region group add-highlighter shared/yaml/code default-region group
add-highlighter shared/yaml/double_string region '"' (?<!\\)(\\\\)*" fill string add-highlighter shared/yaml/double_string region '"' (?<!\\)(\\\\)*" fill string
add-highlighter shared/yaml/single_string region "'" "'" fill string add-highlighter shared/yaml/single_string region "'" "'" fill string
add-highlighter shared/yaml/comment region '#' '$' fill comment add-highlighter shared/yaml/comment region '(?:^| )#' $ fill comment
add-highlighter shared/yaml/code/ regex ^(---|\.\.\.)$ 0:meta add-highlighter shared/yaml/code/ regex ^(---|\.\.\.)$ 0:meta
add-highlighter shared/yaml/code/ regex ^(\h*:\w*) 0:keyword add-highlighter shared/yaml/code/ regex ^(\h*:\w*) 0:keyword