c2english: Remove spaces before and after initializer braces

* modules/c2english: Remove trailing whitespace
* modules/c2english: Remove spaces before and after initializer braces
This commit is contained in:
Joey Pabalinas 2018-04-24 11:22:05 -10:00 committed by Pragmatic Software
parent 585bcc0092
commit fa4a71699a
2 changed files with 354 additions and 354 deletions

View File

@ -933,7 +933,7 @@ initializer:
} }
} }
| '{' comment(?) initializer_list (',' )(?) '}' | '{' comment(?) initializer_list (',' )(?) '}'
{ $return = '{ ' . $item{'initializer_list'} . ' }'; } { $return = '{' . $item{'initializer_list'} . '}'; }
initializer_list: initializer_list:
<leftop: initializer ',' initializer > <leftop: initializer ',' initializer >
@ -1237,7 +1237,7 @@ postfix_expression:
'(' type_name ')' '{' initializer_list '}' postfix_productions[context => "$arg{context}|compound literal"](?) '(' type_name ')' '{' initializer_list '}' postfix_productions[context => "$arg{context}|compound literal"](?)
{ {
my $postfix = $item[-1]->[0]; my $postfix = $item[-1]->[0];
$return = "A compound-literal of type $item{type_name} initialized to { $item{initializer_list} }"; $return = "A compound-literal of type $item{type_name} initialized to {$item{initializer_list}}";
$return = "$postfix $return" if $postfix; $return = "$postfix $return" if $postfix;
} }
| primary_expression postfix_productions[primary_expression => $item[1], context => $arg{context}] | primary_expression postfix_productions[primary_expression => $item[1], context => $arg{context}]