lib/sass/script/parser.rb in sass-3.3.0.alpha.247 vs lib/sass/script/parser.rb in sass-3.3.0.alpha.252
- old
+ new
@@ -492,13 +492,18 @@
last = assert_expr(:string)
node(Tree::StringInterpolation.new(str, mid, last), first.source_range.start_pos)
end
def number
- return literal unless tok = try_tok(:number)
+ return selector unless tok = try_tok(:number)
num = tok.value
num.original = num.to_s unless @in_parens
literal_node(num, tok.source_range.start_pos)
+ end
+
+ def selector
+ return literal unless tok = try_tok(:selector)
+ node(tok.value, tok.source_range.start_pos)
end
def literal
(t = try_tok(:color, :bool, :null)) && (return literal_node(t.value, t.source_range))
end