gepd / Deviot

Sublime Text plugin for IoT development based in PlatformIO ecosystem (Arduino IDE)
Apache License 2.0
307 stars 56 forks source link

'Toggle Block Comment' results in multiple lines of single line comments #288

Open hijomojo opened 5 years ago

hijomojo commented 5 years ago

Using Ctrl + Shift + / (or Edit > Comment > Toggle Block Comment) results in the single line // comment format being applied to all of the selected lines individually, rather than the correct /* ... */ format where /* appears at the start of the first line, and */ appears at the end of the final line selected. This is whilst using the 'Deviot' syntax option, obviously.

I have a feeling it's something missing from the sublime syntax file, as if I change to, for example, one of the C/C variant syntax options, comment blocks are generated correctly. I've tinkered a little bit trying to merge what I thought were important differences from the C++ syntax file into the Deviot syntax file, however didn't get the desired result, so might not be on the correct approach.

Win10 x64 ST v3.2 build 3200 Deviot 2.3.0.dev12