lib/csscss/parser/css.rb in csscss-1.1.0 vs lib/csscss/parser/css.rb in csscss-1.2.0

- old
+ new

@@ -23,10 +23,16 @@ rule(:blank_attribute) { str(";") >> space? } rule(:attribute) { match["^:{}"].repeat(1).as(:property) >> str(":") >> - match["^;}"].repeat(1).as(:value) >> + (match["^;}"].repeat(1).capture(:stuff) >> dynamic {|source, context| + if context.captures[:stuff].to_s =~ /data:/ + str(";") >> match["^;}"].repeat(1) + else + any.present? + end + }).as(:value) >> str(";").maybe >> space? } rule(:ruleset) {