haml-edge 2.3.225 → 2.3.226
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/EDGE_GEM_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/haml/exec.rb +2 -1
- data/lib/sass/script/lexer.rb +8 -5
- data/lib/sass/scss/parser.rb +5 -1
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.226
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.226
|
data/lib/haml/exec.rb
CHANGED
data/lib/sass/script/lexer.rb
CHANGED
@@ -99,7 +99,7 @@ module Sass
|
|
99
99
|
class << self
|
100
100
|
private
|
101
101
|
def string_re(open, close)
|
102
|
-
/#{open}((?:\\.|\#(?!\{)|[^#{close}\\#])*)(#{close}
|
102
|
+
/#{open}((?:\\.|\#(?!\{)|[^#{close}\\#])*)(#{close}|#\{)/
|
103
103
|
end
|
104
104
|
end
|
105
105
|
|
@@ -114,8 +114,8 @@ module Sass
|
|
114
114
|
[:single, false] => string_re("'", "'"),
|
115
115
|
[:double, true] => string_re('', '"'),
|
116
116
|
[:single, true] => string_re('', "'"),
|
117
|
-
[:uri, false] => /url\(#{W}(#{URLCHAR}*?)(#{W}\)
|
118
|
-
[:uri, true] => /(#{URLCHAR}*?)(#{W}\)
|
117
|
+
[:uri, false] => /url\(#{W}(#{URLCHAR}*?)(#{W}\)|#\{)/,
|
118
|
+
[:uri, true] => /(#{URLCHAR}*?)(#{W}\)|#\{)/,
|
119
119
|
}
|
120
120
|
|
121
121
|
# @param str [String, StringScanner] The source text to lex
|
@@ -251,10 +251,13 @@ module Sass
|
|
251
251
|
|
252
252
|
def string(re, open)
|
253
253
|
return unless scan(STRING_REGULAR_EXPRESSIONS[[re, open]])
|
254
|
-
|
254
|
+
if @scanner[2] == '#{' #'
|
255
|
+
@scanner.pos -= 2 # Don't actually consume the #{
|
256
|
+
@interpolation_stack << re
|
257
|
+
end
|
255
258
|
str =
|
256
259
|
if re == :uri
|
257
|
-
Script::String.new("#{'url(' unless open}#{@scanner[1]}#{')' unless @scanner[2]
|
260
|
+
Script::String.new("#{'url(' unless open}#{@scanner[1]}#{')' unless @scanner[2] == '#{'}")
|
258
261
|
else
|
259
262
|
Script::String.new(@scanner[1].gsub(/\\(['"]|\#\{)/, '\1'), :string)
|
260
263
|
end
|
data/lib/sass/scss/parser.rb
CHANGED
@@ -645,7 +645,11 @@ MESSAGE
|
|
645
645
|
|
646
646
|
mid_re = Sass::Script::Lexer::STRING_REGULAR_EXPRESSIONS[[type, true]]
|
647
647
|
# @scanner[2].empty? means we've started an interpolated section
|
648
|
-
|
648
|
+
while @scanner[2] == '#{'
|
649
|
+
@scanner.pos -= 2 # Don't consume the #{
|
650
|
+
res.last.slice!(-2..-1)
|
651
|
+
res << expr!(:interpolation) << tok(mid_re)
|
652
|
+
end
|
649
653
|
res
|
650
654
|
end
|
651
655
|
|