We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c34ad73 commit 56f4163Copy full SHA for 56f4163
lib/coderay/scanners/css.rb
@@ -145,10 +145,10 @@ def scan_tokens encoder, options
145
start = match[/^\w+\(/]
146
encoder.text_token start, :delimiter
147
if match[-1] == ?)
148
- encoder.text_token match[start.size..-2], :content
+ encoder.text_token match[start.size..-2], :content if match.size > start.size + 1
149
encoder.text_token ')', :delimiter
150
else
151
- 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
152
end
153
encoder.end_group :function
154
0 commit comments