]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(dosini): Update syntax script, spellcheck comments only
authorJohn Tobin <johntobin@johntobin.ie>
Tue, 10 Sep 2024 18:52:15 +0000 (20:52 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 10 Sep 2024 18:52:15 +0000 (20:52 +0200)
commitc0982f9f794a4c5737d3d7a3129b3121ab20e458
treef33a50b4a46d64adb74f78c915118d349abed008
parent26e4b000025ea0e25ea7877314d9095737431bae
runtime(dosini): Update syntax script, spellcheck comments only

By default spell checking is enabled for all text, but adding
`contains=@Spell` to syntax rules restricts spell checking to those
syntax rules.  See `:help spell-syntax` for full details.

Variable names and headers are far more likely than comments to contain
spelling errors, so only enable spell checking in comments.

Introduced in https://github.com/xuhdev/syntax-dosini.vim/pull/8

cc @tobinjt

closes: #15655

Signed-off-by: John Tobin <johntobin@johntobin.ie>
Signed-off-by: Hong Xu <hong@topbug.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/dosini.vim