mirror of
https://github.com/pragma-/pbot.git
synced 2025-05-05 22:27:25 +02: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 (',' )(?) '}'
|
| '{' 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}]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user