Fix bug when an empty string-like pair matches the closing pair with opening pair of the next one: $|$ $asd$