mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-19 10:29:30 +01:00
CGrammar: Add some missing lowercasing specifiers
This commit is contained in:
parent
fab1986a3e
commit
5f9fb29e7e
@ -13,8 +13,8 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 723,
|
||||
BUILD_DATE => "2014-07-09",
|
||||
BUILD_REVISION => 724,
|
||||
BUILD_DATE => "2014-07-10",
|
||||
};
|
||||
|
||||
1;
|
||||
|
@ -624,7 +624,7 @@ rel_add_mul_shift_expression:
|
||||
| <leftop: cast_expression rel_mul_add_ex_op cast_expression>
|
||||
{
|
||||
my $expression = join('', @{$item[1]});
|
||||
if($arg{context} =~ /expression/ and $expression =~ / /) {
|
||||
if($arg{context} =~ /expression/ and $expression =~ / / and $expression !~ /the result of the expression/i) {
|
||||
$return = 'the result of the expression ';
|
||||
}
|
||||
$return .= $expression;
|
||||
@ -1210,12 +1210,12 @@ argument_expression_list:
|
||||
my $last = '';
|
||||
if (@arg_exp_list > 2) {
|
||||
$last = pop @arg_exp_list;
|
||||
$return = 's ' . join(', ', @arg_exp_list) . ", and $last";
|
||||
$return = 's ' . join(', ^L', @arg_exp_list) . ", and ^L$last";
|
||||
} elsif (@arg_exp_list == 2 ) {
|
||||
$return = "s $arg_exp_list[0] and $arg_exp_list[1]";
|
||||
$return = "s ^L$arg_exp_list[0] and ^L$arg_exp_list[1]";
|
||||
} else {
|
||||
if ($arg_exp_list[0]) {
|
||||
$return = " $arg_exp_list[0]";
|
||||
$return = " ^L$arg_exp_list[0]";
|
||||
} else {
|
||||
$return = '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user