diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-06-23 14:33:22 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-06-23 14:33:22 +0200 |
commit | 56f4163e99689912c3797e5d3b2b97244ce65782 (patch) | |
tree | 80a8c1ab927661743329f10cd1dd415f2a8bca0f /lib/coderay | |
parent | c34ad739bc7342aa40830945a5e19e90e9814e04 (diff) | |
download | coderay-56f4163e99689912c3797e5d3b2b97244ce65782.tar.gz |
fix another CSS empty token issue
Diffstat (limited to 'lib/coderay')
-rw-r--r-- | lib/coderay/scanners/css.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/scanners/css.rb b/lib/coderay/scanners/css.rb index 6c52c8a..9ed4618 100644 --- a/lib/coderay/scanners/css.rb +++ b/lib/coderay/scanners/css.rb @@ -145,10 +145,10 @@ module Scanners start = match[/^\w+\(/] encoder.text_token start, :delimiter if match[-1] == ?) - encoder.text_token match[start.size..-2], :content + encoder.text_token match[start.size..-2], :content if match.size > start.size + 1 encoder.text_token ')', :delimiter else - encoder.text_token match[start.size..-1], :content if start.size < match.size + encoder.text_token match[start.size..-1], :content if match.size > start.size end encoder.end_group :function |