class Liquid::Tokenizer

def tokenize

def tokenize
  return [] if @source.empty?
  return @source.split("\n") if @for_liquid_tag
  tokens = @source.split(TemplateParser)
  # removes the rogue empty element at the beginning of the array
  if tokens[0]&.empty?
    @offset += 1
  end
  tokens
end