{"action":"created","issue":{"url":"https://api.github.com/repos/cyberkov/openhab-vim/issues/15","repository_url":"https://api.github.com/repos/cyberkov/openhab-vim","labels_url":"https://api.github.com/repos/cyberkov/openhab-vim/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/cyberkov/openhab-vim/issues/15/comments","events_url":"https://api.github.com/repos/cyberkov/openhab-vim/issues/15/events","html_url":"https://github.com/cyberkov/openhab-vim/issues/15","id":367467049,"node_id":"MDU6SXNzdWUzNjc0NjcwNDk=","number":15,"title":"Commentstring and comments strangely set for .rules files","user":{"login":"marcvs","id":2298166,"node_id":"MDQ6VXNlcjIyOTgxNjY=","avatar_url":"https://avatars0.githubusercontent.com/u/2298166?v=4","gravatar_id":"","url":"https://api.github.com/users/marcvs","html_url":"https://github.com/marcvs","followers_url":"https://api.github.com/users/marcvs/followers","following_url":"https://api.github.com/users/marcvs/following{/other_user}","gists_url":"https://api.github.com/users/marcvs/gists{/gist_id}","starred_url":"https://api.github.com/users/marcvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcvs/subscriptions","organizations_url":"https://api.github.com/users/marcvs/orgs","repos_url":"https://api.github.com/users/marcvs/repos","events_url":"https://api.github.com/users/marcvs/events{/privacy}","received_events_url":"https://api.github.com/users/marcvs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-06T15:24:43Z","updated_at":"2018-10-06T15:29:32Z","closed_at":null,"author_association":"NONE","body":"Not sure if this bug stems from elsewhere. \r\n\r\nTo reproduce: \r\ncheck the output of \":set comments\" and \":set commentstring\".\r\n\r\nFor me it was\r\ncomments=:#\r\ncommentstring=c# %s                                                                                                                                                                                                                                                            \r\n\r\nLeading to nerdcommenter not commenting stuff correctly.\r\n\r\nThis patch fixed it for me:\r\ndiff --git a/syntax/openhab.vim b/syntax/openhab.vim\r\nindex 20bd5c8..0d87328 100644\r\n--- a/syntax/openhab.vim\r\n+++ b/syntax/openhab.vim\r\n@@ -137,6 +137,8 @@ if &filetype=='openhab-rules'\r\n   hi def link openhabOption             Macro\r\n   hi def link openhabOption_quote       Label\r\n   hi def link openhabParameter          Operator\r\n+  set commentstring /*%s*/\r\n+  set comments=\"s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,:#,:+ ,:* ,:o ,:-\"\r\n endif\r\n \r\n \" .persist File\r\n"},"comment":{"url":"https://api.github.com/repos/cyberkov/openhab-vim/issues/comments/427582858","html_url":"https://github.com/cyberkov/openhab-vim/issues/15#issuecomment-427582858","issue_url":"https://api.github.com/repos/cyberkov/openhab-vim/issues/15","id":427582858,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzU4Mjg1OA==","user":{"login":"marcvs","id":2298166,"node_id":"MDQ6VXNlcjIyOTgxNjY=","avatar_url":"https://avatars0.githubusercontent.com/u/2298166?v=4","gravatar_id":"","url":"https://api.github.com/users/marcvs","html_url":"https://github.com/marcvs","followers_url":"https://api.github.com/users/marcvs/followers","following_url":"https://api.github.com/users/marcvs/following{/other_user}","gists_url":"https://api.github.com/users/marcvs/gists{/gist_id}","starred_url":"https://api.github.com/users/marcvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcvs/subscriptions","organizations_url":"https://api.github.com/users/marcvs/orgs","repos_url":"https://api.github.com/users/marcvs/repos","events_url":"https://api.github.com/users/marcvs/events{/privacy}","received_events_url":"https://api.github.com/users/marcvs/received_events","type":"User","site_admin":false},"created_at":"2018-10-06T15:29:32Z","updated_at":"2018-10-06T15:29:32Z","author_association":"NONE","body":"One typo in the patch: set commentstring = /*%s*/"}}
{"actor":{"display_login":"marcvs"}}