Mercurial > vim
changeset 35283:eae910db39c1
runtime(vim): fix syntax vim bug (Close #14858) (#14861)
Commit: https://github.com/vim/vim/commit/c984b2fd9ddd4107006a698fe81ad7ae22208620
Author: h_east <h.east.727@gmail.com>
Date: Mon May 27 22:40:25 2024 +0900
runtime(vim): fix syntax vim bug (Close https://github.com/vim/vim/issues/14858) (https://github.com/vim/vim/issues/14861)
Signed-off-by: h-east <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 27 May 2024 15:45:06 +0200 |
parents | d431fa050932 |
children | f8e8f01c80be |
files | runtime/syntax/generator/gen_syntax_vim.vim runtime/syntax/generator/vim.vim.base |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- a/runtime/syntax/generator/vim.vim.base +++ b/runtime/syntax/generator/vim.vim.base @@ -70,6 +70,7 @@ syn keyword vimGroup contained Comment C " 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