Received: by mail.netbsd.org (Postfix, from userid 605) id 7179484E7F; Sat, 12 Feb 2022 19:56:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A296784E7A for ; Sat, 12 Feb 2022 19:56:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id hdiMqClV3eAl for ; Sat, 12 Feb 2022 19:56:53 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 3A1EC84D82 for ; Sat, 12 Feb 2022 19:56:53 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 33291FB24; Sat, 12 Feb 2022 19:56:53 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 12 Feb 2022 19:56:53 +0000 From: "Roland Illig" Subject: CVS commit: src To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20220212195653.33291FB24@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Roland Illig" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rillig Date: Sat Feb 12 19:56:53 UTC 2022 Modified Files: src/tests/usr.bin/indent: lsym_typedef.c src/usr.bin/indent: indent.h io.c lexi.c Log Message: indent: fix indentation of enum constants in typedef (since 2019-04-04) The solution is not elegant since it adds a small state machine inside the parser state, but at least these states only depend on the sequence of token types and not on any other part of the parser state. Reported in PR#55453. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/indent/lsym_typedef.c cvs rdiff -u -r1.107 -r1.108 src/usr.bin/indent/indent.h cvs rdiff -u -r1.143 -r1.144 src/usr.bin/indent/io.c cvs rdiff -u -r1.168 -r1.169 src/usr.bin/indent/lexi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.