class Regexp::Scanner

def emit_literal

Emits the literal run collected by calls to the append_literal method.
def emit_literal
  text = literal_run.join
  self.literal_run = nil
  emit(:literal, :literal, text)
end