mirror of
https://github.com/neovim/neovim.git
synced 2025-11-06 18:54:24 +00:00
syntax: Exclude deprecated options
Excluded options (compatible, edcompatible and ttyfast) are listed in vimOnlyOption group.
This commit is contained in:
@@ -58,6 +58,7 @@ 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 not opt_desc.varname or opt_desc.varname:sub(1, 7) ~= 'p_force' then
|
||||||
if lld.line_length > 850 then
|
if lld.line_length > 850 then
|
||||||
w('\n' .. vimopt_start)
|
w('\n' .. vimopt_start)
|
||||||
end
|
end
|
||||||
@@ -74,6 +75,7 @@ for _, opt_desc in ipairs(options.options) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
w('\n\nsyn case ignore')
|
w('\n\nsyn case ignore')
|
||||||
local vimau_start = 'syn keyword vimAutoEvent contained '
|
local vimau_start = 'syn keyword vimAutoEvent contained '
|
||||||
|
|||||||
Reference in New Issue
Block a user