1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-24 07:53:41 +03:00

rc yaml: "#" inside a word is not a comment

This commit is contained in:
Johannes Altmanninger 2020-11-08 06:02:37 +01:00
parent 26cf5cd1dc
commit 41059b3f0c

View File

@ -34,7 +34,7 @@ add-highlighter shared/yaml regions
add-highlighter shared/yaml/code default-region group
add-highlighter shared/yaml/double_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 ^(\h*:\w*) 0:keyword