mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
modules/c2english: Remove hyphen in "compound-literal" (#33)
Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
This commit is contained in:
parent
ebd36fdcc7
commit
3f83d643b0
@ -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…
Reference in New Issue
Block a user