improve the inline comments matching algorithm