Module Name: src Committed By: rillig Date: Sun Oct 24 21:55:07 UTC 2021
Modified Files: src/tests/usr.bin/indent: token_comment.c Log Message: tests/indent: document how empty lines in box comments are handled To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/indent/token_comment.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/usr.bin/indent/token_comment.c diff -u src/tests/usr.bin/indent/token_comment.c:1.6 src/tests/usr.bin/indent/token_comment.c:1.7 --- src/tests/usr.bin/indent/token_comment.c:1.6 Sun Oct 24 21:48:16 2021 +++ src/tests/usr.bin/indent/token_comment.c Sun Oct 24 21:55:07 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: token_comment.c,v 1.6 2021/10/24 21:48:16 rillig Exp $ */ +/* $NetBSD: token_comment.c,v 1.7 2021/10/24 21:55:07 rillig Exp $ */ /* $FreeBSD$ */ /* @@ -714,3 +714,18 @@ int decl; #indent end #indent run-equals-input -nfc1 + +/* + * A completely empty line in a box comment must be copied unmodified to the + * output. This is done in process_comment by adding a space to the end of an + * otherwise empty comment. This space forces dump_line to add some output, + * but the trailing space is discarded, resulting in an empty line. + */ +#indent input +/*- comment + + +end */ +#indent end + +#indent run-equals-input -nfc1