preservim / nerdcommenter

Vim plugin for intensely nerdy commenting powers
Creative Commons Zero v1.0 Universal
4.97k stars 447 forks source link

Basic nested comment is not worked. #68

Closed zhou13 closed 1 year ago

zhou13 commented 12 years ago

In a c source file.

  a++

Comment it, we get

/* [> a++ <] */

Uncomment it, oops!.we get

[> a++ <]
jchain commented 12 years ago

I confirm this issue. Please fix it. Thank you!

randomizedthinking commented 10 years ago

Encountered the same issue, and found that if you repeat uncomment on

[> a++ <]

then you will get

/* a++ */
pavel-g commented 10 years ago

I confirm this issue. Please fix it. Thank you!

alerque commented 8 years ago

There is a work in progress (see #151) for handling language that can actually nest comments).

alerque commented 8 years ago

Basic support for real nested comments has been merged for languages that support it. This issue seems to be with languages that have the faux support vis-à-vis placeholders. This still needs fixing.

asknet commented 7 years ago

I'm kind of confused, whether this issue is resolved or not? But it's not working for me for C lang.

alerque commented 7 years ago

@asknet Note that this issue is still open, no so it's not resolved.

Some languages have built in support for nested comment structures. This plugin supports those languages. C is not one of those lanugages and requires some pseudo-comment syntax markers that need to be re-written on each level change. An attempt was made to do this, but it isn't working properly yet, hence why this issue is still open.

alerque commented 1 year ago

507 seems to have fixed this issue, so thanks to @lincheney for contributing that!