azat-io / atom-language-postcss

:atom: Atom language support for PostCSS
https://atom.io/packages/language-postcss
MIT License
54 stars 13 forks source link

Autocomplete features not working in SugarSS files #10

Closed esiao closed 8 years ago

esiao commented 8 years ago

Hello, since I updated the plugin the autocomplete features of atom don't work anymore in my .sss files

I was using https://atom.io/packages/language-postcss-sugarss to support the sytax before you added your own support. I want to stick with your since it's not just a copy of sass language syntax support like does this plugin.

However because the scope of the grammar is source.postcss it causes issues with Emmet which is looking for .css to add the support. Could you change the syntax to .source.css.postss or even .source.css.sugarss (it's the one used by the plugin over) ? This should fix Emmet.

As for my snippets, I use .source.postcss and it's not expanding anymore.

# SugarSS: section comment
'.source.postcss, .source.css.sugarss':
  'Section comment':
    'prefix': 'sec',
    'body': """
      /*!==================================================
         #${1:}
         ================================================== */
      ${2:}
    """

A quick fix would be to use postcss sugarss plugin but yours is better in term of support and the syntax highlighting too. If you can fix this it would be great, thanks.