module Regexp::Lexer
def self.merge_literal(current)
called by scan to merge two consecutive literals. this happens when tokens
def self.merge_literal(current) last = @tokens.pop Regexp::Token.new( :literal, :literal, last.text + current.text, last.ts, current.te, @nesting, @set_nesting, @conditional_nesting ) end