mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
vim-patch:ddbb6fe: runtime(vim): Update base-syntax, improve :set highlighting (#29850)
- Match bang, "all" and "termcap" options, and trailing command
separator "|".
- Highlight set assignment operators.
- Match multiline :set and multiline option values.
- Mention the newer "0o" octal prefix at :help :set=.
closes: vim/vim#15329
ddbb6fe2d0
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
@@ -80,12 +80,13 @@ for _, cmd_desc in ipairs(ex_cmds.cmds) do
|
||||
end
|
||||
|
||||
local vimopt_start = 'syn keyword vimOption contained '
|
||||
local vimopt_end = ' skipwhite nextgroup=vimSetEqual,vimSetMod'
|
||||
w('\n\n' .. vimopt_start)
|
||||
|
||||
for _, opt_desc in ipairs(options.options) do
|
||||
if not opt_desc.immutable then
|
||||
if lld.line_length > 850 then
|
||||
w('\n' .. vimopt_start)
|
||||
w(vimopt_end .. '\n' .. vimopt_start)
|
||||
end
|
||||
w(' ' .. opt_desc.full_name)
|
||||
if opt_desc.abbreviation then
|
||||
@@ -102,7 +103,9 @@ for _, opt_desc in ipairs(options.options) do
|
||||
end
|
||||
end
|
||||
|
||||
w('\n\nsyn case ignore')
|
||||
w(vimopt_end .. '\n')
|
||||
|
||||
w('\nsyn case ignore')
|
||||
local vimau_start = 'syn keyword vimAutoEvent contained '
|
||||
w('\n\n' .. vimau_start)
|
||||
|
||||
|
Reference in New Issue
Block a user