class Sass::Engine
def parse_variable(line)
def parse_variable(line) name, op, value = line.text.scan(Script::MATCH)[0] raise SyntaxError.new("Illegal nesting: Nothing may be nested beneath variable declarations.", @line + 1) unless line.children.empty? raise SyntaxError.new("Invalid variable: \"#{line.text}\".", @line) unless name && value Tree::VariableNode.new(name, parse_script(value, :offset => line.offset + line.text.index(value)), op == '||=') end