The two users above posted that a single asterisk is the beginning of a block comment with a semicolon for marking end of the block comment. That is different to your statement.
However, it is possible to limit interpretation of an asterisk as start of a line
comment. But according to help page with title Syntax Highlighting
you have to specify a negative character class definition as by default all characters are already valid.Line Comment Preceding Chars = [~!-~]
worked very well on your example. This expression means all characters except those in hexadecimal range 0x21 (exclamation mark) to 0x7E (tilde) are valid. I have tried also [~!-ÿ]
to define the negative character class from decimal range 33 to 255, but for some reason it has not worked. Using any character greater decimal 127 as end of range results in a not working limitation. (Without knowing the code, I know how it looks like because of the observed behavior - the typical signed/unsigned problem on character comparisons.)
However, I think that does not matter for SAS files.
The wordfile sas.uew
which can be downloaded from user-submitted wordfiles
has been updated accordingly.
PS: I have read now also Overview of the SAS Language - Comments
and understand now the problem with asterisk being start of a line respectively block comment ending with a semicolon.