textmate / css.tmbundle

TextMate support for CSS
54 stars 36 forks source link

Recognize foldable @group from CSSEdit #3

Closed turadg closed 13 years ago

turadg commented 13 years ago

I use both Textmate and CSSEdit to edit CSS files. CSSEdit has a nice @group feature to fold blocks of CSS. This patch lets Textmate fold those too. Regexps from css-tricks.com.

infininight commented 13 years ago

There is an escaping issue in this commit, you can tell where the issue is from the diff. (Always edit inside the Bundle Editor to prevent this from happening.)

turadg commented 13 years ago

Oops, I lost the XML entity encoding on '<'. (Copied from Bundle Editor instead of the file generated by Bundle Editor.)

Here's a cleaner commit.