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

Support multiple commentstrings #44

Open
rosetree opened this issue Apr 7, 2015 · 4 comments
Open

Support multiple commentstrings #44

rosetree opened this issue Apr 7, 2015 · 4 comments

Comments

@rosetree
Copy link

rosetree commented Apr 7, 2015

It would be great when commentary could recognize multiple ways of how a comments can be done in a language. This should only work to comment lines out; commenting should use a single commentstring.

As an example see the following comment in C before calling commentary:

// no comment

After using gcc on that line:

no comment

After using gcc a second time:

/* no comment */

At the moment, using gcc on the first comment ends in:

/* // no comment */
@justb3a
Copy link

justb3a commented Oct 10, 2016

+1

@somini
Copy link

somini commented Oct 12, 2016

There's comments, which has a list of comment styles.

@noscript
Copy link

@somini did you mean to link to another plugin?

@somini
Copy link

somini commented Jul 27, 2018

No, comments is a Vim setting. This is for the configuration per filetype, not the implementation.

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

No branches or pull requests

4 participants