Page 1 of 1

Bug? in syntax highlighting?

Posted: Sun May 02, 2010 4:28 pm
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

Posted: Mon May 03, 2010 5:13 pm
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.

Posted: Mon May 03, 2010 6:39 pm
by lklawrie
Well, it used to work properly. But not anymore?

I have proof from my 4.7.3. I guess I could regress.

Posted: Wed May 05, 2010 1:57 pm
by lklawrie
Can someone tell me which version this bug crept in?

Is there any consideration of fixing it?

Posted: Thu May 13, 2010 8:38 pm
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.

Posted: Thu May 13, 2010 11:04 pm
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.