Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libcurses/director tests/libcurses: use standard i...



details:   https://anonhg.NetBSD.org/src/rev/87f6350ba659
branches:  trunk
changeset: 1018567:87f6350ba659
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Feb 07 17:26:15 2021 +0000

description:
tests/libcurses: use standard indentation for grammar rule 'arg'

diffstat:

 tests/lib/libcurses/director/testlang_parse.y |  38 +++++++++++++++++++-------
 1 files changed, 28 insertions(+), 10 deletions(-)

diffs (53 lines):

diff -r 1fd3ec2fec12 -r 87f6350ba659 tests/lib/libcurses/director/testlang_parse.y
--- a/tests/lib/libcurses/director/testlang_parse.y     Sun Feb 07 17:23:29 2021 +0000
+++ b/tests/lib/libcurses/director/testlang_parse.y     Sun Feb 07 17:26:15 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: testlang_parse.y,v 1.25 2021/02/07 17:23:29 rillig Exp $       */
+/*     $NetBSD: testlang_parse.y,v 1.26 2021/02/07 17:26:15 rillig Exp $       */
 
 /*-
  * Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -549,15 +549,33 @@
                | arg args
                ;
 
-arg            : LHB expr RHB { assign_arg(data_static, $<string>2); }
-               | numeric { assign_arg(data_static, $1); }
-               | STRING { assign_arg(data_static, $1); }
-               | BYTE { assign_arg(data_byte, $1); }
-               | PATH { assign_arg(data_static, $1); }
-               | FILENAME { assign_arg(data_static, $1); }
-               | VARNAME { assign_arg(data_static, $1); }
-               | VARIABLE  { assign_arg(data_var, $1); }
-               | NULL_RET { assign_arg(data_null, $1); }
+arg            : LHB expr RHB {
+                       assign_arg(data_static, $<string>2);
+               }
+               | numeric {
+                       assign_arg(data_static, $1);
+               }
+               | STRING {
+                       assign_arg(data_static, $1);
+               }
+               | BYTE {
+                       assign_arg(data_byte, $1);
+               }
+               | PATH {
+                       assign_arg(data_static, $1);
+               }
+               | FILENAME {
+                       assign_arg(data_static, $1);
+               }
+               | VARNAME {
+                       assign_arg(data_static, $1);
+               }
+               | VARIABLE {
+                       assign_arg(data_var, $1);
+               }
+               | NULL_RET {
+                       assign_arg(data_null, $1);
+               }
                ;
 
 eol            : EOL



Home | Main Index | Thread Index | Old Index