Skip to content

Commit 4335fcf

Browse files
committed
runtime(kconfig): updated ftplugin and syntax script
Signed-off-by: Christian Brabandt <[email protected]>
1 parent 71028a3 commit 4335fcf

File tree

3 files changed

+709
-698
lines changed

3 files changed

+709
-698
lines changed

runtime/doc/syntax.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 9.1. Last change: 2025 Jan 11
1+
*syntax.txt* For Vim version 9.1. Last change: 2025 Jan 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2218,6 +2218,16 @@ To disable numbers having their own color add the following to your vimrc: >
22182218
If you want quotes to have different highlighting than strings >
22192219
let g:jq_quote_highlight = 1
22202220
2221+
KCONFIG *ft-kconfig-syntax*
2222+
2223+
Kconfig syntax highlighting language. For syntax syncing, you can configure
2224+
the following variable (default: 50): >
2225+
2226+
let kconfig_minlines = 50
2227+
2228+
To configure a bit more (heavier) highlighting, set the following variable: >
2229+
2230+
let kconfig_syntax_heavy = 1
22212231
22222232
LACE *lace.vim* *ft-lace-syntax*
22232233

runtime/ftplugin/kconfig.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Vim syntax file
33
" Maintainer: Christian Brabandt <[email protected]>
44
" Previous Maintainer: Nikolai Weibull <[email protected]>
5-
" Latest Revision: 2024-04-12
5+
" Latest Revision: 2025 Jan 20
66
" License: Vim (see :h license)
77
" Repository: https://github.com/chrisbra/vim-kconfig
88

@@ -19,4 +19,5 @@ setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
1919
" For matchit.vim
2020
if exists("loaded_matchit")
2121
let b:match_words = '^\<menu\>:\<endmenu\>,^\<if\>:\<endif\>,^\<choice\>:\<endchoice\>'
22+
let b:undo_ftplugin .= "| unlet! b:match_words"
2223
endif

0 commit comments

Comments
 (0)