billymoon / Stylus

Stylus Package for Sublime Text 2 / 3
Other
129 stars 31 forks source link

Comments not working in sublime text #5

Closed evanmoran closed 12 years ago

evanmoran commented 12 years ago

I'm using this from Package Control in sublime text and found that neither line nor block comment commands are working (through menu or shortcut). I spent a few minutes trying to understand textmate syntax but am not sure what bind it to the comment command. My guess is other folks are having the same issue.

Here is a snippet from the from javascript if that helps:

<dict>
  <key>captures</key>
  <dict>
    <key>1</key>
    <dict>
      <key>name</key>
      <string>punctuation.definition.comment.js</string>
    </dict>
  </dict>
  <key>match</key>
  <string>(//).*$\n?</string>
  <key>name</key>
  <string>comment.line.double-slash.js</string>
</dict>

Thanks for the great package. I'm using it every day=).

billymoon commented 12 years ago

I will have a go at fixing this, but I am not really experienced with TM syntax myself. I just re-packaged an existing scheme. I have had half success with copying the JavaScript Comments.tmPreferences file, so block comments seem to work, and stream comments almost work - but are still not quite right. I will upload as it is an improvement, and hopefully someone will come by and fix it for us all.

evanmoran commented 12 years ago

I just found this Stylus.tmbundle that does seem to work for commenting. Maybe it can help..

https://github.com/LearnBoost/stylus/tree/master/editors

billymoon commented 12 years ago

I just added the comments file from there, and it works great. Cheers

evanmoran commented 12 years ago

Awesome thanks=)