Highlighting Issue
Submitted by Friday, 9 March, 2007 - 20:29
on
I am having trouble getting my syntax highlighting to work with one form of comments. I am making a highlighter for Pick BASIC. Comments can be in the following format:
REM This is a comment
* This is a comment
A = A + 1 ;* Everything after the * is a comment
100 * Everything after the * is a comment. The 100 is a label.
MYLABEL: * Everything after the * is a comment. The MYLABEL: part is a label.
Currently everything is highlighting fine except the last two comment types. It doesn't seem to recognize them as comments. Here's the relevant part of the highlighter xml:
<MODE> <PROPS> <!-- <PROPERTY NAME="lineComment" VALUE="*" /> --> </PROPS> <RULES IGNORE_CASE="TRUE" HIGHLIGHT_DIGITS="TRUE"> <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE"> <BEGIN>"</BEGIN> <END>"</END> </SPAN> <SPAN TYPE="LITERAL2" NO_LINE_BREAK="TRUE"> <BEGIN>'</BEGIN> <END>'</END> </SPAN> <!-- conditional compilation --> <EOL_SPAN_REGEXP TYPE="COMMENT1" AT_LINE_START="TRUE">\d+ \*</EOL_SPAN_REGEXP> <EOL_SPAN TYPE="KEYWORD2">#if</EOL_SPAN> <EOL_SPAN TYPE="KEYWORD2">#else</EOL_SPAN> <EOL_SPAN TYPE="KEYWORD2">#end</EOL_SPAN> <EOL_SPAN TYPE="COMMENT1" AT_WHITESPACE_END="TRUE">*</EOL_SPAN> <EOL_SPAN TYPE="COMMENT1">;*</EOL_SPAN> <EOL_SPAN TYPE="COMMENT1">; *</EOL_SPAN> <EOL_SPAN TYPE="COMMENT1">REM</EOL_SPAN>
Functions and operators are listed below here but didn't seem relevant to the problem. Any help on getting this working would be appreciated. Thank you in advance!