Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/indent tests/indent: test preserving the inter...



details:   https://anonhg.NetBSD.org/src/rev/b433ff60d6f6
branches:  trunk
changeset: 1024652:b433ff60d6f6
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Oct 30 12:28:42 2021 +0000

description:
tests/indent: test preserving the internal layout of box comments

diffstat:

 tests/usr.bin/indent/token_comment.c |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r 05b2ad0174ac -r b433ff60d6f6 tests/usr.bin/indent/token_comment.c
--- a/tests/usr.bin/indent/token_comment.c      Sat Oct 30 12:24:03 2021 +0000
+++ b/tests/usr.bin/indent/token_comment.c      Sat Oct 30 12:28:42 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: token_comment.c,v 1.10 2021/10/30 12:24:03 rillig Exp $ */
+/* $NetBSD: token_comment.c,v 1.11 2021/10/30 12:28:42 rillig Exp $ */
 /* $FreeBSD$ */
 
 /*
@@ -217,12 +217,20 @@
  * preserved since the second line already starts in column 1.
  */
 #indent input
-int decl;                                          /*-fixed comment
+int decl;                                          /*-|fixed comment
+                                       | minus 12     |
+               | tabs inside           |
+           |---|
+|-----------|
 tab1+++        tab2--- tab3+++ tab4--- tab5+++ tab6--- tab7+++fixed comment*/
 #indent end
 
 #indent run -di0
-int decl;                      /*-fixed comment
+int decl;                      /*-|fixed comment
+                   | minus 12     |
+| tabs inside          |
+|---|
+|-----------|
 tab1+++        tab2--- tab3+++ tab4--- tab5+++ tab6--- tab7+++fixed comment*/
 #indent end
 



Home | Main Index | Thread Index | Old Index