]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(vim): fix syntax vim bug (Close #14858) (#14861)
authorh_east <h.east.727@gmail.com>
Mon, 27 May 2024 13:40:25 +0000 (22:40 +0900)
committerGitHub <noreply@github.com>
Mon, 27 May 2024 13:40:25 +0000 (15:40 +0200)
Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/generator/gen_syntax_vim.vim
runtime/syntax/generator/vim.vim.base

index d320bdbda895c0754bdc1ac7e81b05fc89e7b0e7..4843aacac06b1b4fc1b0efb1f940b9531be490e2 100644 (file)
@@ -464,6 +464,10 @@ function! s:parse_vim_hlgroup(li)
                let item.type = 'both'
                call add(a:li, copy(item))
 
+               " "Conceal" is an option and cannot be used as keyword, so remove it.
+               " (Separately specified as 'syn match' in vim.vim.base).
+               call filter(a:li, {idx, val -> val.name !=# 'Conceal'})
+
                quit!
 
                if empty(a:li)
index 90e1ee59bb2c2e3f5f663746284a3b3c00542917..7611ef7a19b9ec0546ecc800b457199b54175b23 100644 (file)
@@ -70,6 +70,7 @@ syn keyword vimGroup contained        Comment Constant String Character Number Boolean
 
 " Default highlighting groups {{{2
 " GEN_SYN_VIM: vimHLGroup, START_STR='syn keyword vimHLGroup contained', END_STR=''
+syn match vimHLGroup contained "\<Conceal\>"
 syn case match
 
 " Function Names {{{2