Default selection behavior on double-click and SYN chars?

General questions about using TextPad

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

Post Reply
Alex Angelopoulos

Default selection behavior on double-click and SYN chars?

Post by Alex Angelopoulos »

This is killing me - I know it has to be a minor point with syntax files.

Say I have a line

{tab}oLog.foo

and double-click "oLog".

If it is a "default" classed document or a TXT file, "oLog" is highlighted.

If it is a VBS document, I would have "{tab}oLog" highlighted.

I open the SYN files I was using and compared them for plain text and VBScripts; I also went through the prefs, and found no diffs except for the syntax file chosen.

After a couple of open/close/reload cycles, I found that I had experimentally entered "wscript.echo" as a word for highlighting in the SYN file. It was ALSO an operator character. After I removed that - I went back to the "no tab" selection (thank goodness).

Can anyone explain this? I can that there is a pattern here, but I don't quite understand what the rule behind it is.
Post Reply