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

Fix rust Alt comments #248

Merged
merged 1 commit into from
May 26, 2016
Merged

Fix rust Alt comments #248

merged 1 commit into from
May 26, 2016

Conversation

ARM9
Copy link
Contributor

@ARM9 ARM9 commented May 26, 2016

/// are single line documentation comments.

@alerque
Copy link
Member

alerque commented May 26, 2016

Hey @ARM9 thanks for taking the time to contribute. You're probably right here and I'm no expert on Rust, but before I blow it away can you give me a brief explanation here? The previous contributor that set this entry up linked to this page in the docs that says nothing about /* */ style block comments. What's going on here?

@alerque
Copy link
Member

alerque commented May 26, 2016

Hey @Ilphrin, any comment on this?

@ARM9
Copy link
Contributor Author

ARM9 commented May 26, 2016

I see, that page seems to omit multiline comments for some reason (perhaps they don't update it regularly). See https://doc.rust-lang.org/reference.html#comments

@alerque alerque merged commit e48cc75 into preservim:master May 26, 2016
@alerque
Copy link
Member

alerque commented May 26, 2016

I can buy that. @Ilphrin and anybody else that prefers the docstring comment format as the alternate, you can set it up in your vimrc file like this:

let g:NERDCustomDelimiters = { 'rust': { 'left': '//', 'altLeft': '///' }

@Ilphrin
Copy link

Ilphrin commented May 26, 2016

Great! :) I didn't know if there is a way to manage all kind of Rust's comments, but the common syntax is cool, thanks!

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

Successfully merging this pull request may close these issues.

3 participants