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

comments and multi-line comments #103

Open
kiteloopdesign opened this issue Mar 26, 2023 · 2 comments
Open

comments and multi-line comments #103

kiteloopdesign opened this issue Mar 26, 2023 · 2 comments

Comments

@kiteloopdesign
Copy link

kiteloopdesign commented Mar 26, 2023

First of all thanks for the plugin!

Line comments use a single apostrophe

' This is a comment

Block comments use C-style comments except that instead of * you use an apostrophe

/'

many lines

here

'/

I think this line should be changed to have correct single-line comments

setlocal comments=s1:/',mb:',ex:'/,:' commentstring=/'%s'/ formatoptions-=t formatoptions+=croql
@kiteloopdesign
Copy link
Author

This does the trick indeed

setlocal comments=s1:/',mb:',ex:'/,:' commentstring='\ %s formatoptions-=t formatoptions+=croql

@aklt
Copy link
Owner

aklt commented Apr 8, 2023

Great, thank you for the fix!

If you make a pull request, I will merge it as soon as I can :-)

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

2 participants