lib/sass/script/parser.rb in sass-3.2.1 vs lib/sass/script/parser.rb in sass-3.2.2

- old
+ new

@@ -201,11 +201,11 @@ # Defines a simple left-associative production. # name is the name of the production, # sub is the name of the production beneath it, # and ops is a list of operators for this precedence level def production(name, sub, *ops) - class_eval <<RUBY + class_eval <<RUBY, __FILE__, __LINE__ + 1 def #{name} interp = try_ops_after_interp(#{ops.inspect}, #{name.inspect}) and return interp return unless e = #{sub} while tok = try_tok(#{ops.map {|o| o.inspect}.join(', ')}) if interp = try_op_before_interp(tok, e) @@ -221,10 +221,10 @@ end RUBY end def unary(op, sub) - class_eval <<RUBY + class_eval <<RUBY, __FILE__, __LINE__ + 1 def unary_#{op} return #{sub} unless tok = try_tok(:#{op}) interp = try_op_before_interp(tok) and return interp line = @lexer.line op = UnaryOperation.new(assert_expr(:unary_#{op}), :#{op})