lib/coderay/encoders/html/css.rb in coderay-1.0.0.800pre vs lib/coderay/encoders/html/css.rb in coderay-1.0.0.815pre
- old
+ new
@@ -42,10 +42,10 @@
)
\s* \{ \s*
( [^\}]+ )? # $2 = style
\s* \} \s*
|
- ( . ) # $3 = error
+ ( [^\n]+ ) # $3 = error
/mx
def parse stylesheet
stylesheet.scan CSS_CLASS_PATTERN do |selectors, style, error|
raise "CSS parse error: '#{error.inspect}' not recognized" if error
for selector in selectors.split(',')