From c960730f1190365913263b564dc373798a6814c5 Mon Sep 17 00:00:00 2001 From: rillig Date: Sat, 13 Mar 2021 23:36:10 +0000 Subject: [PATCH] indent: fix documentation of parser_state.paren_indents The column position is not the same as the indentation (off-by-one). --- usr.bin/indent/indent_globs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.bin/indent/indent_globs.h b/usr.bin/indent/indent_globs.h index cb6950801fe2..a1662546a73c 100644 --- a/usr.bin/indent/indent_globs.h +++ b/usr.bin/indent/indent_globs.h @@ -1,4 +1,4 @@ -/* $NetBSD: indent_globs.h,v 1.20 2021/03/13 13:51:08 rillig Exp $ */ +/* $NetBSD: indent_globs.h,v 1.21 2021/03/13 23:36:10 rillig Exp $ */ /*- * SPDX-License-Identifier: BSD-4-Clause @@ -261,7 +261,9 @@ extern struct parser_state { * statement */ int paren_level; /* parenthesization level. used to indent * within statements */ - short paren_indents[20]; /* column positions of each paren */ + short paren_indents[20]; /* indentation of the operand/argument of + * each level of parentheses or brackets, + * relative to the enclosing statement */ int pcase; /* set to 1 if the current line label is a * case. It is printed differently from a * regular label */