lint: fix indentation in C grammar

No functional change.
This commit is contained in:
rillig 2022-03-09 00:20:48 +00:00
parent a57d5f3aac
commit 6fd02fc319
1 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,5 @@
%{
/* $NetBSD: cgram.y,v 1.387 2022/03/01 00:17:12 rillig Exp $ */
/* $NetBSD: cgram.y,v 1.388 2022/03/09 00:20:48 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
__RCSID("$NetBSD: cgram.y,v 1.387 2022/03/01 00:17:12 rillig Exp $");
__RCSID("$NetBSD: cgram.y,v 1.388 2022/03/09 00:20:48 rillig Exp $");
#endif
#include <limits.h>
@ -1833,16 +1833,17 @@ for_exprs: /* see C99 6.8.5 */
for_start
begin_type_declaration_specifiers end_type
notype_init_declarators T_SEMI
expression_opt T_SEMI expression_opt T_RPAREN {
expression_opt T_SEMI
expression_opt T_RPAREN {
/* variable declaration in for loop */
c99ism(325);
for1(NULL, $6, $8);
clear_warning_flags();
}
| for_start
expression_opt T_SEMI
expression_opt T_SEMI
expression_opt T_RPAREN {
| for_start
expression_opt T_SEMI
expression_opt T_SEMI
expression_opt T_RPAREN {
for1($2, $4, $6);
clear_warning_flags();
}