modified DelimitersMatching class.