nerdcommenter
nerdcommenter copied to clipboard
lua multi-line comments bug
The original comment of lua in nerdcommenter is only '--' But there is a multiline comment style:
--[[
This is multiline
comments
]]
When I add is to the lua entry as
'lua': { 'left': '--[[', 'right': ']]', 'leftAlt': '--' },
or
'lua': { 'left': '--', 'leftAlt': '--[[', 'rightAlt':']]' },
single line comment is ok.
multi-line comment is ok too.
But when uncomment the multiline comment like
the above
[[
This is multiline
comments
The '[[' is not removed. I think this is a bug in the Nerdcommenter, This there is seldom comment style use the same left beginning symbol as in Lua '--', that make the uncomment function not working properly. Thanks for anyone can fix this bug.
@perlawk If by chance you still work in Lua and use VIM, could you check out @kevinhwang91's fix for this is #451? I'm pretty sure it should be a direct fix but it would be nice to have confirmation that it does what is expected of it.