Nested comments and CTRL-SHIFT-/

Hi,

I have this issue for my plugin : https://github.com/reasonml-editor/reasonml-idea-plugin/issues/27

I can have nested comments, and there is a problem with block comment.

if I have this code:

and I hit ctrl-shift-/ when selected, it ends up like this:

all I have is just the comments declaration in my ParserDefinition:

    public TokenSet getCommentTokens() {
        return COMMENTS;
    }

 

is it possible to handle correctly this use case in idea ?

thanks

0
2 comments

Try debugging CommentByBlockCommentHandler.invoke

0
Avatar
Permanently deleted user

Thank you,

it seems that the solution is to augment my Commenter with the CustomUncommenter interface.

0

Please sign in to leave a comment.