module Sass::Script

def self.equals_warning(types, name, val, guarded, line, offset, filename)

Other tags:
    Private: -
def self.equals_warning(types, name, val, guarded, line, offset, filename)
  Haml::Util.haml_warn <<MESSAGE
ECATION WARNING:
ine #{line}#{", character #{offset}" if offset}#{" of '#{filename}'" if filename}
ing #{types} with #{"||" if guarded}= has been deprecated and will be removed in version 3.2.
"#{name}: #{val}#{" !default" if guarded}" instead.
can use `sass-convert --in-place --from sass2 file.sass' to convert files automatically.
AGE
end

def self.parse(value, line, offset, options = {})

Returns:
  • (Script::Node) - The root node of the parse tree

Parameters:
  • options ({Symbol => Object}) -- An options hash;
  • offset (Fixnum) -- The number of characters in on `line` that the SassScript started.
  • line (Fixnum) -- The number of the line on which the SassScript appeared.
  • value (String) -- The SassScript
def self.parse(value, line, offset, options = {})
  Parser.parse(value, line, offset, options)
rescue Sass::SyntaxError => e
  e.message << ": #{value.inspect}." if e.message == "SassScript error"
  e.modify_backtrace(:line => line, :filename => options[:filename])
  raise e
end

def self.var_warning(varname, line, offset, filename)

Other tags:
    Private: -
def self.var_warning(varname, line, offset, filename)
  Haml::Util.haml_warn <<MESSAGE
ECATION WARNING:
ine #{line}, character #{offset}#{" of '#{filename}'" if filename}
ables with ! have been deprecated and will be removed in version 3.2.
\"$#{varname}\" instead.
can use `sass-convert --in-place --from sass2 file.sass' to convert files automatically.
AGE
end