SublimeText/AAAPackageDev — Issue #3: Poor Comment Support in Json Settings Files
Author: facelessuser
Created: 2012-01-23 17:24:41+00:00
State: open

It seems this plugin has very poor, and inconsistent support for comments.

sublime-settings have support for single line comments, but not support for block comments. sublime-commands shows comments as invalid. I have not gone further than these two.

Also, there seems to be no Comments.tmPreferences file to allow support for commenting out lines via "ctrl+/".

A comments.tmPreferences file is pretty easy to add. The one from the javascript package can literally be used in this package since all of these settings files are just json; all it would require is targeted source.sublimecommands and source.sublime-settings. A matter of fact, the comment syntax highlighting can literally be taken from the JSON.tmLanguage file in ST2 and placed in the tmLanguages for all these json type settings files. I think support for comments can fairly easily be added, yet it hasn't which brings up the question of why?

It seems that this package is meant to make plugin and package development easier, but leaving out support like this seems to be counter-productive.

Is there a reason comment support was left out that I just haven't though of?