mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
syntax: Exclude deprecated options
Excluded options (compatible, edcompatible and ttyfast) are listed in vimOnlyOption group.
This commit is contained in:
parent
853ba34103
commit
6f35bcfb07
@ -58,19 +58,21 @@ local vimopt_start = 'syn keyword vimOption contained '
|
|||||||
w('\n\n' .. vimopt_start)
|
w('\n\n' .. vimopt_start)
|
||||||
|
|
||||||
for _, opt_desc in ipairs(options.options) do
|
for _, opt_desc in ipairs(options.options) do
|
||||||
if lld.line_length > 850 then
|
if not opt_desc.varname or opt_desc.varname:sub(1, 7) ~= 'p_force' then
|
||||||
w('\n' .. vimopt_start)
|
if lld.line_length > 850 then
|
||||||
end
|
w('\n' .. vimopt_start)
|
||||||
w(' ' .. opt_desc.full_name)
|
end
|
||||||
if opt_desc.abbreviation then
|
w(' ' .. opt_desc.full_name)
|
||||||
w(' ' .. opt_desc.abbreviation)
|
|
||||||
end
|
|
||||||
if opt_desc.type == 'bool' then
|
|
||||||
w(' inv' .. opt_desc.full_name)
|
|
||||||
w(' no' .. opt_desc.full_name)
|
|
||||||
if opt_desc.abbreviation then
|
if opt_desc.abbreviation then
|
||||||
w(' inv' .. opt_desc.abbreviation)
|
w(' ' .. opt_desc.abbreviation)
|
||||||
w(' no' .. opt_desc.abbreviation)
|
end
|
||||||
|
if opt_desc.type == 'bool' then
|
||||||
|
w(' inv' .. opt_desc.full_name)
|
||||||
|
w(' no' .. opt_desc.full_name)
|
||||||
|
if opt_desc.abbreviation then
|
||||||
|
w(' inv' .. opt_desc.abbreviation)
|
||||||
|
w(' no' .. opt_desc.abbreviation)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user