haml-edge 2.3.214 → 2.3.215
Sign up to get free protection for your applications and to get access to all the features.
- data/EDGE_GEM_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/sass/script/lexer.rb +2 -2
- data/test/sass/scss/scss_test.rb +15 -0
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.215
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.215
|
data/lib/sass/script/lexer.rb
CHANGED
@@ -149,10 +149,10 @@ module Sass
|
|
149
149
|
# @return [Boolean]
|
150
150
|
def whitespace?(tok = @tok)
|
151
151
|
if tok
|
152
|
-
@scanner.string[0...tok.pos] =~ /\s
|
152
|
+
@scanner.string[0...tok.pos] =~ /\s\Z/
|
153
153
|
else
|
154
154
|
@scanner.string[@scanner.pos, 1] =~ /^\s/ ||
|
155
|
-
@scanner.string[@scanner.pos - 1, 1] =~ /\s
|
155
|
+
@scanner.string[@scanner.pos - 1, 1] =~ /\s\Z/
|
156
156
|
end
|
157
157
|
end
|
158
158
|
|
data/test/sass/scss/scss_test.rb
CHANGED
@@ -970,6 +970,21 @@ SCSS
|
|
970
970
|
flim {
|
971
971
|
&& {a: b}
|
972
972
|
}
|
973
|
+
SCSS
|
974
|
+
end
|
975
|
+
|
976
|
+
# Regression
|
977
|
+
|
978
|
+
def test_weird_added_space
|
979
|
+
assert_equal <<CSS, render(<<SCSS)
|
980
|
+
foo {
|
981
|
+
bar: -moz-bip; }
|
982
|
+
CSS
|
983
|
+
$value : bip;
|
984
|
+
|
985
|
+
foo {
|
986
|
+
bar: -moz-\#{$value};
|
987
|
+
}
|
973
988
|
SCSS
|
974
989
|
end
|
975
990
|
end
|