Fixed issue when matching at the end of comment block