class Sass::Script::Lexer

def color

def color
  return unless s = scan(REGULAR_EXPRESSIONS[:color])
  raise Sass::SyntaxError.new(<<MESSAGE) unless s.size == 4 || s.size == 7
 must have either three or six digits: '#{s}'
E
  value = s.scan(/^#(..?)(..?)(..?)$/).first.
    map {|num| num.ljust(2, num).to_i(16)}
  [:color, Script::Color.new(value)]
end