#241 '.' in a property declaration causes failure (JavaScript)

closed-fixed
None
5
2013-04-23
2008-10-09
David M. Brown
No

I've been able to narrow this down to the following example:

var MN =
{
version : '071100010002',
nonIE : document.attachEvent,
otherProperty : "Another"
};

When running ctags on this I get tags for version and nonIE but not otherProperty. If I remove the '.' then I get tags for all three.

On a related note for some reason I'm not getting a tag for 'MN'.

This is all with today's code.

Discussion

  • Elliott Hughes
    Elliott Hughes
    2008-12-13

    • assigned_to: nobody --> dfishburn
     
  • David Fishburn
    David Fishburn
    2010-05-25

    Fof this one:
    document.attachEvent

    I suspect the code is only looking for word characters. So besides ".", what other punctuation should be allowed?

    For the MN tag, what type of tag should be generated for this one?

     
  • This is fixed in the development version of ctags: MN is reported as a class, and all three properties are properly reported.

     
  • David Fishburn
    David Fishburn
    2013-04-23

    • status: open --> closed-fixed
     
  • David Fishburn
    David Fishburn
    2013-04-23

    Fixed in trunk or next release after 5.8.1