Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BEM nesting SCSS with parent selectors breaks Sublime Text syntax highlighting?

I'm experimenting with BEM syntax on a project that uses SCSS. My editor is Sublime Text 3 and I'm using SCSS syntax highlighting.

The problem I'm experiencing is that when I nest using the & parent selector as per this article by Mike Fowler, Sublime highlights it red. Here is an example:

enter image description here

The code compiles fine, I'd just prefer that Sublime not flag these as errors.

Can anyone help config Sublime to do just that?

like image 949
fourhexagons Avatar asked Sep 15 '14 00:09

fourhexagons


1 Answers

I fixed this when I had this issue by selecting View>Syntax>SASS>SCSS This is apparently caused by downloading the original SASS package Sublime.

like image 148
Richard Clifford Avatar answered Sep 22 '22 06:09

Richard Clifford