Re: [Ctags-devel] Various patches (though mostly JavaScript ones)
Brought to you by:
dhiebert
From: David F. <dfi...@gm...> - 2012-09-26 01:49:09
|
Elias, could you please resend this to the list. I deleted it by mistake and need to see it. This is off my cell so it won't be cached long. Thanks. -- David Fishburn On Sep 25, 2012, at 5:51 PM, Elias Pschernig <eli...@gm...> wrote: > (I'm just forwarding this to the list) > Begin forwarded message: > > Date: Tue, 25 Sep 2012 22:18:17 +0200 > From: Colomban Wendling <lis...@he...> > To: cta...@li..., el...@us... > Subject: Various patches (though mostly JavaScript ones) > > > Hi, > > I'm a developer of Geany [1] (which embeds a slightly modified version > of CTags), and I recently made a few fixes on our CTags copy, especially > on the JavaScript parser. I'm sending you the patches against CTags > itself [2], if you're interested in them. > > The patches are (long descriptions in the each patch' header): > > General: > > 0002-Fix-improper-use-of-const-type-qualifier.patch: > Fix a questionable use of the "const" type qualifier resulting > mostly in improper lines numbers with some parsers (seen in the > JavaScript parser). Details in the patch, but basically the > compilers may "improperly" optimize the content of the File > global (seen with GCC and CLang when optimizing). > > JavaScript parser: > > 0001-JavaScript-Set-scope-information.patch and > 0004-JavaScript-Create-proper-scope-for-tags-including-co.patch: > Set the tag's scope rather than including it in the tag name. > (Geany bug #3570192 [3]) > > 0003-JavaScript-Don-t-set-token-position-information-agai.patch: > Just an optimization actually -- but also somewhat works around > what 0002 above properly fixes: less calls means less room for > the values to be improperly cached. > > 0005-JavaScript-Fix-recognizing-functions-inside-methods.patch: > Patch from an user, fixes generation of function tags inside > methods. > (Geany bug #3571233 [4]). > > 0006-JavaScript-Don-t-drop-the-token-after-an-unbraced-if.patch: > Fix for unbraced if/else, and adds more tests to 1880687.js > (Geany bug #3568542 [5]) > > 0007-JavaScript-Simplify-parseJfFile-code-no-functional-c.patch: > Just to make the parseJfFile() code a little simpler. > > 0008-JavaScript-Properly-consume-closing-brace-after-a-bl.patch: > Fix findCmdTerm() when it encounters an open curly. > > 0009-JavaScript-Fix-some-unterminated-statement-corner-ca.patch: > Fix some more unterminated statements problems, still in > 1880687.js. > > 0010-JavaScript-Lowercase-object-isn-t-a-keyword.patch: > Lowercase "object" isn't actually a JavaScript keyword. > (Geany bug #3036476 [6]) > > 0011-JavaScript-Fix-parsing-non-method-properties.patch: > Properly handle properties values. > (Geany bug #3470609 [7]) > > 0012-JavaScript-Create-class-tag-for-variable-with-childr.patch: > Generate class tag for variables for which we generated > children tags. > > > I hope you may find these patches interesting. > > Best regards, > Colomban > > > PS: I'm sorry if you received a similar mail yesterday; but the list > agent told me it was rejected because my account wasn't approved yet, > and I haven't received it back from the list. Also, this version > includes a few more patches (0008-0012). > > > [1] http://www.geany.org/ > [2] From a git-svn clone, but the code is the same, and the the patches > are git-formatted. > [3] > https://sourceforge.net/tracker/?func=detail&aid=3570192&group_id=153444&atid=787791 > [4] > https://sourceforge.net/tracker/?func=detail&aid=3571233&group_id=153444&atid=787791 > [5] > https://sourceforge.net/tracker/?func=detail&aid=3568542&group_id=153444&atid=787791 > [6] > https://sourceforge.net/tracker/?func=detail&aid=3036476&group_id=153444&atid=787791 > [7] > https://sourceforge.net/tracker/?func=detail&aid=3470609&group_id=153444&atid=787791 > > <0001-JavaScript-Set-scope-information.patch> > <0002-Fix-improper-use-of-const-type-qualifier.patch> > <0003-JavaScript-Don-t-set-token-position-information-agai.patch> > <0004-JavaScript-Create-proper-scope-for-tags-including-co.patch> > <0005-JavaScript-Fix-recognizing-functions-inside-methods.patch> > <0006-JavaScript-Don-t-drop-the-token-after-an-unbraced-if.patch> > <0007-JavaScript-Simplify-parseJfFile-code-no-functional-c.patch> > <0008-JavaScript-Properly-consume-closing-brace-after-a-bl.patch> > <0009-JavaScript-Fix-some-unterminated-statement-corner-ca.patch> > <0010-JavaScript-Lowercase-object-isn-t-a-keyword.patch> > <0011-JavaScript-Fix-parsing-non-method-properties.patch> > <0012-JavaScript-Create-class-tag-for-variable-with-childr.patch> > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Ctags-devel mailing list > Cta...@li... > https://lists.sourceforge.net/lists/listinfo/ctags-devel |