Hi,

I'm in Sublime Text 2 and using this https://github.com/nathos/sass-textmate-bundle for Sass support. I don't get the commenting in the sass files in Basic (/* opened but not closed). This kind of commenting makes all code as comments when using sass syntax highlighting and when I try to close the comments (*/) the highlighting works but I get syntax errors in the css file.

How can I get the right highlighting for Sublime?

Comments

deaftone’s picture

OK. Turns out the problem is with the plugin. Here's the solution for anyone experiencing the same problem:

  1. Go to | Preferences > Browse Packages
  2. Find Sass folder.
  3. Edit Syntaxes/Sass.tmLanguage
  4. Replace <string>\*/</string> with <string>\*/|$</string>

Noticed that indented comments doesn't highlight properly but at least you have proper highlighting in the rest of the code.

deaftone’s picture

Status: Active » Closed (fixed)