haml-edge 3.1.59 → 3.1.60
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/scss/parser.rb +2 -3
- data/test/sass/scss/scss_test.rb +10 -0
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.60
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.60
|
data/lib/sass/scss/parser.rb
CHANGED
@@ -644,11 +644,10 @@ MESSAGE
|
|
644
644
|
unless e = tok(NUMBER) ||
|
645
645
|
tok(URI) ||
|
646
646
|
function ||
|
647
|
-
|
647
|
+
tok(STRING) ||
|
648
648
|
tok(UNICODERANGE) ||
|
649
649
|
tok(IDENT) ||
|
650
|
-
tok(HEXCOLOR)
|
651
|
-
interpolation
|
650
|
+
tok(HEXCOLOR)
|
652
651
|
|
653
652
|
return unless op = unary_operator
|
654
653
|
@expected = "number or function"
|
data/test/sass/scss/scss_test.rb
CHANGED
@@ -1003,6 +1003,16 @@ flim {
|
|
1003
1003
|
SCSS
|
1004
1004
|
end
|
1005
1005
|
|
1006
|
+
def test_no_interpolation_in_media_queries
|
1007
|
+
assert_raise(Sass::SyntaxError, <<MESSAGE) {render <<SCSS}
|
1008
|
+
Invalid CSS after "...nd (min-width: ": expected expression (e.g. 1px, bold), was "\#{100}px) {
|
1009
|
+
MESSAGE
|
1010
|
+
@media screen and (min-width: \#{100}px) {
|
1011
|
+
foo {bar: baz}
|
1012
|
+
}
|
1013
|
+
SCSS
|
1014
|
+
end
|
1015
|
+
|
1006
1016
|
# Regression
|
1007
1017
|
|
1008
1018
|
def test_weird_added_space
|