MarioRicalde / SCSS.tmbundle

The TextMate SCSS Official Bundle. Now Compatible with SublimeText2.
833 stars 110 forks source link

@media @ flagged as illegal #187

Open bobrocke opened 9 years ago

bobrocke commented 9 years ago

For some reason the @ in @media is being matches as an illegal character:

_styles scss www br dev

Can that be fixed?

Rocketpilot commented 9 years ago

I see this too, regardless of theme.

Rocketpilot commented 9 years ago

This can be fixed, I've just discovered, by manually editing the SCSS language file. Following this patch, that seems to not be present in the stock SCSS install in Textmate, you can take the start and end Regex captures and put them in the language grammar file.

https://github.com/MarioRicalde/SCSS.tmbundle/commit/e8ab974def58a1b413e66f1535406cc719fbfb87

This string, in particular, seems to resolve things:

^\s((@)media)(?=.?{)

Replace whatever you have as the opening capture.

bobrocke commented 9 years ago

Progress?

cvrebert commented 8 years ago

Seems like a duplicate of #145.