vim-hjson icon indicating copy to clipboard operation
vim-hjson copied to clipboard

set comments and commentstring

Open pseyfert opened this issue 2 years ago • 2 comments

These variables are documented e.g. here.

For comparison other language plugins also set these two variables vim-go or vim-toml.

I used these variables through the tcomment plugin. e.g. gcc toggles whether the current line is commented in or out.

pseyfert avatar Jan 27 '23 17:01 pseyfert

Thanks for the suggestion! But you have only added #, Hjson supports // and /* */ too. They are supported in the default value for comments, along with # followed by a space. So in the current state I assume your PR removes the requirement for a space after #, but drops support for // and /* */?

trobro avatar Feb 01 '23 16:02 trobro

thanks for spotting. i just added the // and /* */ comments from filetype='cpp' but seems i haven't set them correctly … debugging …

pseyfert avatar Feb 15 '23 12:02 pseyfert