summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorh_east <h.east.727@gmail.com>2024-05-27 22:40:25 +0900
committerGitHub <noreply@github.com>2024-05-27 15:40:25 +0200
commitc984b2fd9ddd4107006a698fe81ad7ae22208620 (patch)
treed4c03fa7279e0eb0db9a1a60b04b4dcb000241a7
parent53387c55a13bc1013a6ab721d4bd0bd04c6935c4 (diff)
runtime(vim): fix syntax vim bug (Close #14858) (#14861)
Signed-off-by: h-east <h.east.727@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--runtime/syntax/generator/gen_syntax_vim.vim4
-rw-r--r--runtime/syntax/generator/vim.vim.base1
2 files changed, 5 insertions, 0 deletions
diff --git a/runtime/syntax/generator/gen_syntax_vim.vim b/runtime/syntax/generator/gen_syntax_vim.vim
index d320bdbda8..4843aacac0 100644
--- a/runtime/syntax/generator/gen_syntax_vim.vim
+++ b/runtime/syntax/generator/gen_syntax_vim.vim
@@ -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)
diff --git a/runtime/syntax/generator/vim.vim.base b/runtime/syntax/generator/vim.vim.base
index 90e1ee59bb..7611ef7a19 100644
--- a/runtime/syntax/generator/vim.vim.base
+++ b/runtime/syntax/generator/vim.vim.base
@@ -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