Page 1 of 1

Bug or just bad assumption? (or user error :-)

Posted: Wed Oct 06, 2004 8:15 am
by Dtsig
In a programming language we use the following line shows incorrectly highlighted

if purgeOutputLocation[-1,1] # '\' then purgeErrorLocation := '\'

then problem is that all text after the first ' is highlighted as a string.

My guess is that TEXTPAD assumes that the \ is escaping the closing ' and so it gets lost ..

Is there a way to turn this off. Not all languages use \ as an escape charater.

Of course it is possible that i have just missed this in the syntax definition. Have searched but not found a reference.

thanks

Posted: Wed Oct 06, 2004 8:53 am
by bveldkamp
Look up "StringEsc" in your syntax file, and maybe also "CharEsc"

Berend

Posted: Thu Oct 07, 2004 7:14 am
by Dtsig
bveldkamp wrote:Look up "StringEsc" in your syntax file, and maybe also "CharEsc"

Berend
great answer and correct . Thanks