Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/indent indent: fix documentation of parser_state.par...
details: https://anonhg.NetBSD.org/src/rev/247c2f40085b
branches: trunk
changeset: 953591:247c2f40085b
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Mar 13 23:36:10 2021 +0000
description:
indent: fix documentation of parser_state.paren_indents
The column position is not the same as the indentation (off-by-one).
diffstat:
usr.bin/indent/indent_globs.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 82246424f969 -r 247c2f40085b usr.bin/indent/indent_globs.h
--- a/usr.bin/indent/indent_globs.h Sat Mar 13 23:26:47 2021 +0000
+++ b/usr.bin/indent/indent_globs.h Sat Mar 13 23:36:10 2021 +0000
@@ -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 @@
* 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 */
Home |
Main Index |
Thread Index |
Old Index