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
local get_defaults = function(d)
return ('{' .. get_value(d.vi) .. '/* -V542 */, '
.. get_value(d.vim) .. '/* -V542 */}')
return ('{' .. get_value(d.vi) .. ', ' .. get_value(d.vim) .. '}')
end
local defines = {}

View File

@ -34,6 +34,11 @@ local macros=function(s)
return s
end
end
local imacros=function(s)
return function()
return '(intptr_t)' .. s
end
end
local N_=function(s)
return function()
return 'N_(' .. cstr(s) .. ')'
@ -2648,7 +2653,7 @@ return {
type='number', scope={'global'},
vim=true,
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',