less 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.9
1
+ 1.0.10
data/less.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{less}
5
- s.version = "1.0.9"
5
+ s.version = "1.0.10"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["cloudhead"]
@@ -176,7 +176,7 @@ grammar Less
176
176
  # [type="text"]
177
177
  #
178
178
  rule attribute
179
- '[' tag ([|~*]? '=') (tag / string) ']' / '[' (tag / string) ']'
179
+ '[' tag ([|~*$^]? '=') (tag / string) ']' / '[' (tag / string) ']'
180
180
  end
181
181
 
182
182
  rule class
@@ -192,7 +192,7 @@ grammar Less
192
192
  end
193
193
 
194
194
  rule select
195
- (s [+>] s / s ':' / S)?
195
+ (s [+>~] s / s ':' / S)?
196
196
  end
197
197
 
198
198
  # TODO: Merge this with attribute rule
@@ -1921,7 +1921,7 @@ module Less
1921
1921
  s1 << r3
1922
1922
  if r3
1923
1923
  i4, s4 = index, []
1924
- if has_terminal?('[|~*]', true, index)
1924
+ if has_terminal?('[|~*$^]', true, index)
1925
1925
  r6 = true
1926
1926
  @index += 1
1927
1927
  else
@@ -2276,7 +2276,7 @@ module Less
2276
2276
  r3 = _nt_s
2277
2277
  s2 << r3
2278
2278
  if r3
2279
- if has_terminal?('[+>]', true, index)
2279
+ if has_terminal?('[+>~]', true, index)
2280
2280
  r4 = true
2281
2281
  @index += 1
2282
2282
  else
data/spec/css/css-1.0.css CHANGED
@@ -23,7 +23,6 @@ p + h1 { font-size: 2.2em; }
23
23
  input[type="text"] { font-weight: normal; }
24
24
  h2[title] { font-size: 100%; }
25
25
  [disabled] { color: transparent; }
26
- p:not([class*="lead"]) { color: black; }
27
26
  #shorthands {
28
27
  border: 1px solid #000000;
29
28
  font: 12px/16px Arial;
data/spec/engine_spec.rb CHANGED
@@ -22,6 +22,10 @@ describe Less::Engine do
22
22
  lessify(:css).should == css(:css)
23
23
  end
24
24
 
25
+ it "should parse css 3" do
26
+ lessify(:css3).should == css(:css3)
27
+ end
28
+
25
29
  it "should parse comments" do
26
30
  lessify(:comments).should == css(:comments)
27
31
  end
@@ -72,10 +72,6 @@ h2[title] {
72
72
  color: transparent;
73
73
  }
74
74
 
75
- p:not([class*="lead"]) {
76
- color: black;
77
- }
78
-
79
75
  #shorthands {
80
76
  border: 1px solid #000;
81
77
  font: 12px/16px Arial;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: less
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - cloudhead