diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2020-11-08 06:02:37 +0100 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2021-02-10 21:09:25 +0100 |
| commit | 41059b3f0cafc2742d8f5b0f26d26053cc483b32 (patch) | |
| tree | 5dce59291e48aed8e54dfd098e370ee336b3a918 /rc/filetype/yaml.kak | |
| parent | 26cf5cd1dce362a34593fcf5994c961f8aa53bc0 (diff) | |
rc yaml: "#" inside a word is not a comment
Diffstat (limited to 'rc/filetype/yaml.kak')
| -rw-r--r-- | rc/filetype/yaml.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/yaml.kak b/rc/filetype/yaml.kak index 48834414..e29a8a3e 100644 --- a/rc/filetype/yaml.kak +++ b/rc/filetype/yaml.kak @@ -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 |
