SCSS.tmbundle icon indicating copy to clipboard operation
SCSS.tmbundle copied to clipboard

@media @ flagged as illegal

Open bobrocke opened this issue 11 years ago • 4 comments

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

_styles scss www br dev

Can that be fixed?

bobrocke avatar Feb 11 '15 00:02 bobrocke

I see this too, regardless of theme.

Rocketpilot avatar Mar 11 '15 23:03 Rocketpilot

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.

Rocketpilot avatar Mar 11 '15 23:03 Rocketpilot

Progress?

bobrocke avatar May 09 '15 22:05 bobrocke

Seems like a duplicate of #145.

cvrebert avatar Jan 21 '16 05:01 cvrebert