Syntax Highlighting for Comments, in need of Help
Posted: Wed Jan 12, 2005 2:11 pm
My problem is with the following features in the .syn files.
SingleComment = C
SingleCommentCol = 1
It works fine for the following cases
C This is a comment
C****** This is a comment *******
However, does not work in the following case
C000010 This line is a comment
Unfortunately, the for a comment to be started it must have a line number. The first two cases would be used such as below and would be more a visual aid to the programmer rather than actual interpretted code.
C000015
C******************
C* This is a comment *
C******************$
I could use the above format for future development but I'm working with code already in place and it would be an major undertaking to change all the code to the above format. Most of the code is in the following format.
C000020 This is a comment$
So it appears to work if the comment indicator is followed by a blank space or special characters, such as '*' but not when followed by numbers or text for that matter.
Any suggestions on a workaround or is this a bug of some sort?
SingleComment = C
SingleCommentCol = 1
It works fine for the following cases
C This is a comment
C****** This is a comment *******
However, does not work in the following case
C000010 This line is a comment
Unfortunately, the for a comment to be started it must have a line number. The first two cases would be used such as below and would be more a visual aid to the programmer rather than actual interpretted code.
C000015
C******************
C* This is a comment *
C******************$
I could use the above format for future development but I'm working with code already in place and it would be an major undertaking to change all the code to the above format. Most of the code is in the following format.
C000020 This is a comment$
So it appears to work if the comment indicator is followed by a blank space or special characters, such as '*' but not when followed by numbers or text for that matter.
Any suggestions on a workaround or is this a bug of some sort?