Don't apply continue character in certain cases?browsing

At the DMIS language a line break appears after 80 characters and after that the line continues with the continue character ‘$’ at the end of the line.
Unfortunately comments start with ‘$’. So if a line is ‘blank’ it is possible that ‘$’ is used. The ‘$’ indicates now a line break for NPP although there is none and the following code shouldn’t be shown as a comment.
Do you have an idea what I have to change that the continue character ‘$’ is only taken into account if no other ‘$’ is in front of it?

Please see attached screenshot (The line ‘$Test…’ shows how it should be while ‘$ --> OUTPUT’ shows what goes wrong). Thank you very much in advance.