GNOME Bugzilla – Bug 776830
css.lang: Inconsistent highlighting in nested functions
Last modified: 2017-06-22 19:25:49 UTC
A block like this: .class { background: radial-gradient( ellipse farthest-corner at 50% 50%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.5) 100% ); } currently has very inconsistent highlighting. It seems like functions can't handle nested functions (the rgba() inside of radial-gradient()). Will try to send a patch soon.
Created attachment 354191 [details] [review] css.lang: Improve highlighting of functions: nesting and dimensions Currently nested functions are not highlighted. Functions like 'translateX' are not hightlighted when the x is lower case. Dimensions are not highlighted at all within functions. This commit fixes these 3 issues. Function context is now defined after units and imports them. Nesting is allowed. Regex allows uppercase letters in function names.
Review of attachment 354191 [details] [review]: Looks good, thanks.
https://git.gnome.org/browse/gtksourceview/commit/?id=7d020c4d88ff6731766f9c51e105f42d52aa4af0