class Liquid::Parser

def id?(str)

Like consume? Except for an :id token of a certain name
def id?(str)
  token = @tokens[@p]
  return false unless token && token[0] == :id
  return false unless token[1] == str
  @p += 1
  token[1]
end