problem with keywords pattern matching

If reporting a bug with the Zeus IDE please post the details here. Please do not post questions here.
Post Reply
gwgs
Posts: 87
Joined: Tue Nov 21, 2006 6:30 pm
Location: Auckland

problem with keywords pattern matching

Post by gwgs » Wed Aug 20, 2008 2:29 am

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

jussij
Site Admin
Posts: 2449
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij » Wed Aug 20, 2008 2:51 am

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

jussij
Site Admin
Posts: 2449
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij » Wed Aug 20, 2008 3:13 am

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

jussij
Site Admin
Posts: 2449
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij » Wed Oct 08, 2008 11:18 pm

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

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 31 guests