Fix greedy repetitions of zero-length-matching rules