atuttle / atom-language-cfml

:space_invader: A CFML Language for the Atom Editor
38 stars 24 forks source link

Commenting uses wrong comment tag #123

Open DanielEPHost opened 5 years ago

DanielEPHost commented 5 years ago

The problem exists in both .cfm & .cfc files. If I code a script or style block in a cfm or cfc file then a couple of issues arise. After the point where the tag block is situated then commenting (ctrl + /) does not work correctly. Plus the color coding is off for these tags. They are colored white. Note that commenting works fine in other file types that don't use language-cfml.

Paste the following into a .cfm file and comment out (ctrl + /) the last line. The result I get is that it comments out using // which is inherited from the script tag above it. If you remove the script tag all is swell. Example:

<div>Commenting here works fine</div>     
<cfscript>
     xxx = xxxxxxxxxxx;
</cfscript>     
<script src="xyz.min.js"></script>
<div>Hello</div>
<div>Commenting here does not work</div>

Thanks for looking into this!