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:
zeertzjq
2024-07-25 09:55:59 +08:00
committed by GitHub
parent b4b4cf46a7
commit 0cdeb06db0
3 changed files with 22 additions and 10 deletions

View File

@@ -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)