haml-edge 2.3.249 → 2.3.250
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 +5 -3
- data/test/sass/scss/scss_test.rb +22 -0
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.250
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.250
|
data/lib/sass/scss/parser.rb
CHANGED
@@ -340,9 +340,11 @@ module Sass
|
|
340
340
|
@use_property_exception, false
|
341
341
|
begin
|
342
342
|
decl = declaration
|
343
|
-
|
344
|
-
|
345
|
-
|
343
|
+
unless decl && decl.has_children
|
344
|
+
# We want an exception if it's not there,
|
345
|
+
# but we don't want to consume if it is
|
346
|
+
tok!(/[;}]/) unless tok?(/[;}]/)
|
347
|
+
end
|
346
348
|
return decl
|
347
349
|
rescue Sass::SyntaxError => decl_err
|
348
350
|
end
|
data/test/sass/scss/scss_test.rb
CHANGED
@@ -430,6 +430,28 @@ foo {
|
|
430
430
|
SCSS
|
431
431
|
end
|
432
432
|
|
433
|
+
def test_several_namespace_properties
|
434
|
+
assert_equal <<CSS, render(<<SCSS)
|
435
|
+
foo {
|
436
|
+
bar: baz;
|
437
|
+
bang-bip: 1px;
|
438
|
+
bang-bop: bar;
|
439
|
+
buzz-fram: "foo";
|
440
|
+
buzz-frum: moo; }
|
441
|
+
CSS
|
442
|
+
foo {
|
443
|
+
bar: baz;
|
444
|
+
bang: {
|
445
|
+
bip: 1px;
|
446
|
+
bop: bar;}
|
447
|
+
buzz: {
|
448
|
+
fram: "foo";
|
449
|
+
frum: moo;
|
450
|
+
}
|
451
|
+
}
|
452
|
+
SCSS
|
453
|
+
end
|
454
|
+
|
433
455
|
def test_nested_namespace_properties
|
434
456
|
assert_equal <<CSS, render(<<SCSS)
|
435
457
|
foo {
|