SourceForge.net
2010-06-22 06:02:30 UTC
Bugs item #3019409, was opened at 2010-06-22 15:02
Message generated for change (Tracker Item Submitted) made by enerjazzer
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=3019409&group_id=11005
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Maxim Yanchenko (enerjazzer)
Assigned to: Nobody/Anonymous (nobody)
Summary: ctags is not matched on strings with backslashes
Initial Comment:
Suppose I have a function with a comment after the name, containing a backslash, like this:
void f() /// \todo rewrite
exuberant tags converts backslashes to double backslashes, so in the tags file it becomes
f file /^void f() \/\/\/ \\todo rewrite$/;" f
When I try to find this in NEdit, I receive the following error: "Definition for f not found in <file>"
This is because NEdit in the function fakeRegExSearch changes the regexp and adds additional backslashes so the regexp finally contains \\\\todo, that of course can't be found.
The fix is to change the line
} else if(strchr("()-[]<>{}.|^*+?&\\", *inPtr)
to
} else if(strchr("()-[]<>{}.|^*+?&", *inPtr)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=3019409&group_id=11005
Message generated for change (Tracker Item Submitted) made by enerjazzer
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=3019409&group_id=11005
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Maxim Yanchenko (enerjazzer)
Assigned to: Nobody/Anonymous (nobody)
Summary: ctags is not matched on strings with backslashes
Initial Comment:
Suppose I have a function with a comment after the name, containing a backslash, like this:
void f() /// \todo rewrite
exuberant tags converts backslashes to double backslashes, so in the tags file it becomes
f file /^void f() \/\/\/ \\todo rewrite$/;" f
When I try to find this in NEdit, I receive the following error: "Definition for f not found in <file>"
This is because NEdit in the function fakeRegExSearch changes the regexp and adds additional backslashes so the regexp finally contains \\\\todo, that of course can't be found.
The fix is to change the line
} else if(strchr("()-[]<>{}.|^*+?&\\", *inPtr)
to
} else if(strchr("()-[]<>{}.|^*+?&", *inPtr)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=3019409&group_id=11005