haml-edge 2.3.53 → 2.3.54

Sign up to get free protection for your applications and to get access to all the features.
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.53
1
+ 2.3.54
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.53
1
+ 2.3.54
data/lib/sass/engine.rb CHANGED
@@ -108,7 +108,7 @@ module Sass
108
108
  MIXIN_INCLUDE_CHAR = ?+
109
109
 
110
110
  # The regex that matches properties of the form <tt>name: prop</tt>.
111
- PROPERTY_NEW_MATCHER = /^[^\s:"]+\s*[=:](\s|$)/
111
+ PROPERTY_NEW_MATCHER = /^[^\s:"\[]+\s*[=:](\s|$)/
112
112
 
113
113
  # The regex that matches and extracts data from
114
114
  # properties of the form <tt>name: prop</tt>.
@@ -758,6 +758,17 @@ foo {
758
758
  CSS
759
759
  end
760
760
 
761
+ def test_attribute_selector_with_spaces
762
+ assert_equal(<<CSS, render(<<SASS))
763
+ a b[foo = bar] {
764
+ c: d; }
765
+ CSS
766
+ a
767
+ b[foo = bar]
768
+ c: d
769
+ SASS
770
+ end
771
+
761
772
  def test_quoted_colon
762
773
  assert_equal(<<CSS, render(<<SASS))
763
774
  a b[foo="bar: baz"] {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.53
4
+ version: 2.3.54
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-10-17 00:00:00 -04:00
13
+ date: 2009-10-21 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency