Home Download Buy Blog Forum Support

CSS syntax improvements

CSS syntax improvements

Postby GreLI on Mon Jun 25, 2012 9:05 pm

Sublime Text 2 has some flaws in it's CSS syntax declaration (CSS.tmLanguage).
So, in the CSS patterns there is a <dict> 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 :-).

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: viewtopic.php?f=4&t=5965
GreLI
 
Posts: 7
Joined: Mon Jan 23, 2012 6:00 pm

Re: CSS syntax improvements

Postby FichteFoll on Fri Jun 29, 2012 2:11 pm

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).
FichteFoll
 
Posts: 408
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 10 guests