mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:4335fcf: runtime(kconfig): updated ftplugin and syntax script
4335fcfed1
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
f50f86b9ff
commit
855a2a75e6
@ -1745,6 +1745,16 @@ To disable numbers having their own color add the following to your vimrc: >
|
||||
If you want quotes to have different highlighting than strings >
|
||||
let g:jq_quote_highlight = 1
|
||||
|
||||
KCONFIG *ft-kconfig-syntax*
|
||||
|
||||
Kconfig syntax highlighting language. For syntax syncing, you can configure
|
||||
the following variable (default: 50): >
|
||||
|
||||
let kconfig_minlines = 50
|
||||
|
||||
To configure a bit more (heavier) highlighting, set the following variable: >
|
||||
|
||||
let kconfig_syntax_heavy = 1
|
||||
|
||||
LACE *lace.vim* *ft-lace-syntax*
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
" Vim syntax file
|
||||
" Maintainer: Christian Brabandt <cb@256bit.org>
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2024-04-12
|
||||
" Latest Revision: 2025 Jan 20
|
||||
" License: Vim (see :h license)
|
||||
" Repository: https://github.com/chrisbra/vim-kconfig
|
||||
|
||||
@ -19,4 +19,5 @@ setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
|
||||
" For matchit.vim
|
||||
if exists("loaded_matchit")
|
||||
let b:match_words = '^\<menu\>:\<endmenu\>,^\<if\>:\<endif\>,^\<choice\>:\<endchoice\>'
|
||||
let b:undo_ftplugin .= "| unlet! b:match_words"
|
||||
endif
|
||||
|
@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Maintainer: Christian Brabandt <cb@256bit.org>
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2024-07-19
|
||||
" Latest Revision: 2025 Jan 20
|
||||
" License: Vim (see :h license)
|
||||
" Repository: https://github.com/chrisbra/vim-kconfig
|
||||
|
||||
@ -12,6 +12,8 @@ endif
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
exe "syn sync minlines=" . get(g:, 'kconfig_minlines', 50)
|
||||
|
||||
if exists("g:kconfig_syntax_heavy")
|
||||
|
||||
syn match kconfigBegin '^' nextgroup=kconfigKeyword
|
||||
@ -587,8 +589,6 @@ syn match kconfigConfOptExprGrpE ')'
|
||||
\ kconfigConfOptExprOr
|
||||
\ skipwhite skipnl
|
||||
|
||||
syn sync minlines=50
|
||||
|
||||
hi def link kconfigTodo Todo
|
||||
hi def link kconfigComment Comment
|
||||
hi def link kconfigKeyword Keyword
|
||||
|
Loading…
Reference in New Issue
Block a user