neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit a5d5b9f36b2fca6b1400d73c230b257f53de4ae5
parent 5fc25ecc7a383a4bed2199774ed2e26022456ca3
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Sun, 21 Jul 2024 11:10:05 +0200

vim-patch:aa49512: runtime(yaml): Fix flow mapping key detection

fixes: vim/vim#15196
closes: vim/vim#15313

https://github.com/vim/vim/commit/aa495124f80812b9c8c1942e6c4f9ce2242ea01f

Co-authored-by: itchyny <itchyny@cybozu.co.jp>

Diffstat:
Mruntime/syntax/yaml.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/syntax/yaml.vim b/runtime/syntax/yaml.vim @@ -129,7 +129,7 @@ syn region yamlFlowCollection matchgroup=yamlFlowIndicator start='\[' end='\]' c execute 'syn match yamlPlainScalar /'.s:ns_plain_out.'/' execute 'syn match yamlPlainScalar contained /'.s:ns_plain_in.'/' -execute 'syn match yamlFlowMappingKey /'.s:ns_plain_in.'\%(\s\+'.s:ns_plain_in.'\)*\ze\s*:/ contained '. +execute 'syn match yamlFlowMappingKey /'.s:ns_plain_in.'\%(\s\+'.s:ns_plain_in.'\)*\ze\s*:\%(\s\|$\)/ contained '. \'nextgroup=yamlFlowMappingDelimiter skipwhite' syn match yamlFlowMappingKeyStart /?/ contained nextgroup=@yamlFlowNode skipwhite syn match yamlFlowMappingMerge /<<\ze\s*:/ contained nextgroup=yamlFlowMappingDelimiter skipwhite