Menu

#115 Less sign confuses parsing

open
None
5
2005-05-23
2005-04-21
No

Paste the following into a c++ header file
--------------------------
MY_MACRO(qwerty < 1);

class Abra : public Kadabra
{
};
-------------------------
Then say:
ctags --fields=+naimKzsS c++_header.h

Look at the output file - tags. The expected line:

Abra c++_header.h /^class Abra : public
Kadabra$/;" kind:class line:4 inherits:Kadabra

is missing! The offender seems to be the "<" in the
macro. Removing it or even just changing it to ">"
seems to fix the problem.

Discussion

  • Darren Hiebert

    Darren Hiebert - 2005-05-23
    • assigned_to: nobody --> dhiebert
     
  • Elliott Hughes

    Elliott Hughes - 2007-06-10

    Logged In: YES
    user_id=1127237
    Originator: NO

    the submitter's problem can be worked around with -IMY_MACRO+ and that's probably what the submitter wants anyway, but i'll leave this bug open because darren may or may not want to change things so that parsing isn't stopped by examples like this.

     

Log in to post a comment.