Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua multi-line comments bug #150

Open
perlawk opened this issue Apr 30, 2014 · 1 comment
Open

lua multi-line comments bug #150

perlawk opened this issue Apr 30, 2014 · 1 comment
Labels

Comments

@perlawk
Copy link

perlawk commented Apr 30, 2014

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.

@alerque
Copy link
Member

alerque commented Dec 18, 2020

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants