mò ²=îEc@s»dkZdkZdkZdZdZdZeidƒZeidƒZdefd„ƒYZ dfd „ƒYZ d fd „ƒYZ dd d „Z d„ZeidƒZd„ZdS(NtccheeversWed Jul 19 03:20:41 PDT 2006s¸ This is a module for working with the 'tags' files generated by ctags. It works best with exuberant ctags but has been patched up to work OK with other version of ctags. s.*\t\/\^(.*)\$\/;\"\t.*s.*\t\/\^(.*)\$\/.*tCantFindTagsFilecBstZRS(N(t__name__t __module__(((t/usr/home/sf/src/phpsh/ctags.pyRstCtagscBstZdd„ZRS(NcCsE|p tƒ}n||_tii|ƒ|_t|ƒ|_ dS(N( t tagsFilePatht findTagsFiletselfttagsFiletostpathtdirnamettagsRoott parseTagsFiletpyTags(RR((Rt__init__s   (RRtNoneR(((RRstCtagsFunctionSignaturescBstZdd„ZRS(NcCsE|p tƒ}n||_tii|ƒ|_t|ƒ|_ dS(N( RRRR R R R R tparseFunctionSignaturestfunctionSignatures(RR((RRs   (RRRR(((RRsttagscs£‡d†}|ptiƒ}nxgtii||ƒƒpMtii|ƒ}|tiijo t‚n|tiitii 7}q&W|tii|ƒƒS(sqlooks for a file in the current or given directory and all parent directories of that directory up until the rootcs|tiiˆS(N(tdR R tsept tagsFileName(R(R(Rt'sN( t fileInDirtdirR tgetcwdR tisfiletnormpathRRtpardir(RRR((RRR%s  c Cs#t|ƒ}h}x |D]}|d djoqn|iƒidƒ}|d}|d}|d}t |ƒdjo d }nyt i|ƒiƒ\}Wn+tj o qntj o qnX|i|ƒpg||