From nobody Mon Jun 05 15:54:05 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QZdSs2d42z4Z5QK; Mon, 5 Jun 2023 15:54:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QZdSs25Psz4HXt; Mon, 5 Jun 2023 15:54:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685980445; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lrGfzoqGqpJUSLU1PXnRvUnzypNtJ7t5xonQG8WWFVw=; b=vu3uHmb6nJqE9+mu4Vkz9iyuIdrCqyF4zxVEbkfMb+NLuN3wNRGnFOnHVHtYRm4Yk0auVf S3JbKXuKqiCfHsMe39OsQ+b6ivnhBov20/QzdO/djCgc4gIurr/Op9mZS6xQJ3w29pB7zr CVGbp3oovRzfdwEf4YnfOXdCqp/4cd70oaBIbsJXgMAyO7Cu6SeTl/KQoMuO/q27JyizL1 UbkWXIC1el7v/lO0KiS4nxv1hpPbyNcWjvvLdplhVPVbIXf7gKtsbIfyShqqrzZBZsDbUJ 013nbwmJt6kHuDID3JF58tkriNThwjY7YYFgtMtBpt6Miaes70cqbvNtmV+/2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685980445; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lrGfzoqGqpJUSLU1PXnRvUnzypNtJ7t5xonQG8WWFVw=; b=aXUknfTxYMON5gMB59Her4yv+q/B96QyKn19P4aBmFQ696fEkpfdkz+E8mn80ZkY/lQ/OX A9PVVao6f5EYy6ZY3pk5WeFc6fMIS1bYCBe+I0LX3Vf/TVu2s/a121fm93xerD34WeaPnX pid+KtxYsRv0f9p0B9VNXsTsYa0EMJeY7hJkHQ36vM/7HM6Lfpybz/O/d16NJxkyROxiHc 7JY8GGwyQnwAa3R646r4emofaaWPgFCIzm5Cyw8BwpJaKhr4JlWKH4FNqxZcAsf752NELc wH8VG3IZV3TtXDozgOv6Xlegu6FjRDxFRHIOGNdbqPCba62TXsv+DWzhq4nnaw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685980445; a=rsa-sha256; cv=none; b=gLj75+442qEGLj6P7cDpXH7fYdPKupM5p871rs1UuHGFvQSpFIqszgG6KdLfhxhz3c8rOj +jBGB0HRWXGvRxG5IRdjVb3yMydu7XQD5WdndRxxY289yiz6qqPpzs8O4ZTfb+YjmfJVHL G3fJbArT9PoJtxOVFJfaKtj15KFKXup2WaFvsklRQqdDoeNdHVRAmKq74eNxKa0QE5lt8Z T4SZACQGVpXJShfgf35UA3qsOyPDc7TdAjetYhjimhQlP3dp1nrz1Ec/15rLmSZwZkVXND v3j9nDiQa/ti64uTATXdBeHw1a2byNWtlTyWktHrwzz32lMbm5jzbu/joxXzhQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QZdSs19JLztRC; Mon, 5 Jun 2023 15:54:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 355Fs5uR049379; Mon, 5 Jun 2023 15:54:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 355Fs5gh049378; Mon, 5 Jun 2023 15:54:05 GMT (envelope-from git) Date: Mon, 5 Jun 2023 15:54:05 GMT Message-Id: <202306051554.355Fs5gh049378@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Dag-Erling=20Sm=C3=B8rgrav?= Subject: git: 7ba6119e22b5 - main - ctags: Don't undercount lines when handling // comments. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7ba6119e22b54c2104b1948f0e8a4157d4112958 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=7ba6119e22b54c2104b1948f0e8a4157d4112958 commit 7ba6119e22b54c2104b1948f0e8a4157d4112958 Author: Dag-Erling Smørgrav AuthorDate: 2023-06-05 15:53:45 +0000 Commit: Dag-Erling Smørgrav 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;