Bug? in syntax highlighting?

General questions about using TextPad

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

Post Reply
lklawrie
Posts: 52
Joined: Fri Aug 22, 2003 3:19 pm
Location: Pagosa Springs, Colorado, USA
Contact:

Bug? in syntax highlighting?

Post by lklawrie »

My syntax highlights our "data dictionary" language where the keyword is followed by a comma and several fields.

Syntax highlighting works fine in V4.7.3 but in later versions, (I looked at V5.1 and V5.3), the keywords that are followed by the comma are not highlighted. Ones sitting in the middle of comments or phrases are.

E.g.

Version, (is not highlighted in Textpad)
A1; \field Version Identifier (Version is highlighted).

Is this a known bug with a work around?

If I add a space after the keyword and before the , -- it is, of course, highlighted.

Linda
User avatar
Bob Hansen
Posts: 1517
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

I wouldn't call is a bug as much as a shortcoming. It is well known (but not well received).

The syntax highlighter uses "space" as the delimiter.
Not able to use any type of RegEx style filters in the current syntax processor.
Hope this was helpful.............good luck,
Bob
lklawrie
Posts: 52
Joined: Fri Aug 22, 2003 3:19 pm
Location: Pagosa Springs, Colorado, USA
Contact:

Post by lklawrie »

Well, it used to work properly. But not anymore?

I have proof from my 4.7.3. I guess I could regress.
Linda
lklawrie
Posts: 52
Joined: Fri Aug 22, 2003 3:19 pm
Location: Pagosa Springs, Colorado, USA
Contact:

Post by lklawrie »

Can someone tell me which version this bug crept in?

Is there any consideration of fixing it?
Linda
lklawrie
Posts: 52
Joined: Fri Aug 22, 2003 3:19 pm
Location: Pagosa Springs, Colorado, USA
Contact:

Post by lklawrie »

Sorry, Bob but you were incorrect.

I found that a couple of my main keywords had inadvertently slipped in commas and that's why it wasn't working.

So... TextPad does not need space as a delimiter.

No bug. Just user error.
Linda
User avatar
Bob Hansen
Posts: 1517
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

It is possible that the commas, other chars, had been added as additional characters on the configuration page for Class/Syntax definition.
Hope this was helpful.............good luck,
Bob
Post Reply