cyberkov / openhab-vim

Vim syntax files for openHAB
https://www.openhab.org/
GNU General Public License v3.0
31 stars 7 forks source link

Commentstring and comments strangely set for .rules files #15

Open marcvs opened 5 years ago

marcvs commented 5 years ago

Not sure if this bug stems from elsewhere.

To reproduce: check the output of ":set comments" and ":set commentstring".

For me it was comments=:# commentstring=c# %s

Leading to nerdcommenter not commenting stuff correctly.

This patch fixed it for me:

` diff --git a/syntax/openhab.vim b/syntax/openhab.vim index 20bd5c8..0d87328 100644 --- a/syntax/openhab.vim +++ b/syntax/openhab.vim @@ -137,6 +137,8 @@ if &filetype=='openhab-rules' hi def link openhabOption Macro hi def link openhabOption_quote Label hi def link openhabParameter Operator

mueller-ma commented 5 years ago

You can edit your first comment, mark the patch and click on Insert quote. This way Github formatting won't be applied to your patch.