Page 1 of 1

Syntax-highlight for = and comments

Posted: Wed Feb 05, 2003 4:44 pm
by Peter
Hello,

two questions:

1) My software uses ; and ! and # as comment letters. Is it possible to define three letters for "single comment"?

2) How to define = and & as keywords? My definition runs with +, -, / ....., but not with = and &. Why???

[Keywords 4]
; Operators and Expressions
&&
*
+
-
/
<
<=
<>
==
>
>=
?
\
AND
EQ
GE

Peter

Re: Syntax-highlight for = and comments

Posted: Thu Feb 06, 2003 9:22 am
by Berend
1. You can only have two (single line) comment characters:
SingleComment = ;
SingleCommentAlt = !

2. Maybe you have defined = and & elsewhere, i.e. as OperatorChars?

Berend

Re: Syntax-highlight for = and comments

Posted: Thu Feb 06, 2003 10:47 am
by Peter
Berend,

1) Thanks, I changed it.

2) I found the problem:
It is not allowed to make "double definitions"; it's not good to define &&, because it's enough to define &; the same is for == (is twice =), >= and so on. In my snytax-file the double definitions (&&) overwrite the single definitions (&).

Peter