3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 20:09:43 +01:00

modules/c2english: Remove hyphen in "compound-literal" (#33)

Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
This commit is contained in:
Joey Pabalinas (jp) 2018-06-05 12:09:36 -10:00 committed by Pragmatic Software
parent ebd36fdcc7
commit 3f83d643b0

View File

@ -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}]