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 8563acc commit 5bea8e3Copy full SHA for 5bea8e3
lib/coderay/scanners/sass.rb
@@ -139,7 +139,14 @@ def scan_tokens encoder, options
139
encoder.begin_group :string
140
string_delimiter = match
141
encoder.text_token match, :delimiter
142
- states.push :string
+ if states.include? :sass_inline
143
+ content = scan_until(/(?=#{string_delimiter}|\}|\z)/)
144
+ encoder.text_token content, :content unless content.empty?
145
+ encoder.text_token string_delimiter, :delimiter if scan(/#{string_delimiter}/)
146
+ encoder.end_group :string
147
+ else
148
+ states.push :string
149
+ end
150
151
elsif match = scan(/#{SASS_FUNCTION}/o)
152
encoder.text_token match, :predefined
0 commit comments