I have added a test case to check the termination of single line comment by newline.
I have also extended the code to handle ?nnn $nnn and :nnn parameters and nested comments.