Page 1 of 1

problem with keywords pattern matching

Posted: Wed Aug 20, 2008 2:29 am
by gwgs
2 things:
1. Here's the scenario:
I have a pattern set up on one of the keyword patterns of aptd0???
I have some text:

Code: Select all

begin
   somecode
end
return
if I type aptd0 or APTD0 at the beginning of any word in that example, Zeus will lock up with 100% cpu usage at the moment that 0 is pressed. The 0 doesn't show on the screen see result as below

Code: Select all

begin
   APTDsomecode
end
return
Only way out is to crash out and loose any changes made up to that point.

I tried selecting the option pattern matching has low precedence, but with is on or off it made no difference.

2. I tried changing the pattern from APTD0??? to APTD\d{3,3} or APTD0... or APTD0\d\d\d none of these patterns work, the pattern isn't found, yet as a find string it will. (trying to find APTD0??? as a pattern in a find box doesn't find anything)

I am using v4.96q on XP

Grant

Posted: Wed Aug 20, 2008 2:51 am
by jussij
I will take a look at this.

The pattern matching was changed for this release so I suspect this change might have introduced this bug :(

Cheer Jussi

Posted: Wed Aug 20, 2008 3:13 am
by jussij
I can confirm that this is a bug and it will get fixed in the next Zeus patch.
2. I tried changing the pattern from APTD0??? to APTD\d{3,3} or APTD0... or APTD0\d\d\d none of these patterns work, the pattern isn't found, yet as a find string it will. (trying to find APTD0??? as a pattern in a find box doesn't find anything)
In the mean time this pattern regexp should work as a replacement:

Code: Select all

!(APTD0).{3,3}
NOTE: The ! identifies the pattern as a regexp and (APTD0).{3,3} is the actual regexp.

Cheers Jussi

Posted: Wed Oct 08, 2008 11:18 pm
by jussij
The bug raised in this thread is now be fixed in the latest Zeus patch found here: http://www.zeusedit.com/forum/viewtopic.php?p=4119

Cheers Jussi