Sublime Forum

CSS syntax improvements

#1

Sublime Text 2 has some flaws in it’s CSS syntax declaration (CSS.tmLanguage).
So, in the CSS patterns there is a declartion which includes “#rule-list”. It has beginning “(?={)” and “}” for the end. The latter must be enclosed in parentheses: “(})”. Otherwise “punctuation” in a color theme has has no effect on closing curly bracket.
There is a case for it: some people advice for making CSS punctuation blended to make it easier to focus on content. Without brackets it’s impossible to do. I’ve made it in Sublime Text 2 and already liked it :smile:.

Also some important properties are being missed in “property-values”: inline-table, table-row-group, table-row, table-column-group, table-column, table-cell, table-caption.

Perhaps there is more missing from syntax such as CSS modules that now are Candidate Recommendation or moving to it, such as: CSS3 Images, CSS3 Media Queries or CSS3 Flexbox.

P.S. Right curly bracket bug can be seen here: Help Me Create this Theme

0 Likes

#2

I think the default packages should somehow be updatable (for everyone) (like adding them to github or something). That’s because there actually are a few things which could be done better (like in CSS package, but I also might have one or two issues regarding the Lua language definition).

0 Likes