Fix parsing not well formatted block comments

Should fix the behavior in front of not so well formatted block comments. I'm new to ruby, so if something is done wrong just tell me.