diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 32fdf913..14ebe1a4 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,8 +13,8 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 680, - BUILD_DATE => "2014-06-26", + BUILD_REVISION => 681, + BUILD_DATE => "2014-06-27", }; 1; diff --git a/modules/c2english/CGrammar.pm b/modules/c2english/CGrammar.pm index 41ad3335..ca36a602 100644 --- a/modules/c2english/CGrammar.pm +++ b/modules/c2english/CGrammar.pm @@ -965,7 +965,7 @@ postfix_productions: { my $increment = join('',@{$item[-1]}); if ($increment) { - if($arg{context} eq 'struct access' or $arg{context} eq 'for increment statement') { + if($arg{context} eq 'struct access' or $arg{context} =~ /statement/) { $return = ['increment', 'by one']; } else { $return = "post-incremented $arg{primary_expression}"; @@ -976,7 +976,7 @@ postfix_productions: { my $increment = join('',@{$item[-1]}); if ($increment) { - if($arg{context} eq 'struct access' or $arg{context} eq 'for increment statement') { + if($arg{context} eq 'struct access' or $arg{context} =~ /statement/) { $return = ['decrement', 'by one']; } else { $return = "post-decremented $arg{primary_expression}";