diff options
author | ZyX <kp-pav@yandex.ru> | 2015-07-26 21:39:19 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2015-07-26 21:39:19 +0300 |
commit | 6f35bcfb07bae585928e03301eb2f19813c3e400 (patch) | |
tree | 7d33756aa6a16ec50ddd3e88081fc345cfa7a3b4 /scripts/genvimvim.lua | |
parent | 853ba3410341f2d575757b299d21c93a70473359 (diff) | |
download | rneovim-6f35bcfb07bae585928e03301eb2f19813c3e400.tar.gz rneovim-6f35bcfb07bae585928e03301eb2f19813c3e400.tar.bz2 rneovim-6f35bcfb07bae585928e03301eb2f19813c3e400.zip |
syntax: Exclude deprecated options
Excluded options (compatible, edcompatible and ttyfast) are listed in
vimOnlyOption group.
Diffstat (limited to 'scripts/genvimvim.lua')
-rw-r--r-- | scripts/genvimvim.lua | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/scripts/genvimvim.lua b/scripts/genvimvim.lua index 55e57f2f1a..9135c8e3ab 100644 --- a/scripts/genvimvim.lua +++ b/scripts/genvimvim.lua @@ -58,19 +58,21 @@ local vimopt_start = 'syn keyword vimOption contained ' w('\n\n' .. vimopt_start) for _, opt_desc in ipairs(options.options) do - if lld.line_length > 850 then - w('\n' .. vimopt_start) - end - w(' ' .. opt_desc.full_name) - if opt_desc.abbreviation then - w(' ' .. opt_desc.abbreviation) - end - if opt_desc.type == 'bool' then - w(' inv' .. opt_desc.full_name) - w(' no' .. opt_desc.full_name) + if not opt_desc.varname or opt_desc.varname:sub(1, 7) ~= 'p_force' then + if lld.line_length > 850 then + w('\n' .. vimopt_start) + end + w(' ' .. opt_desc.full_name) if opt_desc.abbreviation then - w(' inv' .. opt_desc.abbreviation) - w(' no' .. opt_desc.abbreviation) + 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 + w(' inv' .. opt_desc.abbreviation) + w(' no' .. opt_desc.abbreviation) + end end end end |