mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 06:18:16 +00:00
options: Silence V542 without using comments
This commit is contained in:
@@ -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 = {}
|
||||||
|
@@ -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',
|
||||||
|
Reference in New Issue
Block a user