Page 1 of 1

Syntax Highlights

Posted: Wed May 01, 2002 4:34 pm
by Paul
I use TextPad for editing Progress code. My problem is that Progress uses the period "." to end statement. The keyword "undo" is frequently followed by the period - which means "undo" is highlighted as a keyword but "undo." is not. I use "undo" only as an example, several keywords could be followed by the period.

I would like to know if there is a way to ignore the "." when it follows a keyword other than entering every keyword followed by a period into the Progress.syn file

Re: Syntax Highlights

Posted: Thu May 02, 2002 6:17 am
by Jens Hollmann
That's odd. All my syntax highlightings ignore the period.

Is the period part of the additional characters in words? This is a setting of the document class under "syntax". If I add a period there, the highlighting really changes as you stated here.

Re: Syntax Highlights

Posted: Thu May 02, 2002 11:51 am
by Paul
Jens,
If you are referring to the field "Other characters in words" - the period is not in this field - I have tried adding the period and I still have the same results. Maybe I have set something somewhere else that causes me this problem.

Re: Syntax Highlights

Posted: Fri May 03, 2002 5:42 am
by Jens Hollmann
Ah! I just tried another thing: Do you have any keyword defined that contains a period? If I do that I get the same problem.

Maybe all characters in keywords are automatically "other characters in words".

That would explain it but I can't think of a solution other than removing all periods in the SYN-file. And if you really need them, well...