git: 7ba6119e22b5 - main - ctags: Don't undercount lines when handling // comments.

From: Dag-Erling Smørgrav <des_at_FreeBSD.org>
Date: Mon, 05 Jun 2023 15:54:05 UTC
The branch main has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=7ba6119e22b54c2104b1948f0e8a4157d4112958

commit 7ba6119e22b54c2104b1948f0e8a4157d4112958
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2023-06-05 15:53:45 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2023-06-05 15:53:45 +0000

    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
---
 usr.bin/ctags/C.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/ctags/C.c b/usr.bin/ctags/C.c
index 80b6c42a7a5c..e36b60de4a55 100644
--- a/usr.bin/ctags/C.c
+++ b/usr.bin/ctags/C.c
@@ -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;