SublimeText/ColdFusion — Issue #16: Incorrectly identified scope for Comments
Author: indynagpal
Created: 2012-02-25 06:20:40+00:00
State: open

For commenting in an a cfm or CFC page, what should be identified as text.html.cfm is identified as source.cfscript.

First Issue:

A test for this is to add the a simple line like below to a cfm or cfc file:

Place the cursor at the beginning of this line, and try and comment it via super + / OR Edit > Comment > Toggle Comment.

You'll notice that the the line is appended with "//". Toggling comment again removes these two.

Second Issue:
If you select the whole like and toggle comments, nothing happens.

Now, if you remove the two files CFScript.tmPreferences and CFScript.tmPreferences.cache, and try the above two cases, you'll see the commenting happens correctly. But removing these two files screw up commenting in CFScript blocks.

So this leads me to believe that regular cfml markup blocks are being treated under the scope: source.cfscript.