Commit 74032cc3 authored by Francesco Potortì's avatar Francesco Potortì

A bug in the new function. No change log.

parent 2201e3dc
...@@ -1864,15 +1864,17 @@ make_tag (name, namelen, is_func, linestart, linelen, lno, cno) ...@@ -1864,15 +1864,17 @@ make_tag (name, namelen, is_func, linestart, linelen, lno, cno)
int lno; /* line number */ int lno; /* line number */
long cno; /* character number */ long cno; /* character number */
{ {
register char *cp; bool named = TRUE;
bool named;
named = TRUE;
if (!CTAGS) if (!CTAGS)
{ {
for (cp = name; !notinname (*cp); cp++) int i;
continue; register char *cp = name;
if (*cp == '\0') /* rule #1 */
for (i = 0; i < namelen; i++)
if (notinname (*cp++))
break;
if (i == namelen) /* rule #1 */
{ {
cp = linestart + linelen - namelen; cp = linestart + linelen - namelen;
if (notinname (linestart[linelen-1])) if (notinname (linestart[linelen-1]))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment