options: Silence V542 without using comments

This commit is contained in:
ZyX
2017-05-20 05:02:03 +03:00
parent a052040430
commit e14f678689
2 changed files with 7 additions and 3 deletions

View File

@@ -118,8 +118,7 @@ local get_value = function(v)
end end
local get_defaults = function(d) local get_defaults = function(d)
return ('{' .. get_value(d.vi) .. '/* -V542 */, ' return ('{' .. get_value(d.vi) .. ', ' .. get_value(d.vim) .. '}')
.. get_value(d.vim) .. '/* -V542 */}')
end end
local defines = {} local defines = {}

View File

@@ -34,6 +34,11 @@ local macros=function(s)
return s return s
end end
end end
local imacros=function(s)
return function()
return '(intptr_t)' .. s
end
end
local N_=function(s) local N_=function(s)
return function() return function()
return 'N_(' .. cstr(s) .. ')' return 'N_(' .. cstr(s) .. ')'
@@ -2648,7 +2653,7 @@ return {
type='number', scope={'global'}, type='number', scope={'global'},
vim=true, vim=true,
varname='p_wc', varname='p_wc',
defaults={if_true={vi=macros('Ctrl_E'), vim=macros('TAB')}} defaults={if_true={vi=imacros('Ctrl_E'), vim=imacros('TAB')}}
}, },
{ {
full_name='wildcharm', abbreviation='wcm', full_name='wildcharm', abbreviation='wcm',