Module Name:    src
Committed By:   rillig
Date:           Sat Mar 13 23:36:10 UTC 2021

Modified Files:
        src/usr.bin/indent: indent_globs.h

Log Message:
indent: fix documentation of parser_state.paren_indents

The column position is not the same as the indentation (off-by-one).


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/usr.bin/indent/indent_globs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/indent/indent_globs.h
diff -u src/usr.bin/indent/indent_globs.h:1.20 src/usr.bin/indent/indent_globs.h:1.21
--- src/usr.bin/indent/indent_globs.h:1.20	Sat Mar 13 13:51:08 2021
+++ src/usr.bin/indent/indent_globs.h	Sat Mar 13 23:36:10 2021
@@ -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 */

Reply via email to