nerdcommenter icon indicating copy to clipboard operation
nerdcommenter copied to clipboard

Basic nested comment is not worked.

Open zhou13 opened this issue 12 years ago • 7 comments

In a c source file.

  a++

Comment it, we get

/* [> a++ <] */

Uncomment it, oops!.we get

[> a++ <]

zhou13 avatar Apr 04 '12 12:04 zhou13

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

jchain avatar Jul 31 '12 16:07 jchain

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

[> a++ <]

then you will get

/* a++ */

randomizedthinking avatar Oct 31 '13 02:10 randomizedthinking

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

pavel-g avatar Jan 17 '14 04:01 pavel-g

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

alerque avatar May 24 '16 10:05 alerque

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.

alerque avatar May 24 '16 13:05 alerque

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

asknet avatar Aug 25 '17 19:08 asknet

@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 avatar Aug 28 '17 15:08 alerque

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

alerque avatar Apr 20 '23 16:04 alerque