EE:CS subs listing bug

new topic     » topic index » view thread      » older message » newer message

------=_NextPart_000_0007_01BFDB92.108DCD60
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

found this bug:

when you press f2 to list subs and you have this anywhere in file

s=3D"global function myname()"  --in string
or --function myname() --in comment

it lists myname() in sub list, but it shouldnt.

i am trying to write function that will do this correct. have written it =
already, but its so slow. win32lib does more than 2 minutes.

is match() so quicker than this?:
for i=3D1 to length(s)do
    word=3Ds[i..i+length("function")]
    if equal(word,"function")then
        ...
    end if
end for

anybody has already this function?

------=_NextPart_000_0007_01BFDB92.108DCD60
        charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>found this bug:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>when you press f2 to list subs and you =
have this=20
anywhere in file</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>s=3D"global function myname()"&nbsp; =
--in=20
string</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>or --function myname() --in =
comment</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>it&nbsp;lists myname() in sub list, but =
it=20
shouldnt.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i am trying to write function that will =
do this=20
correct. have written it already, but its so slow. win32lib does more =
than 2=20
minutes.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>is match() so quicker than =
this?:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>for i=3D1 to length(s)do</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;=20
word=3Ds[i..i+length("function")]</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; if=20
equal(word,"function")then</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; end if</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>end for</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>anybody has already this=20

------=_NextPart_000_0007_01BFDB92.108DCD60--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu