mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
options: Silence V542 without using comments
This commit is contained in:
parent
a052040430
commit
e14f678689
@ -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 = {}
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user