Improvement over standard matchparen plugin