mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-17 05:50:56 +01:00
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:
parent
585bcc0092
commit
fa4a71699a
@ -933,7 +933,7 @@ initializer:
|
||||
}
|
||||
}
|
||||
| '{' comment(?) initializer_list (',' )(?) '}'
|
||||
{ $return = '{ ' . $item{'initializer_list'} . ' }'; }
|
||||
{ $return = '{' . $item{'initializer_list'} . '}'; }
|
||||
|
||||
initializer_list:
|
||||
<leftop: initializer ',' initializer >
|
||||
@ -1237,7 +1237,7 @@ postfix_expression:
|
||||
'(' type_name ')' '{' initializer_list '}' postfix_productions[context => "$arg{context}|compound literal"](?)
|
||||
{
|
||||
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;
|
||||
}
|
||||
| primary_expression postfix_productions[primary_expression => $item[1], context => $arg{context}]
|
||||
|
Loading…
x
Reference in New Issue
Block a user