Home Download Buy Blog Forum Support

CSS.tmLanguage a little incomplete

CSS.tmLanguage a little incomplete

Postby Ko3 on Thu Jan 27, 2011 10:40 pm

I found that there is no capture for @charset in CSS.tmLanguage.
I fixed that temporarily for myself by changing line 155 into
Code: Select all
<string>^\s*((@)(?:import|charset)\b)</string>


Also, the scopes punctuation.definition.comment.html.css and comment.block.html.css are missing (similar to punctuation.definition.comment.html.js and comment.block.html.js in JavaScript.tmLanguage).
I added them below line 448 of my CSS.tmLanguage file:
Code: Select all
<dict>
   <key>captures</key>
   <dict>
      <key>0</key>
      <dict>
         <key>name</key>
         <string>punctuation.definition.comment.html.css</string>
      </dict>
      <key>2</key>
      <dict>
         <key>name</key>
         <string>punctuation.definition.comment.html.css</string>
      </dict>
   </dict>
   <key>match</key>
   <string>(&lt;!--|--&gt;)</string>
   <key>name</key>
   <string>comment.block.html.css</string>
</dict>


Ko3
Ko3
 
Posts: 7
Joined: Wed Jan 19, 2011 12:11 pm

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 23 guests