ctags: Don't undercount lines when handling // comments.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D40374
This commit is contained in:
Dag-Erling Smørgrav 2023-06-05 17:53:45 +02:00
parent 979754a15a
commit 7ba6119e22

View file

@ -483,9 +483,9 @@ skip_comment(int t) /* t is comment character */
return;
break;
case '\n':
SETLINE;
if (t == '/')
return;
SETLINE;
/*FALLTHROUGH*/
default:
star = NO;