Here you have `IsComment(prevLineText)`, I would say it is always `false`. Since the `prevLineText` you got here is the previous non-blank and non-comment line.