sass 3.1.0.alpha.35 → 3.1.0.alpha.36
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/script/lexer.rb +1 -1
- data/test/sass/scss/scss_test.rb +20 -0
- metadata +2 -2
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.0.alpha.
|
1
|
+
3.1.0.alpha.36
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.0.alpha.
|
1
|
+
3.1.0.alpha.36
|
data/lib/sass/script/lexer.rb
CHANGED
@@ -92,7 +92,7 @@ module Sass
|
|
92
92
|
:number => /(-)?(?:(\d*\.\d+)|(\d+))([a-zA-Z%]+)?/,
|
93
93
|
:color => HEXCOLOR,
|
94
94
|
:bool => /(true|false)\b/,
|
95
|
-
:ident_op => %r{(#{Regexp.union(*IDENT_OP_NAMES.map{|s| Regexp.new(Regexp.escape(s) + "(?!#{NMCHAR}
|
95
|
+
:ident_op => %r{(#{Regexp.union(*IDENT_OP_NAMES.map{|s| Regexp.new(Regexp.escape(s) + "(?!#{NMCHAR}|\Z)")})})},
|
96
96
|
:op => %r{(#{Regexp.union(*OP_NAMES)})},
|
97
97
|
}
|
98
98
|
|
data/test/sass/scss/scss_test.rb
CHANGED
@@ -1187,6 +1187,26 @@ SCSS
|
|
1187
1187
|
assert_raise_line(2) {render(<<SCSS)}
|
1188
1188
|
@if true {foo: bar}
|
1189
1189
|
}
|
1190
|
+
SCSS
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
def test_multiline_var
|
1194
|
+
assert_equal <<CSS, render(<<SCSS)
|
1195
|
+
foo {
|
1196
|
+
a: 3;
|
1197
|
+
b: false;
|
1198
|
+
c: a b c; }
|
1199
|
+
CSS
|
1200
|
+
foo {
|
1201
|
+
$var1: 1 +
|
1202
|
+
2;
|
1203
|
+
$var2: true and
|
1204
|
+
false;
|
1205
|
+
$var3: a b
|
1206
|
+
c;
|
1207
|
+
a: $var1;
|
1208
|
+
b: $var2;
|
1209
|
+
c: $var3; }
|
1190
1210
|
SCSS
|
1191
1211
|
end
|
1192
1212
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.alpha.
|
4
|
+
version: 3.1.0.alpha.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Weizenbaum
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2010-11-
|
14
|
+
date: 2010-11-23 00:00:00 -05:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|