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

Add Xtend as syntax

Open ThomDietrich opened this issue 7 years ago • 2 comments

Hey, your great addition is now part of openHABian: https://community.openhab.org/t/openhabian-hassle-free-rpi-image/13379 https://github.com/ThomDietrich/openhabian/commit/9c5650f0f54138dbef9a485c1c2f22931489405e Thanks!

When testing, I ran across one problem though. GitHub utilizes an app called Linguist to highlight source code. It is of course not able to highlight .rules files. The solution to this is to put a vim modeline at the end of the file: // vim: syntax=Xtend (Example) This however collides with your syntax=openhab and highlighting is disabled.

Would you be okay to add Xtend as an alternative language to your repo?

In return adding "filetype" to my files would not be a problem. I was about to propose the whole thing as a PR against the demo config package.

ThomDietrich avatar Aug 29 '16 10:08 ThomDietrich

@cyberkov This issue is still important. The situation even got worse as the "double feature" introduced in https://github.com/openhab/openhab-distro/pull/272 doesn't work anymore, GitHub must have changed their highlighting mechanism (check the two examples above). Are you able to look into that? You are probably the only one around here with experience in vim scripting... would be a big help!

ThomDietrich avatar Nov 06 '16 23:11 ThomDietrich

@cyberkov could you please let me know what you think? Even a "I don't care" would be better than silence...

ThomDietrich avatar Nov 30 '16 09:11 ThomDietrich