[Geany-devel] parse local variables - Re: [PATCH] Report lambdas as functions in Python tagmanager
Nick Treleaven
nick.treleaven at xxxxx
Wed Mar 17 12:45:22 UTC 2010
On Tue, 16 Mar 2010 19:07:05 +0100
Thomas Martitz <thomas.martitz at student.HTW-Berlin.de> wrote:
> > I haven't tried it but do we really want this? Aren't lambda functions
> > supposed to be short and limited to local scope? We don't parse other
> > local things other than nested functions, but they can be quite
> > long.
>
> Is this intention or unwanted limitation? I ask because I would indeed
We inherited tagmanager/ctags and probably want to maintain some kind
of closeness with ctags, which mainly only parses file-level tags
(except C, which we haven't ported over to Geany).
But there is an advantage that less memory is used.
> like to have e.g. the C parser to parse local variables (and of course
> only show them in the same scope in the tag completition list).
Whilst this would be nice, another problem is that tagmanager
(still?) can't parse tags from a memory buffer, only from disk. So
until the user saves the file, they still wouldn't get local tag
completion.
All this isn't to say we shouldn't do it, just that there are issues
involved.
Regards,
Nick
More information about the Devel
mailing list