summaryrefslogtreecommitdiffstats
path: root/src/tag.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/tag.l')
-rw-r--r--src/tag.l7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tag.l b/src/tag.l
index 8e02d92..e875f31 100644
--- a/src/tag.l
+++ b/src/tag.l
@@ -101,7 +101,7 @@ static void addNamespace(const char *name)
static void addMember(const char *name,const char *anchor,const char *args)
{
- //printf("adding member %s\n",name);
+ //printf("adding member `%s' `%s'\n",name,anchor);
if (cd || fd)
{
MemberNameDict *mnd=0;
@@ -112,7 +112,8 @@ static void addMember(const char *name,const char *anchor,const char *args)
md=new MemberDef(0,name,args,0,Public,Normal,FALSE,FALSE,
MemberDef::Function,0,argList);
delete argList;
- md->setReference(anchor);
+ md->setAnchor(anchor);
+ md->setReference(tagName);
if (cd) // member of a class
{
md->setMemberClass(cd);
@@ -157,7 +158,7 @@ static void addMember(const char *name,const char *anchor,const char *args)
%}
-ID [a-z_A-Z][a-z_A-Z0-9]*
+ID [a-z_A-Z0-9]+
FILE [a-z_A-Z0-9\.\-\+\:\\\/]+
SCOPE ({ID}"::")*{ID}