Highlighting problem
Submitted by Wednesday, 29 December, 2004 - 16:02
on
Hello,
I created a edit-scheme which should recognize everything
between a * and a ; as a comment if there is only whitespace between
the preceeding ; (in the same line) and the beginning * .
Example:
i=3*j; *comment1; *comment2;
Here I want the signs till the first ; not to be considered as comment.
The two following parts between * and ; should be considered as comments.
I defined RULES with the SPAN_REGEXP command, but highlighting works
only for the first comment in the line. Somehow the ending ; of the first
comment is not considered as the begin of a SPAN_REGEXP.
Now I introduce a second ; in my example like follows:
i=3*j; *comment1;; *comment2;
Here also the second comment is recognised by the the SPAN_REGEXP:
[;][[:space:]]+[*]
Does anybody know a solution to this problem?
Thanks a lot in advance
I created a edit-scheme which should recognize everything
between a * and a ; as a comment if there is only whitespace between
the preceeding ; (in the same line) and the beginning * .
Example:
i=3*j; *comment1; *comment2;
Here I want the signs till the first ; not to be considered as comment.
The two following parts between * and ; should be considered as comments.
I defined RULES with the SPAN_REGEXP command, but highlighting works
only for the first comment in the line. Somehow the ending ; of the first
comment is not considered as the begin of a SPAN_REGEXP.
Now I introduce a second ; in my example like follows:
i=3*j; *comment1;; *comment2;
Here also the second comment is recognised by the the SPAN_REGEXP:
[;][[:space:]]+[*]
Does anybody know a solution to this problem?
Thanks a lot in advance