Page 1 of 1

keyword in syn file is not highlighting

Posted: Sun Jul 18, 2010 2:00 am
by leegold
Hi,

I am using php5.syn - the most recent in the downloads. There's a function called: imagecreatefromstring. I see it in the keywords in the syn file. But it does not highlight - should be a dark blue but it's the default black. Note: If I shorten it to: imagecreate then it highlights - this is another word in the syn file too.

Seems like it should highlight. How can this be fixed?

Thanks,

Lee G.

Posted: Mon Jul 19, 2010 5:49 pm
by leegold
This does not exceed 63 chars - the limit for the keyword. Any ideas appreciated.

Posted: Wed Jul 21, 2010 11:17 am
by woho
One explanation would have been that
imagecreate and imagecreatefromstring are in different keywordgroups (i.e. one is a Keyword1, 2nd Keyword2) and Keyword2 has assigned the same color as standard text

BUT in the php5.syn I found in
http://www.textpad.com/add-ons/files/syntax/php5.zip
both keywords are [Keywords 5] section

I noticed that php5.syn in pretty long (5576 lines) => maybe there is some limit of lines or keywords ?

Line 2283 [Keywords 5]
..
Line 3272 imagecreate
..
Line 3279 imagecreatefromstring
=> the 996th keyword in section 5 .. seems not to be very significant


?? What about the other keywords starting fro line 3272 ??

regards
Wolfgang

Posted: Sat Jul 24, 2010 1:57 am
by leegold
Could this be a bug?