class Crass::Tokenizer

def consume_name

Experimental RBS support (using type sampling data from the type_fusion project).

def consume_name: () -> String

This signature was generated using 1 sample from 1 application.

4.3.12. http://dev.w3.org/csswg/css-syntax/#consume-a-name

Consumes a name and returns it.
def consume_name
  result = String.new
  until @s.eos?
    if match = @s.scan(RE_NAME)
      result << match
      next
    end
    char = @s.consume
    if valid_escape?
      result << consume_escaped
    # Non-standard: IE * hack
    elsif char == '*' && @options[:preserve_hacks]
      result << @s.consume
    else
      @s.reconsume
      return result
    end
  end
  result
end