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 +1 -1
- data/less.gemspec +1 -1
- data/lib/less/engine/less.tt +2 -2
- data/lib/less/engine/parser.rb +2 -2
- data/spec/css/css-1.0.css +0 -1
- data/spec/engine_spec.rb +4 -0
- data/spec/less/css-1.0.less +0 -4
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.10
|
data/less.gemspec
CHANGED
data/lib/less/engine/less.tt
CHANGED
@@ -176,7 +176,7 @@ grammar Less
|
|
176
176
|
# [type="text"]
|
177
177
|
#
|
178
178
|
rule attribute
|
179
|
-
'[' tag ([
|
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 [
|
195
|
+
(s [+>~] s / s ':' / S)?
|
196
196
|
end
|
197
197
|
|
198
198
|
# TODO: Merge this with attribute rule
|
data/lib/less/engine/parser.rb
CHANGED
@@ -1921,7 +1921,7 @@ module Less
|
|
1921
1921
|
s1 << r3
|
1922
1922
|
if r3
|
1923
1923
|
i4, s4 = index, []
|
1924
|
-
if has_terminal?('[
|
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?('[
|
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
data/spec/less/css-1.0.less
CHANGED