Commas not recognised as sysntax word boundaries

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Glen Edmonds

Commas not recognised as sysntax word boundaries

Post by Glen Edmonds »

Hi,

I have a problem with highlighting the following sentance:

command WORD, x

I have defined "coomand" and "WORD" in a syntax file, but WORD doesn't get highlighted unless I put a space between WORD and the comma.

I realise that syntax-file words usually jave spaces following them, but in this case there is a real (and natural) need to have a comma following it.

Does anyone know a way around this?

Thanks, Glen
Ed

Re: Commas not recognised as sysntax word boundaries

Post by Ed »

What is your syntax file? If there is a comma in a keyword or in "Other characters in word" under Configure->Preferences then this would cause a problem.
Post Reply