After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 663099 - CSS3 syntax support
CSS3 syntax support
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
3.2.x
Other Linux
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-31 13:12 UTC by Robert Roth
Modified: 2016-01-24 18:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add css3 keywords and floats to lang file (20.39 KB, patch)
2016-01-23 16:27 UTC, Tobias Schönberg
none Details | Review
Add CSS3-keywords and float-definition to lang file (19.62 KB, patch)
2016-01-24 18:01 UTC, Tobias Schönberg
committed Details | Review

Description Robert Roth 2011-10-31 13:12:44 UTC
CSS 3 does not seem to be supported yet, see http://www.css3.info/preview/ for the new elements. I guess these should be added to the CSS syntax file.
Comment 1 Tobias Schönberg 2016-01-23 16:27:57 UTC
Created attachment 319590 [details] [review]
Add css3 keywords and floats to lang file

The current syntax highlighting file is missing many
css3 properties and values. This patch adds many keywords,
but excludes the more experimental ones. Also some
duplicate keywords were removed. The current lang-file
is also missing a definition for floats. The patch
adds the appropriate regex and assigns them the same
color as the 'number with unit' regex.

https://bugzilla.gnome.org/show_bug.cgi?id=663099
Fixes bug #663099
Comment 2 Tobias Schönberg 2016-01-24 18:01:19 UTC
Created attachment 319613 [details] [review]
Add CSS3-keywords and float-definition to lang file

The current syntax highlighting file is missing many
css3 properties and values. This patch adds many keywords,
but excludes the more experimental ones. The keywords,
values and at-rules were added in separate contexts
so css1+2 and css3 keywords are separated.
Furthermore the regexes were improved to reduce
mismatches of properties as values and vice-versa.
Some duplicate keywords were removed. The current
lang-file is also missing a definition for floats.
The patch adds the appropriate regex and assigns them
the same color as the 'number with unit' regex.

https://bugzilla.gnome.org/show_bug.cgi?id=663099
Fixes bug #663099
Comment 3 Paolo Borelli 2016-01-24 18:15:54 UTC
Thank you!